diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-08-27 09:53:01 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-08-27 09:53:01 -0700 |
commit | 7342605ce796e7c6427a33807d80e06941517315 (patch) | |
tree | fadf1ec8a1559b96a32b988cc74f8b4f9e2794ba /bin | |
parent | 462885ecf128f90fb9e89afa094fc950cf04a861 (diff) | |
download | dotfiles-7342605ce796e7c6427a33807d80e06941517315.tar.gz |
have i3 invoke xfce4-session-logout
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/i3-quit | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bin/i3-quit b/bin/i3-quit new file mode 100755 index 00000000..b9bd09f9 --- /dev/null +++ b/bin/i3-quit @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ "$DESKTOP_SESSION" = "xfce" ]; then + xfce4-session-logout +else + i3-nagbar -t warning \ + -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' \ + -b 'Yes, exit i3' 'i3-msg exit' +fi |