Skip to content

Commit

Permalink
Updated logout script
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Apr 26, 2022
1 parent 30eece2 commit a845a94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/bin/rofi-run
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ for arg in "$@"; do
*Reboot) systemctl -i reboot ;;
*Shutdown) systemctl -i poweroff ;;
*Suspend) systemctl suspend ;;
*Logout) pkill -15 -t tty"$XDG_VTNR" Xorg ;;
*Logout) loginctl terminate-session "${XDG_SESSION_ID-}" ;;
esac
;;
*)
Expand Down
2 changes: 1 addition & 1 deletion common/config/jgmenu/append.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Lock,i3lock-fancy -p,system-lock-screen
Exit,^checkout(exit),system-shutdown

exit,^tag(exit)
exit to prompt,session-logout || pkill -15 -t tty"$XDG_VTNR" Xorg,system-log-out
exit to prompt,loginctl terminate-session "${XDG_SESSION_ID-}",system-log-out
suspend,systemctl -i suspend,system-log-out
reboot,systemctl -i reboot,system-reboot
poweroff,systemctl -i poweroff,system-shutdown

0 comments on commit a845a94

Please sign in to comment.