mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 14:34:07 +01:00
Add binding for uploading screenshots
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.
|
||||
|
Loading…
Reference in New Issue
Block a user