1
0
Fork 0

styx: improvements

This commit is contained in:
Daniel Kempkens 2024-03-14 11:36:11 +01:00
parent d6a0818555
commit 826605d131
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
2 changed files with 15 additions and 3 deletions

View file

@ -150,6 +150,7 @@
# Themes
"browser.compactmode.show" = true;
"layout.css.prefers-color-scheme.content-override" = 2;
};
search = {
@ -275,6 +276,7 @@
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
automatic-dark
bypass-paywalls-clean
cookie-quick-manager
darkreader
@ -293,6 +295,8 @@
ublock-origin
video-downloadhelper
dracula-dark-colorscheme
dictionary-german
];
};

View file

@ -48,10 +48,18 @@ let
ql_windows=$(${yabai-bin} -m query --windows --display $app_display | ${jq-bin} 'map(select(.subrole == "Quick Look")) | length')
if [ $ql_windows -eq 0 ]; then
if [ $app_display -eq 1 ]; then
if [ $app_display -eq 1 ]; then
win_count=$(${yabai-bin} -m query --windows --display next | ${jq-bin} 'length')
[ -z "$win_count" ] && win_count=0
if [ $ql_windows -eq 0 ] && [ $win_count -gt 0 ]; then
${yabai-bin} -m display --focus next && yabai -m display --focus prev
else
fi
else
win_count=$(${yabai-bin} -m query --windows --display prev | ${jq-bin} 'length')
[ -z "$win_count" ] && win_count=0
if [ $ql_windows -eq 0 ] && [ $win_count -gt 0 ]; then
${yabai-bin} -m display --focus prev && yabai -m display --focus next
fi
fi