diff --git a/home/sway.nix b/home/sway.nix index 8c3d810..8057859 100644 --- a/home/sway.nix +++ b/home/sway.nix @@ -3,7 +3,14 @@ lib, pkgs, ... -}: { +}: let + cliphist_sway = pkgs.writeShellScriptBin "cliphist_sway" '' + ${pkgs.cliphist}/bin/cliphist list | \ + ${pkgs.wofi}/bin/wofi --dmenu --insensitive | \ + ${pkgs.cliphist}/bin/cliphist decode | \ + ${pkgs.wl-clipboard}/bin/wl-copy + ''; +in { wayland.windowManager.sway = { enable = true; extraSessionCommands = ""; @@ -66,6 +73,7 @@ "Alt+Shift+q" = "kill"; "Alt+Shift+Return" = "exec ${pkgs.foot}/bin/footclient"; "Alt+p" = "exec ${pkgs.dmenu-wayland}/bin/dmenu-wl_run -fn \"mono 14\""; + "Alt+c" = "exec ${pkgs.moreutils}/bin/lckdo cliphist_sway ${cliphist_sway}/bin/cliphist_sway"; "Alt+Shift+space" = "floating toggle"; "Alt+space" = "focus mode_toggle";