tangled
alpha
login
or
join now
jcs.org
/
dotfiles
0
fork
atom
ftp -o - https://jcs.org/move_in | sh -
0
fork
atom
overview
issues
pulls
pipelines
bin/volume: add helper for volume adjustments
jcs.org
3 years ago
76a19c42
1a79382c
+24
-3
2 changed files
expand all
collapse all
unified
split
.config
sdorfehs
config
bin
volume
+3
-3
.config/sdorfehs/config
···
40
40
# map to matebook F keys
41
41
definekey top F1 exec sdorfehs -c "echo backlight: `xbacklight -dec 5 -time 0; xbacklight | sed 's/\..*//'`"
42
42
definekey top F2 exec sdorfehs -c "echo backlight: `xbacklight -inc 5 -time 0; xbacklight | sed 's/\..*//'`"
43
43
-
definekey top F4 exec sndioctl -q output.mute=!; pkill -USR1 i3status; true
44
44
-
definekey top F5 exec sndioctl -q output.mute=0; sndioctl -q output.level=-0.025; pkill -USR1 i3status; true
45
45
-
definekey top F6 exec sndioctl -q output.mute=0; sndioctl -q output.level=+0.025; pkill -USR1 i3status; true
43
43
+
definekey top F4 exec ~/bin/volume mute
44
44
+
definekey top F5 exec ~/bin/volume down
45
45
+
definekey top F6 exec ~/bin/volume up
46
46
47
47
definekey top F10 exec ~/bin/music prev
48
48
definekey top F11 exec ~/bin/music playpause
+21
bin/volume
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
case "$1" in
4
4
+
up)
5
5
+
sndioctl -q output.mute=0 output.level=+0.025
6
6
+
pkill -USR1 i3status
7
7
+
;;
8
8
+
down)
9
9
+
sndioctl -q output.mute=0 output.level=-0.025
10
10
+
pkill -USR1 i3status
11
11
+
;;
12
12
+
mute)
13
13
+
sndioctl -q output.mute=!
14
14
+
;;
15
15
+
*)
16
16
+
echo "unknown command \"${1}\""
17
17
+
exit 1
18
18
+
;;
19
19
+
esac
20
20
+
21
21
+
pkill -USR1 i3status