From 4a12606f4e39eec0ce83a388711ce1f3b0543fe7 Mon Sep 17 00:00:00 2001 From: Alexander Wainwright Date: Mon, 30 Mar 2026 21:32:44 +1000 Subject: [PATCH] Save screenshots to file and add Print key binding Co-Authored-By: Claude Opus 4.5 --- alex/sway.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/alex/sway.nix b/alex/sway.nix index c1f54ae..81b3759 100644 --- a/alex/sway.nix +++ b/alex/sway.nix @@ -166,7 +166,9 @@ in "${modifier}+Shift+l" = "exec swaylock -f"; - "${modifier}+Shift+s" = "exec grim -g \"$(slurp)\" - | wl-copy"; + "${modifier}+Shift+s" = "exec grim -g \"$(slurp)\" - | tee \"/home/alex/Pictures/Screenshots/$(date +'%Y%m%d_%Hh%Mm%Ss_grim.png')\" | wl-copy"; + + "Print" = "exec grim - | tee \"/home/alex/Pictures/Screenshots/$(date +'%Y%m%d_%Hh%Mm%Ss_grim.png')\" | wl-copy"; # Workspaces "--whole-window ${modifier}+button4" = "workspace prev";