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 - [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
View File

@ -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

2
config
View File

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