hyrpland: removed unused codes

This commit is contained in:
Tigor Hutasuhut 2024-10-17 08:49:48 +07:00
parent 9fa75cd522
commit 0abaa4a0b8
2 changed files with 0 additions and 5 deletions

View file

@ -10,7 +10,6 @@ in
pkgs.wl-clipboard
pkgs.kcalc
];
sops.secrets."gnome-keyring/${config.home.username}" = { };
wayland.windowManager.hyprland = {
enable = true;
systemd.variables = [ "all" ];

View file

@ -29,10 +29,6 @@ let
if [[ "$fullscreen_on_same_ws" == "" ]]; then
hyprctl dispatch focuswindow address:''${addr}
else
# If we want to focus app_A and app_B is fullscreen on the same workspace,
# app_A will get focus, but app_B will remain on top.
# This monstrosity is to make sure app_A will end up on top instead.
# XXX: doesn't handle fullscreen 0, but I don't care.
notify-send 'Complex switch' "$window"
hyprctl --batch "dispatch focuswindow address:''${fullscreen_on_same_ws}; dispatch fullscreen 1; dispatch focuswindow address:''${addr}; dispatch fullscreen 1"
fi