aboutsummaryrefslogtreecommitdiff
path: root/systemControl.sh
blob: b7ba5eef49983aef2c70740d2e36d9c2a5e4df1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
# A dmenu prompt script to control system functions.

options="lock\nreboot\nshutdown\nexit i3" 

chosen=$(echo -e "$options" | dmenu -p ">_")

case "$chosen" in
	lock) i3lock -i ~/images/wallpapers/lockbg.png -f ;;
	reboot) ~/scripts/prompt.sh Reboot? reboot ;;
	shutdown) ~/scripts/prompt.sh Shutdown? "shutdown now" ;;
	"exit i3") ~/scripts/prompt.sh "Exit i3? (ends X session)" "i3-msg exit" ;;
esac