fixed rofi scripts
This commit is contained in:
parent
aac64b4fab
commit
a9900e45b1
3 changed files with 13 additions and 31 deletions
|
@ -8,9 +8,6 @@
|
|||
## MENU PROMPT ##
|
||||
menu="rofi -dmenu -i -p"
|
||||
|
||||
## CURRENT WALLPAPER FOR LOCKSCREEN ##
|
||||
currwall=$(tail --l 1 "$HOME/.wbg" | awk '{print $3}')
|
||||
|
||||
## OPTIONS ##
|
||||
option1=" Logout"
|
||||
option2=" Reboot"
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
# ***This script was made by Clay Gomera (Drake)***
|
||||
# - Description: A simple screenshot dmenu script
|
||||
# - Dependencies: scrot, dmenu, notify-send
|
||||
# - Dependencies: escrotum, dmenu, notify-send
|
||||
|
||||
## CREATING SCREENSHOT FOLDER ##
|
||||
mkdir -p "$HOME/Pictures/Screenshots"
|
||||
cd "$HOME/Pictures/Screenshots" || exit 0
|
||||
mkdir -p "$HOME/Media/Pictures/Screenshots"
|
||||
cd "$HOME/Media/Pictures/Screenshots" || exit 0
|
||||
|
||||
## CHOICES ##
|
||||
cho1=" Entire screen"
|
||||
|
@ -21,9 +21,13 @@ del2=" 5 sec delay"
|
|||
del3=" 10 sec delay"
|
||||
dels="$del1\n$del2\n$del3"
|
||||
|
||||
## DELAY FUNCTION ##
|
||||
delays() {
|
||||
del=$(echo -e "$dels" | rofi -dmenu -i -p " Select Delay ");
|
||||
## MAIN ACTION ##
|
||||
choice=$(echo -e "$chos" | rofi -dmenu -i -p " Sreenshot Menu ")
|
||||
case $choice in
|
||||
"$cho1")
|
||||
escrotum && notify-send "Screenshot saved";;
|
||||
"$cho2")
|
||||
del=$(echo -e "$dels" | rofi -dmenu -i -p " Select Delay ");
|
||||
case $del in
|
||||
"$del1")
|
||||
escrotum -d 3 -C && notify-send "Screenshot saved";;
|
||||
|
@ -31,28 +35,9 @@ delays() {
|
|||
escrotum -d 5 -C && notify-send "Screenshot saved";;
|
||||
"$del3")
|
||||
escrotum -d 10 -C && notify-send "Screenshot saved"
|
||||
esac
|
||||
}
|
||||
|
||||
## ENTIRE SCREEN FUNCTION ##
|
||||
screen() {
|
||||
escrotum && notify-send "Screenshot saved"
|
||||
}
|
||||
|
||||
## SELECTED AREA FUNCTION ##
|
||||
selectw() {
|
||||
escrotum -s && notify-send "Screenshot saved."
|
||||
}
|
||||
|
||||
## MAIN ACTION ##
|
||||
choice=$(echo -e "$chos" | rofi -dmenu -i -p " Sreenshot Menu ")
|
||||
case $choice in
|
||||
"$cho1")
|
||||
screen;;
|
||||
"$cho2")
|
||||
delays;;
|
||||
esac ;;
|
||||
"$cho3")
|
||||
selectw;;
|
||||
escrotum -s && notify-send "Screenshot saved.";;
|
||||
"$cho4")
|
||||
exit 0
|
||||
esac
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
# - Dependencies: rofi, fd, feh
|
||||
|
||||
## MAIN VARIABLES AND COMMANDS ##
|
||||
walldir="Pictures/Wallpapers" # wallpapers folder, change it to yours, make sure that it ends with a /
|
||||
walldir="$HOME/Media/Pictures/Wallpapers"
|
||||
cd "$walldir" || exit
|
||||
|
||||
## SELECT PICTURE FUNCTION ##
|
||||
|
|
Loading…
Reference in a new issue