15 lines
556 B
Bash
Executable file
15 lines
556 B
Bash
Executable file
#!/bin/sh
|
|
# This simple script uses dmenu to ask the user what they wanna do.
|
|
# Only works with systemd for now.
|
|
|
|
cat <<EOF | jgmenu --simple --at-pointer
|
|
Shutdown, systemctl poweroff
|
|
Reboot, systemctl reboot
|
|
Exit, dwmc quit
|
|
Restart dwm, dwmc self_restart
|
|
Lock session, slock
|
|
Suspend, systemctl suspend
|
|
Hibernate, systemctl hibernate
|
|
Kill X, pkill X || pkill Xorg || SUDO_ASKPASS=/usr/libexec/ssh/gnome-ssh-askpass sudo -A pkill X || SUDO_ASKPASS=/usr/libexec/ssh/gnome-ssh-askpass sudo -A pkill Xorg
|
|
EOF
|