fix audio, update audio interval to 1, added further ideas to roadmap

This commit is contained in:
koksnuss 2018-05-13 23:15:28 +02:00
parent efcd74ad75
commit 80d115c104
3 changed files with 7 additions and 4 deletions

View File

@ -21,5 +21,8 @@ Adjust `~/.config/i3blocks/config` to control i3 status bar output. Finally relo
- [x] cpu
- [ ] swap
- [ ] wifi/ethernet/bluetooth
- [ ] external storage mount
- [ ] external storage with mount
- [ ] ethernet bandwith
- [ ] brightness
- [ ] microphone
- [ ] nice icons as labels

4
audio
View File

@ -1,10 +1,10 @@
#!/bin/bash
amixer get Master | gawk '
match($0, /\[([0-9]+)\%\] \[(on)\]/, matches) {
match($0, /\[([0-9]+)\%\] \[(on|off)\]/, matches) {
audio=matches[1]
}
END {
if (matches[2]=='off') {
if (matches[2]=="off") {
printf("mute\n")
printf("\n")
exit 33

2
config
View File

@ -26,7 +26,7 @@ separator_block_width=5
instance=1
[audio]
interval=2
interval=1
label=audio
[datetime]