Add logout option to menuquit

This commit is contained in:
ItsDrike 2023-01-25 02:10:02 +01:00
parent 17af415787
commit 05dcf54c6a
No known key found for this signature in database
GPG key ID: B014E761034AF742

View file

@ -1,6 +1,6 @@
#!/bin/bash
action="$(printf 'Quit WM\nLock session\nLock TTYs\nPoweroff\nReboot\nNothing' | menuprompt -c --app wofi -p "Select Action" -- -O default)"
action="$(printf 'Quit WM\nLock session\nLogout\nLock TTYs\nPoweroff\nReboot\nNothing' | menuprompt -c --app wofi -p "Select Action" -- -O default)"
case "$action" in
"Quit WM")
@ -9,6 +9,9 @@ case "$action" in
"Lock session")
loginctl lock-session
;;
"Logout")
loginctl terminate-user "$USER"
;;
"Lock TTYs")
physlock
;;