chiark / gitweb /
bin/disorder-notify: Rewrite and take over the functionality of `media-keys'.
[profile] / bin / xshutdown
CommitLineData
8e08f814
MW
1#! /bin/sh
2
3set -e
4answer=$(xmsg -Q -t xshutdown -d "Really shutdown this session?" \
5 "Terminating an X session prematurely can really ruin your day." \
6 =yes:gtk-yes =no:default:cancel:gtk-no)
7case "$answer" in
aeeab412
MW
8 yes)
9 xatom set XINIT_COMMAND !break
10 xatom set XWAIT_DIE XWAIT_DIE_NOW
11 ;;
8e08f814 12esac