From 80d115c104ab07bbc50f2214f693f0d63abbb031 Mon Sep 17 00:00:00 2001 From: koksnuss Date: Sun, 13 May 2018 23:15:28 +0200 Subject: [PATCH] fix audio, update audio interval to 1, added further ideas to roadmap --- README.md | 5 ++++- audio | 4 ++-- config | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f3c84da..524cca2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/audio b/audio index b3287d1..95033e8 100755 --- a/audio +++ b/audio @@ -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 diff --git a/config b/config index 49068e6..808737b 100644 --- a/config +++ b/config @@ -26,7 +26,7 @@ separator_block_width=5 instance=1 [audio] -interval=2 +interval=1 label=audio [datetime]