Add screenshot and color picker for sway

This commit is contained in:
askiiart 2023-11-30 18:19:56 -06:00
parent 037a3988fc
commit 974c0c0a39
Signed by untrusted user who does not match committer: askiiart
GPG key ID: BC3800E55FB54D67
13 changed files with 114 additions and 78 deletions
sway/config.d

6
sway/config.d/misc Normal file
View file

@ -0,0 +1,6 @@
# Use clipman for the clipboard manager
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'"