diff --git a/Tricks.md b/Tricks.md index 7954546..181f0a4 100644 --- a/Tricks.md +++ b/Tricks.md @@ -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.