Add binding for uploading screenshots

Jonathan Dahan 2020-11-18 13:16:06 -05:00
parent 8ce131338c
commit 4dc89bef87

@ -2,6 +2,10 @@
swaymsg -t get_outputs | jq -r '.[] | select(.focused) | (.current_mode.width | tostring) + "x" + (.current_mode.height | tostring)'
# Upload screenshot to image hosting service, and copy to clipboard
bindsym $mod+Shift+Print exec slurp | grim -g - - | curl --form 'file=@-' http://0x0.st | wl-copy && swaynag -m "screenshot uploaded & url copied to clipboard"
# HTML color picker
Bind this to a key, select a point on the screen and get a HTML color code for that point copied to the clipboard. Requires ImageMagick, `grim` and `slurp` to be installed.