blob: f39522f0efd93f859f8af71d5b718c190aad875b (
plain) (
blame)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
#!/bin/sh
__increase() {
pamixer -i "${1:-10}"
}
__decrease() {
pamixer -d "${1:-10}"
}
__mic_toggle() {
pamixer --default-source -t
}
__toggle() {
pamixer -t
}
__next() {
cmus-remote -n
}
__prev() {
cmus-remote -r
}
__play() {
cmus-remote -u
}
case "${1}" in
i*)
__increase "${2}"
;;
d*)
__decrease "${2}"
;;
mic-t*)
__mic_toggle
;;
t*)
__toggle
;;
n*)
__next
;;
pr*)
__prev
;;
pl*)
__play
;;
esac
ag-status &>/dev/null
|