diff options
Diffstat (limited to 'desktop/Local/bin/barstatus')
-rwxr-xr-x | desktop/Local/bin/barstatus | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/Local/bin/barstatus b/desktop/Local/bin/barstatus new file mode 100755 index 0000000..ecb461c --- /dev/null +++ b/desktop/Local/bin/barstatus @@ -0,0 +1,8 @@ +#!/bin/sh +echo -n "SPKR: $(wpctl get-volume @DEFAULT_AUDIO_SINK@ 2> /dev/null | sed 's/0\.//g' | sed 's/\.//g' )% ; MIC: $(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ 2> /dev/null | sed 's/0\.//g' | sed 's/\.//g')%" +echo -n " | " +echo -n "$(date)" +for f in ${HOME}/.local/share/barmodules/enabled/*; do + echo -n " | " + [ -x "$f" ] && [ ! -d "$f" ] && "$f" +done |