blob: 594340b2ce00061c84fa4a0efa78d415ce428e18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
notify() {
notify-send "Screenshot saved" "images/screenshots/$(date +%F_%H-%M)"
}
case "$1" in
"full")
flameshot full -p "$HOME/images/screenshots" && notify ;;
"select")
flameshot gui -p "$HOME/images/screenshots" && notify ;;
*)
notify-send "Error" "Couldn't save screenshot" ;;
esac
|