diff --git a/shared/home/gui/sway.nix b/shared/home/gui/sway.nix index ad07dc5..a7e0dd2 100644 --- a/shared/home/gui/sway.nix +++ b/shared/home/gui/sway.nix @@ -14,6 +14,10 @@ let mod = "Mod4"; in mkMerge keybinds ); + sc = with pkgs; (writeScriptBin "sc" '' + ${slurp}/bin/slurp | ${grim}/bin/grim -g - - | ${wl-clipboard}/bin/wl-copy -t image/png + ''); + in with lib; { options.custom.gui.sway = with types; { @@ -34,6 +38,7 @@ in with lib; { kitty swaylock wl-clipboard + sc (writeScriptBin "c" '' ${wl-clipboard}/bin/wl-copy '')