styx: improvements
This commit is contained in:
parent
d6a0818555
commit
826605d131
2 changed files with 15 additions and 3 deletions
|
@ -150,6 +150,7 @@
|
||||||
|
|
||||||
# Themes
|
# Themes
|
||||||
"browser.compactmode.show" = true;
|
"browser.compactmode.show" = true;
|
||||||
|
"layout.css.prefers-color-scheme.content-override" = 2;
|
||||||
};
|
};
|
||||||
|
|
||||||
search = {
|
search = {
|
||||||
|
@ -275,6 +276,7 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
automatic-dark
|
||||||
bypass-paywalls-clean
|
bypass-paywalls-clean
|
||||||
cookie-quick-manager
|
cookie-quick-manager
|
||||||
darkreader
|
darkreader
|
||||||
|
@ -293,6 +295,8 @@
|
||||||
ublock-origin
|
ublock-origin
|
||||||
video-downloadhelper
|
video-downloadhelper
|
||||||
|
|
||||||
|
dracula-dark-colorscheme
|
||||||
|
|
||||||
dictionary-german
|
dictionary-german
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -48,10 +48,18 @@ let
|
||||||
|
|
||||||
ql_windows=$(${yabai-bin} -m query --windows --display $app_display | ${jq-bin} 'map(select(.subrole == "Quick Look")) | length')
|
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
|
${yabai-bin} -m display --focus next && yabai -m display --focus prev
|
||||||
|
fi
|
||||||
else
|
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
|
${yabai-bin} -m display --focus prev && yabai -m display --focus next
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue