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