diff options
Diffstat (limited to 'scripts/.scripts/power.sh')
| -rwxr-xr-x | scripts/.scripts/power.sh | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
