mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-25 12:44:35 +00:00
Add logout option to menuquit
This commit is contained in:
parent
17af415787
commit
05dcf54c6a
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/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
|
case "$action" in
|
||||||
"Quit WM")
|
"Quit WM")
|
||||||
|
@ -9,6 +9,9 @@ case "$action" in
|
||||||
"Lock session")
|
"Lock session")
|
||||||
loginctl lock-session
|
loginctl lock-session
|
||||||
;;
|
;;
|
||||||
|
"Logout")
|
||||||
|
loginctl terminate-user "$USER"
|
||||||
|
;;
|
||||||
"Lock TTYs")
|
"Lock TTYs")
|
||||||
physlock
|
physlock
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue