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
|
||||
"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
|
||||
];
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue