-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.sh
executable file
·24 lines (18 loc) · 932 Bytes
/
variables.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
# www.jrodal.dev
# Some variables you may want to change
# in particular, make sure that SCREENSHOT_DIR is set to the directory that you wish to store screenshots in.
SCREENSHOT_DIR=$HOME/Pictures/
ACTIONS_PATH=$HOME/.config/dunst/screenshot_actions.sh
OCR_LANG="eng" # change this to your preferred language. use tesseract --list-langs to see your installed languages.
ERROR_ICON=$HOME/.local/share/icons/dunst_icons/icons8-high-importance-48.png
CAMERA_ICON=$HOME/.local/share/icons/dunst_icons/icons8-camera-100.png
OCR_ICON=$HOME/.local/share/icons/dunst_icons/icons8-general-ocr-48.png
CAMERA_SHUTTER=/usr/share/sounds/freedesktop/stereo/camera-shutter.oga
############################ Some Functions #################################################
function play_sound() {
paplay $CAMERA_SHUTTER
}
function send_error() {
dunstify -u critical -i "$ERROR_ICON" "Screenshot Actions Error" "$1"
}