From 095e03ef8170dac75becc309f13bb9e418c6f026 Mon Sep 17 00:00:00 2001 From: Riley Apeldoorn Date: Thu, 25 May 2023 19:24:19 +0200 Subject: [PATCH] Add sc utility --- shared/home/gui/sway.nix | 5 +++++ 1 file changed, 5 insertions(+) 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 '')