From 7ed1d9cfb3568b72da847ef27302be9873cbb720 Mon Sep 17 00:00:00 2001 From: askiiart Date: Fri, 16 Feb 2024 18:42:24 -0600 Subject: [PATCH] Update sway screenshots --- sway/config.d/misc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sway/config.d/misc b/sway/config.d/misc index ae7ed30..3eba599 100644 --- a/sway/config.d/misc +++ b/sway/config.d/misc @@ -2,8 +2,9 @@ exec wl-paste -t text --watch clipman store --no-persist # Add screenshot and color picker -bindsym Print exec grim -bindsym Mod1+Print exec "slurp -p | xargs -I % grim -g % -t ppm - | convert - -format '%[pixel:p{0,0}]' txt:- | tail --lines 1 | xargs -I % zenity --info --text=% --title='Color picker'" +#bindsym Print exec grim -t png -c +bindsym Print exec "slurp -d | xargs -I % grim -g % -t png -c && wl-copy --type image/png < $(ls ~/Pictures/*_grim.png | tail --lines 1)" +bindsym Mod1+Print exec "slurp -p | xargs -I % grim -g % -t png - | convert - -format '%[pixel:p{0,0}]' txt:- | tail --lines 1 | xargs -I % zenity --info --text=% --title='Color picker'" # gentoo wiki "More reasonable floating windows" for_window [window_role = "pop-up"] floating enable