diff options
Diffstat (limited to 'buttons')
| -rwxr-xr-x | buttons | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -0,0 +1,15 @@ +#!/bin/sh + +xmessage -buttons reboot,suspend,poweroff "$@" "" + +case "$?" in + 101) + /usr/bin/loginctl reboot + ;; + 102) + /usr/bin/loginctl suspend + ;; + 103) + /usr/bin/loginctl poweroff + ;; +esac |
