diff options
| author | Philip Wittamore <philip@wittamore.com> | 2026-05-03 14:03:12 +0200 |
|---|---|---|
| committer | Philip Wittamore <philip@wittamore.com> | 2026-05-03 14:03:12 +0200 |
| commit | d23c158bb34be7d4c9d1fbbd5ec23fa5d9c3fccb (patch) | |
| tree | 65a1ae5505155b0cfa82a3a52fc86f49be9ce28e /buttons | |
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 |
