12 lines
No EOL
530 B
Bash
Executable file
12 lines
No EOL
530 B
Bash
Executable file
#!/usr/bin/env bash
|
|
if [[ $1 = "full" ]]; then
|
|
maim -u | tee $HOME/Pictures/Screenshots/$(date +%F-%H%M%S)_maim.png | xclip -selection clipboard -t image/png
|
|
|
|
elif [[ $1 = "fullwait" ]]; then
|
|
sleep 5 && maim -u | tee $HOME/Pictures/Screenshots/$(date +%F-%H%M%S)_maim.png | xclip -selection clipboard -t image/png
|
|
|
|
elif [[ $1 = "part" ]]; then
|
|
maim -s -u | tee $HOME/Pictures/Screenshots/$(date +%F-%H%M%S)_maim.png | xclip -selection clipboard -t image/png
|
|
fi
|
|
|
|
notify-send "Screenshot Taken" "Saved to \~/Pictures/Screenshots" |