1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-09-19 18:21:43 +00:00
dotfiles/bin/exit_i3.sh
J. Fernando Sánchez 7c35e64b44 Changes to i3 and vim
2014-03-04 15:57:06 +01:00

39 lines
802 B
Bash
Executable File

#!/bin/bash
while [ "$select" != "NO" -a "$select" != "YES" ]; do
select=$(echo -e 'NO\nYES' | dmenu -fn "-*-cure-medium-*-*-*-11-*-*-*-*-*-*-*" -nb "#101010" -nf "#5f5f5f" -sb "#191919" -sf "#c72f62" -i -p "Do you really want to exit?");
[ -z "$select" ] && exit 0
done
[ "$select" = "NO" ] && exit 0
i3-msg exit
##!/bin/sh
#lock() {
#i3lock
#}
#case "$1" in
#lock)
#lock
#;;
#logout)
#i3-msg exit
#;;
#suspend)
#lock && systemctl suspend
#;;
#hibernate)
#lock && systemctl hibernate
#;;
#reboot)
#systemctl reboot
#;;
#shutdown)
#systemctl poweroff
#;;
#*)
#echo "Usage: $0 {lock|logout|suspend|hibernate|reboot|shutdown}"
#exit 2
#esac
#exit 0