Created
September 1, 2017 13:24
-
-
Save sirjofri/7ca2f613481d2ccf4846a9de7729f555 to your computer and use it in GitHub Desktop.
scrot with filename, preview, mouse select and saving into a specific directory. I use it with dmenu on i3
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
#!/bin/bash | |
mkdir -p ~/scrot | |
if [ -z "$1" ]; then | |
scrot -s -e 'mv $f ~/scrot/$n ; feh ~/scrot/$n' | |
else | |
scrot -s ~/scrot/$1.png -e 'feh $f' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment