1
0
mirror of https://github.com/balkian/dotfiles.git synced 2025-08-23 16:02:19 +00:00

Changes to i3 and vim

This commit is contained in:
J. Fernando Sánchez
2014-03-04 15:57:06 +01:00
parent de4b50811b
commit 7c35e64b44
4 changed files with 162 additions and 36 deletions

38
bin/exit_i3.sh Executable file
View File

@@ -0,0 +1,38 @@
#!/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