diff --git a/home/sway/default.nix b/home/sway/default.nix index 209b41e..6a5642e 100644 --- a/home/sway/default.nix +++ b/home/sway/default.nix @@ -59,6 +59,8 @@ lib.mkIf osConfig.programs.sway.enable { keybindings = let mod = config.wayland.windowManager.sway.config.modifier; + cliphist = getExe pkgs.cliphist; + copy = getExe' pkgs.wl-clipboard "wl-copy"; in lib.mkOptionDefault { "${mod}+p" = "exec ${getExe pkgs.hyprlock}"; @@ -73,10 +75,6 @@ lib.mkIf osConfig.programs.sway.enable { # Start launcher "${mod}+d" = "exec ${getExe desktop.runner.package}"; "${mod}+s" = - let - cliphist = getExe pkgs.cliphist; - copy = getExe' pkgs.wl-clipboard "wl-copy"; - in mkIf cliphistEnabled "exec ${cliphist} list | ${desktop.runner.dmenu} | ${cliphist} decode | ${copy}"; # Toggle the current focus between tiling and floating mode "${mod}+Shift+space" = "floating toggle"; @@ -99,7 +97,7 @@ lib.mkIf osConfig.programs.sway.enable { "${mod}+u" = "exec ${getExe pkgs.hyprshot} -o ${config.xdg.userDirs.pictures}/screenshots -m region"; "${mod}+Shift+u" = - "exec ${getExe pkgs.hyprshot} --raw -m region | ${getExe pkgs.satty} -f - --fullscreen"; + "exec ${getExe pkgs.hyprshot} --raw -m region | ${getExe pkgs.satty} -f - --fullscreen --copy-command ${copy}"; #: Workspace movement {{{ "--input-device=${inputs.kb.builtin} ${mod}+ampersand" = "workspace number 1";