From a9900e45b14510e5090eb1691a6d799998ea3891 Mon Sep 17 00:00:00 2001 From: Clay Gomera Date: Sat, 24 Jun 2023 13:01:17 -0400 Subject: [PATCH] fixed rofi scripts --- user/.config/rofi/scripts/rofi_power | 3 --- user/.config/rofi/scripts/rofi_scrot | 39 +++++++++------------------- user/.config/rofi/scripts/rofi_wall | 2 +- 3 files changed, 13 insertions(+), 31 deletions(-) diff --git a/user/.config/rofi/scripts/rofi_power b/user/.config/rofi/scripts/rofi_power index d619dbaaa..543afdc35 100755 --- a/user/.config/rofi/scripts/rofi_power +++ b/user/.config/rofi/scripts/rofi_power @@ -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" diff --git a/user/.config/rofi/scripts/rofi_scrot b/user/.config/rofi/scripts/rofi_scrot index f6678adc8..90899b4a7 100755 --- a/user/.config/rofi/scripts/rofi_scrot +++ b/user/.config/rofi/scripts/rofi_scrot @@ -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 diff --git a/user/.config/rofi/scripts/rofi_wall b/user/.config/rofi/scripts/rofi_wall index 39a6136c4..a4017a11d 100755 --- a/user/.config/rofi/scripts/rofi_wall +++ b/user/.config/rofi/scripts/rofi_wall @@ -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 ##