blob: 01f961e21bb5977fceff51723d4dff695ff8108a (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/sh -e
case $1 in
quit) exit 0 ;;
'Reload i3 configuration') i3-msg reload >&2 ;;
'Log out') i3-msg exit >&2 ;;
'Shutdown') sudo -n /run/current-system/profile/sbin/shutdown >&2 ;;
'Reboot') sudo -n /run/current-system/profile/sbin/reboot >&2 ;;
*)
printf '\0%s\x1f%s\n' prompt 'Session'
printf '%s\0icon\x1f%s\n' \
'Reload i3 configuration' reload \
'Log out' system-log-out \
'Shutdown' system-shutdown \
'Reboot' system-reboot ;;
esac
|