diff options
Diffstat (limited to 'scripts/.scripts')
| -rwxr-xr-x | scripts/.scripts/books.sh | 4 | ||||
| -rwxr-xr-x | scripts/.scripts/mount.sh | 4 | ||||
| -rwxr-xr-x | scripts/.scripts/power.sh | 8 |
3 files changed, 10 insertions, 6 deletions
diff --git a/scripts/.scripts/books.sh b/scripts/.scripts/books.sh index f119107..6860a4f 100755 --- a/scripts/.scripts/books.sh +++ b/scripts/.scripts/books.sh @@ -9,8 +9,8 @@ # # ################################################################## -path="/home/pengu/Books/" -choice=$(ls "$path" | dmenu -l 10) +path="/run/media/peng/Storage/omar/Books" +choice=$(ls "$path" | dmenu -i -l 10) new_choice=$choice while [ -d "$path/$new_choice" ] diff --git a/scripts/.scripts/mount.sh b/scripts/.scripts/mount.sh index 48c1b96..f47f388 100755 --- a/scripts/.scripts/mount.sh +++ b/scripts/.scripts/mount.sh @@ -1,6 +1,6 @@ #!/bin/sh -mkdir /run/media/storage -mount /dev/sda3 /run/media/storage +mkdir /run/media/Storage +mount /dev/sda3 /run/media/Storage diff --git a/scripts/.scripts/power.sh b/scripts/.scripts/power.sh index 8722719..c403494 100755 --- a/scripts/.scripts/power.sh +++ b/scripts/.scripts/power.sh @@ -1,11 +1,15 @@ #!/bin/sh -CHOICES="poweroff\nreboot" +CHOICES="poweroff\nreboot\nlogout" CHOICE=$(echo -e $CHOICES | dmenu -l 3) -systemctl $CHOICE +if [[ "$CHOICE" == "logout" ]]; then + awesome-client "awesome.quit()" +else + systemctl $CHOICE +fi |
