Last active
September 4, 2021 00:01
-
-
Save diffficult/84262f8f820102079fe4bbf0c1641967 to your computer and use it in GitHub Desktop.
i3 scrot menu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Screenshot Menu | |
set $maimode "[S]crot . scrot&[U]pload . scrot2[C]lipboard . scrot[A]rea" | |
bindsym $mod+Shift+Print mode $maimode | |
mode $maimode { | |
bindsym s exec --no-startup-id "mkdir -p ~/Pictures/Screenshots && maim -m 10 ~/Pictures/Screenshots/scrot-$(date +%Y-%m-%d_%H-%M-%S).png", mode "default" | |
bindsym u exec --no-startup-id "mkdir -p ~/Pictures/Screenshots && maim -m 10 -s ~/Pictures/Screenshots/upload.png && imgur ~/Pictures/Screenshots/upload.png", mode "default" | |
bindsym c exec --no-startup-id "mkdir -p ~/Pictures/Screenshots && maim -m 10 -s | xclip -selection clipboard -t", mode "default" | |
bindsym a exec --no-startup-id "mkdir -p ~/Pictures/Screenshots && maim | maim -m 10 -s ~/Pictures/Screenshots/cropped-$(date +%Y-%m-%d_%H-%M-%S).png", mode "default" | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
} | |
for this to work you need maim, imgur script (https://github.com/tremby/imgur.sh) or tekup (https://github.com/DanielFGray/tekup) or any uploader. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment