nix-dotfiles/scripts/shutdownmenu.sh
vorboyvo bcee64e3bf activated shutdown menu by putting it in logind config (globally) and sway config
refactored dmenu to put the command into its own script and call it as a variable
added opam to ocaml config
refactored home-manager package list layout
added nordic theme for nvim
refactored weird touchpad config
added fcitx5 for input method switching and added a keybind to sway
2024-01-29 13:48:01 -05:00

18 lines
258 B
Bash

case `printf "Cancel\nSuspend\nPower Off\nReboot\nLog Out" | $DMENU_COMMAND` in
"Cancel")
:
;;
"Suspend")
systemctl suspend
;;
"Power Off")
systemctl poweroff
;;
"Reboot")
systemctl reboot
;;
"Log Out")
loginctl kill-session
;;
esac