fix audio, update audio interval to 1, added further ideas to roadmap
This commit is contained in:
parent
efcd74ad75
commit
80d115c104
@ -21,5 +21,8 @@ Adjust `~/.config/i3blocks/config` to control i3 status bar output. Finally relo
|
|||||||
- [x] cpu
|
- [x] cpu
|
||||||
- [ ] swap
|
- [ ] swap
|
||||||
- [ ] wifi/ethernet/bluetooth
|
- [ ] wifi/ethernet/bluetooth
|
||||||
- [ ] external storage mount
|
- [ ] external storage with mount
|
||||||
- [ ] ethernet bandwith
|
- [ ] ethernet bandwith
|
||||||
|
- [ ] brightness
|
||||||
|
- [ ] microphone
|
||||||
|
- [ ] nice icons as labels
|
||||||
|
4
audio
4
audio
@ -1,10 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
amixer get Master | gawk '
|
amixer get Master | gawk '
|
||||||
match($0, /\[([0-9]+)\%\] \[(on)\]/, matches) {
|
match($0, /\[([0-9]+)\%\] \[(on|off)\]/, matches) {
|
||||||
audio=matches[1]
|
audio=matches[1]
|
||||||
}
|
}
|
||||||
END {
|
END {
|
||||||
if (matches[2]=='off') {
|
if (matches[2]=="off") {
|
||||||
printf("mute\n")
|
printf("mute\n")
|
||||||
printf("\n")
|
printf("\n")
|
||||||
exit 33
|
exit 33
|
||||||
|
Reference in New Issue
Block a user