1
0
Fork 0

Compare commits

...

3 commits

2 changed files with 15 additions and 25 deletions

View file

@ -126,7 +126,6 @@
# Custom
"extensions.pocket.enabled" = false;
"extensions.update.enabled" = false;
"privacy.globalprivacycontrol.functionality.enabled" = true;
"privacy.globalprivacycontrol.enabled" = true;
@ -150,6 +149,7 @@
# Themes
"browser.compactmode.show" = true;
"layout.css.prefers-color-scheme.content-override" = 2;
};
search = {
@ -273,28 +273,6 @@
};
};
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
bypass-paywalls-clean
cookie-quick-manager
darkreader
firemonkey
libredirect
linkding-extension
multi-account-containers
onepassword-password-manager
reddit-enhancement-suite
sponsorblock
streetpass-for-mastodon
substitoot
tabliss
tridactyl
tubearchivist-companion
ublock-origin
video-downloadhelper
dictionary-german
];
};
};
};

View file

@ -46,10 +46,22 @@ let
app_display=$(${yabai-bin} -m query --windows --window $YABAI_WINDOW_ID | ${jq-bin} '.display')
[ -z "$app_display" ] && app_display=$(${yabai-bin} -m query --displays --display mouse | ${jq-bin} '.index')
ql_windows=$(${yabai-bin} -m query --windows --display $app_display | ${jq-bin} 'map(select(.subrole == "Quick Look")) | length')
if [ $app_display -eq 1 ]; then
${yabai-bin} -m display --focus next && yabai -m display --focus prev
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
fi
else
${yabai-bin} -m display --focus prev && yabai -m display --focus next
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
'';
in