Initial commit.
This commit is contained in:
33
i3/i3/scripts/i3exit.bash
Executable file
33
i3/i3/scripts/i3exit.bash
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
### From http://www.archlinux.org/index.php/i3
|
||||
|
||||
lock() {
|
||||
i3lock --image="$HOME/.i3/data/lockscreen.png"
|
||||
}
|
||||
|
||||
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
|
||||
1
i3/i3/scripts/wallchanger.bash
Symbolic link
1
i3/i3/scripts/wallchanger.bash
Symbolic link
@@ -0,0 +1 @@
|
||||
/home/hannes/development/projects/wallchanger/wallchanger.bash
|
||||
Reference in New Issue
Block a user