summaryrefslogtreecommitdiff
path: root/desktop/Local/bin
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/Local/bin')
-rwxr-xr-xdesktop/Local/bin/barstatus8
-rwxr-xr-xdesktop/Local/bin/kittenbar4
2 files changed, 12 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
diff --git a/desktop/Local/bin/kittenbar b/desktop/Local/bin/kittenbar
new file mode 100755
index 0000000..a2b14c2
--- /dev/null
+++ b/desktop/Local/bin/kittenbar
@@ -0,0 +1,4 @@
+#!/bin/sh
+kitten panel -o allow_remote_control=socket-only \
+ --lines=1 \
+ --listen-on=unix:${XDG_RUNTIME_DIR}/kittenbar watch -t -n1 /home/lain/.local/bin/barstatus