summaryrefslogtreecommitdiff
path: root/desktop/Local/bin
diff options
context:
space:
mode:
authorRose <rose@pinkro.se>2025-10-10 11:29:10 +0200
committerRose <rose@pinkro.se>2025-10-10 11:29:10 +0200
commitb7dfa5fdb2330f1e1cd222365055c3d45ad473be (patch)
tree78e455c8c43c6c00fc4639932ba7315e8c074cd3 /desktop/Local/bin
parent98424148dfe9ab666ee928df7565e65faa41b61b (diff)
downloaddotfiles-main.tar.gz
dotfiles-main.tar.bz2
all: Rework system structureHEADmain
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