From 0abaa4a0b8da368c32d991c4e3a7912630d33ce2 Mon Sep 17 00:00:00 2001 From: Tigor Hutasuhut Date: Thu, 17 Oct 2024 08:49:48 +0700 Subject: [PATCH] hyrpland: removed unused codes --- home/modules/hyprland/hyprland.nix | 1 - home/modules/hyprland/rofi.nix | 4 ---- 2 files changed, 5 deletions(-) diff --git a/home/modules/hyprland/hyprland.nix b/home/modules/hyprland/hyprland.nix index 95cbdc6..1f1bec1 100644 --- a/home/modules/hyprland/hyprland.nix +++ b/home/modules/hyprland/hyprland.nix @@ -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" ]; diff --git a/home/modules/hyprland/rofi.nix b/home/modules/hyprland/rofi.nix index f513434..13729d8 100644 --- a/home/modules/hyprland/rofi.nix +++ b/home/modules/hyprland/rofi.nix @@ -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