ctucx.git: nixfiles

ctucx' nixfiles

commit a3900b4994e2d19c4e04cfb912582897308af4ec
parent d5a6ecc344d34c3a8da8e81efcbbbb8d6052a0a3
Author: Leah (ctucx) <leah@ctu.cx>
Date: Sun, 10 Oct 2021 20:37:17 +0200

programs/sway: fix for wl-copy?
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/configurations/programs/sway.nix b/configurations/programs/sway.nix
@@ -108,8 +108,8 @@
 
           "Shift+Print"               = "exec ${pkgs.grim}/bin/grim ~/Pictures/Screenshots/$(date +\"%Y-%m-%d_%H:%m:%S\").png";
           "${modifier}+Shift+Print"   = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" ~/Pictures/Screenshots/$(date +\"%Y-%m-%d_%H:%m:%S\").png";
-          "Print"                     = "exec ${pkgs.grim}/bin/grim - | ${pkgs.wl-clipboard}/bin/wl-copy";
-          "${modifier}+Print"         = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy";
+          "Print"                     = "exec ${pkgs.grim}/bin/grim - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png";
+          "${modifier}+Print"         = "exec ${pkgs.grim}/bin/grim -g \"$(${pkgs.slurp}/bin/slurp)\" - | ${pkgs.wl-clipboard}/bin/wl-copy -t image/png";
 
           "XF86MonBrightnessUp"       = "exec ${pkgs.brightnessctl}/bin/brightnessctl s +5%";
           "XF86MonBrightnessDown"     = "exec ${pkgs.brightnessctl}/bin/brightnessctl s 5%-";