diff options
author | Rose <rose@pinkro.se> | 2025-09-06 23:39:52 +0200 |
---|---|---|
committer | Rose <rose@pinkro.se> | 2025-09-06 23:39:52 +0200 |
commit | 977e42a8bca3b5d798e9900634c82a69bfa01997 (patch) | |
tree | 90e287eecd5ca8683fac6b01a4971aad7e65618b /desktop | |
parent | 22cb69f60004170c1a7d3410a2fe06d5238317b7 (diff) | |
download | dotfiles-977e42a8bca3b5d798e9900634c82a69bfa01997.tar.gz dotfiles-977e42a8bca3b5d798e9900634c82a69bfa01997.tar.bz2 |
desktop: move kittenbar to repo
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/.config/kitty/quick-access-terminal.conf | 1 | ||||
-rwxr-xr-x | desktop/.local/bin/barstatus | 15 | ||||
-rwxr-xr-x | desktop/.local/bin/kittenbar | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/desktop/.config/kitty/quick-access-terminal.conf b/desktop/.config/kitty/quick-access-terminal.conf index 0866680..80a6f0c 100644 --- a/desktop/.config/kitty/quick-access-terminal.conf +++ b/desktop/.config/kitty/quick-access-terminal.conf @@ -5,3 +5,4 @@ background_opacity 0.90 hide_on_focus_loss yes grab_keyboard no start_as_hidden yes +shell /usr/bin/fish diff --git a/desktop/.local/bin/barstatus b/desktop/.local/bin/barstatus new file mode 100755 index 0000000..3275533 --- /dev/null +++ b/desktop/.local/bin/barstatus @@ -0,0 +1,15 @@ +#!/bin/sh +echo -n "SPKR: $(wpctl get-volume @DEFAULT_AUDIO_SINK@ 2> /dev/null ) ; MIC: $(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ 2> /dev/null) " +echo -n " | " +echo -n "$(date)" +pidof qmmp 2> /dev/null > /dev/null +if [ $? -eq 0 ]; then + echo -n " | " + nowplaying=$(qmmp --nowplaying '%p - %a: %t') + if [ ${#nowplaying} -gt 80 ]; then + echo -n "${nowplaying:0:77}... " + else + echo -n "$nowplaying" + fi + echo -n "$(qmmp --status | head -1)" +fi 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 |