From b4b0c03999d2beaa440d84f27ff2a0202222b685 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:18 +0100 Subject: feat(sway): copy screenshots to clipboard Pipe grim through tee so Print / Shift+Print save to disk AND copy the PNG to the Wayland clipboard via wl-copy. --- dot_config/sway/config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dot_config') diff --git a/dot_config/sway/config b/dot_config/sway/config index c3b347a..f861b8f 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -134,8 +134,8 @@ bindsym XF86AudioNext exec playerctl next bindsym XF86AudioPrev exec playerctl previous # Screenshots -bindsym Print exec grim -g "$(slurp)" ~/pics/screenshots/$(date +%Y-%m-%d-%H-%M-%S).png -bindsym Shift+Print exec grim ~/pics/screenshots/$(date +%Y-%m-%d-%H-%M-%S).png +bindsym Print exec sh -c 'grim -g "$(slurp)" - | tee ~/pics/screenshots/$(date +%Y-%m-%d-%H-%M-%S).png | wl-copy' +bindsym Shift+Print exec sh -c 'grim - | tee ~/pics/screenshots/$(date +%Y-%m-%d-%H-%M-%S).png | wl-copy' # Lock & pause bindsym $mod+Shift+s exec "playerctl -a pause; swaylock -f -e -c 282828" -- cgit v1.3.1