-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path9menu.sh
More file actions
executable file
·36 lines (33 loc) · 822 Bytes
/
9menu.sh
File metadata and controls
executable file
·36 lines (33 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
NMENU='9menu -teleport -label Control_Center'
OPT=$1
case $OPT in
"mpd")
$NMENU \
play:'mpc play' \
pause:'mpc pause' \
next:'mpc next' \
previous:'mpc prev' \
back:'pkill 9menu; 9menu.sh' ;;
"vol")
$NMENU \
'vol +':'amixer set Master playback 5%+' \
'vol -':'amixer set Master playback 5%-' \
back:'pkill 9menu; 9menu.sh' ;;
"screen")
$NMENU \
'bklight +':'xbacklight -inc +10%' \
'bklight -':'xbacklight -inc -10%' \
'back':'pkill 9menu; 9menu.sh' ;;
"lock")
$NMENU \
lock:'i3lock-fancy -g -p -t $(uname -n)' \
suspend:'i3lock-fancy -g -p -t $(uname -n) && systemctl suspend' ;;
*)
$NMENU -popup \
'lock':'9menu.sh lock' \
'music':'9menu.sh mpd' \
'volume':'9menu.sh vol' \
'brightness':'9menu.sh screen' \
'quit':'echo Bye!' ;;
esac