From 4dc89bef87fc92720aa030ac8c9ada3b89cd02e3 Mon Sep 17 00:00:00 2001 From: Jonathan Dahan Date: Wed, 18 Nov 2020 13:16:06 -0500 Subject: [PATCH] Add binding for uploading screenshots --- Tricks.md | 4 ++++ 1 file changed, 4 insertions(+) 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.