diff options
| author | Philip Wittamore <philip@wittamore.com> | 2026-01-23 14:50:26 +0100 |
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2026-01-23 14:50:26 +0100 |
| commit | 91a1b14d8e4ffbaa80b95923d7707f4df40483d9 (patch) | |
| tree | 258fb13663049c5089229a73418c4dd6b498bb76 /buttons | |
| download | xdm-simple-dinit-91a1b14d8e4ffbaa80b95923d7707f4df40483d9.tar.gz xdm-simple-dinit-91a1b14d8e4ffbaa80b95923d7707f4df40483d9.tar.bz2 xdm-simple-dinit-91a1b14d8e4ffbaa80b95923d7707f4df40483d9.zip | |
update
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 |
