From 190e3dfa7314bcfded027cc027957857668a5134 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sat, 21 Sep 2024 20:37:14 +0200 Subject: [PATCH] fix: add missing keyword to hyprlock and remove screen freeze --- home/sway/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/home/sway/default.nix b/home/sway/default.nix index 6927138..232e414 100644 --- a/home/sway/default.nix +++ b/home/sway/default.nix @@ -54,7 +54,7 @@ lib.mkIf osConfig.programs.sway.enable { mod = config.wayland.windowManager.sway.config.modifier; in lib.mkOptionDefault { - "${mod}+p" = "${pkgs.hyprlock}/bin/hyprlock"; + "${mod}+p" = "exec ${pkgs.hyprlock}/bin/hyprlock"; "${mod}+Shift+p" = "exec rofi -show p -modi p:${pkgs.rofi-power-menu}/bin/rofi-power-menu"; # Reload the config file @@ -86,8 +86,8 @@ lib.mkIf osConfig.programs.sway.enable { "--locked XF86AudioNext" = "exec ${pkgs.playerctl}/bin/playerctl next"; "--locked XF86AudioPrev" = "exec ${pkgs.playerctl}/bin/playerctl previous"; "Print" = "exec ${pkgs.scripts.screenshot}/bin/screenshot"; - "${mod}+u" = "exec ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot -o ~/Pictures/screenshots -m region"; - "${mod}+Shift+u" = "exec ${pkgs.hyprpicker}/bin/hyprpicker -r -z & ${pkgs.hyprshot}/bin/hyprshot --raw -m region | ${pkgs.satty}/bin/satty -f - --fullscreen"; + "${mod}+u" = "exec ${pkgs.hyprshot}/bin/hyprshot -o ~/Pictures/screenshots -m region"; + "${mod}+Shift+u" = "exec ${pkgs.hyprshot}/bin/hyprshot --raw -m region | ${pkgs.satty}/bin/satty -f - --fullscreen"; #: Workspace movement {{{ "--input-device=${inputs.kb.builtin} ${mod}+ampersand" = "workspace number 1";