diff options
| author | Josh Rahm <rahm@josher.dev> | 2026-08-09 17:22:22 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@josher.dev> | 2026-08-09 17:22:22 -0600 |
| commit | a80d4e2d36b377b3466db3b2628b9dec71fcfce2 (patch) | |
| tree | a9109869c6bc4516ebeccc80b68fc314031e08aa /extras/HOME | |
| parent | a66a73ebe45cbad857f8a2e30050cb94cc1ace39 (diff) | |
| download | rde-main.tar.gz rde-main.tar.bz2 rde-main.zip | |
Diffstat (limited to 'extras/HOME')
| -rwxr-xr-x | extras/HOME/.xmonad/xmobar-bluetooth | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/extras/HOME/.xmonad/xmobar-bluetooth b/extras/HOME/.xmonad/xmobar-bluetooth index a3a3ac7..828c06a 100755 --- a/extras/HOME/.xmonad/xmobar-bluetooth +++ b/extras/HOME/.xmonad/xmobar-bluetooth @@ -2,6 +2,10 @@ cur="" +function output { + exec echo '<action=`bluetooth-select.sh` button=1>'"$1"'</action>' +} + if [ -d /sys/class/bluetooth ] ; then bluetoothctl -- info | while read line ; do @@ -13,10 +17,10 @@ if [ -d /sys/class/bluetooth ] ; then fi if [ "$key" == "Connected" -a "$value" == "yes" ] ; then - exec echo "<fc=#4287f5></fc> <fc=#a0a0a0><fn=3>$cur</fn></fc> " + output "<fc=#4287f5></fc> <fc=#a0a0a0><fn=3>$cur</fn></fc> " fi done fi -exec echo "<fc=#404040></fc> " +output "<fc=#404040></fc> " |