diff options
author | Rose <rose@pinkro.se> | 2025-10-10 11:29:10 +0200 |
---|---|---|
committer | Rose <rose@pinkro.se> | 2025-10-10 11:29:10 +0200 |
commit | b7dfa5fdb2330f1e1cd222365055c3d45ad473be (patch) | |
tree | 78e455c8c43c6c00fc4639932ba7315e8c074cd3 /desktop/Local/bin | |
parent | 98424148dfe9ab666ee928df7565e65faa41b61b (diff) | |
download | dotfiles-b7dfa5fdb2330f1e1cd222365055c3d45ad473be.tar.gz dotfiles-b7dfa5fdb2330f1e1cd222365055c3d45ad473be.tar.bz2 |
Diffstat (limited to 'desktop/Local/bin')
-rwxr-xr-x | desktop/Local/bin/barstatus | 8 | ||||
-rwxr-xr-x | desktop/Local/bin/kittenbar | 4 |
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 |