chore(sway): add colour picker binding

This commit is contained in:
surtur 2021-05-20 20:14:51 +02:00
parent 29ad53d3a1
commit f4d4423f5d
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -203,6 +203,8 @@ bindsym
print exec grim $(xdg-user-dir PICTURES)/screenshots/grim-$(date +'%Y-%m-%dT%H-%M-%S').png print exec grim $(xdg-user-dir PICTURES)/screenshots/grim-$(date +'%Y-%m-%dT%H-%M-%S').png
Shift+print exec grim -g "$(slurp)" - | wl-copy Shift+print exec grim -g "$(slurp)" - | wl-copy
Control+print exec winprint.sh Control+print exec winprint.sh
# colour picker
Control+Shift+print exec grim -g "$(slurp -p)" -t ppm - | convert - -format '%[pixel:p{0,0}]' txt: | wl-copy
$mod+c exec gnome-calculator $mod+c exec gnome-calculator
$mod+n exec nemo $mod+n exec nemo
$mod+m exec QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_QPA_PLATFORMTHEME=wayland vlc $mod+m exec QT_AUTO_SCREEN_SCALE_FACTOR=0 QT_QPA_PLATFORMTHEME=wayland vlc