diff options
author | jao <jao@gnu.org> | 2019-06-29 23:26:22 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2019-06-29 23:26:22 +0100 |
commit | b0030f6c35a1ab02bc4ff256984c75513981cd8f (patch) | |
tree | fc016523745fe146946f43b7d9898c11ae9cd41f | |
parent | 8cf9dd7dab52a1583ec2073e8742d9d2247c0a8f (diff) | |
download | xmobar-config-b0030f6c35a1ab02bc4ff256984c75513981cd8f.tar.gz xmobar-config-b0030f6c35a1ab02bc4ff256984c75513981cd8f.tar.bz2 |
pasystray action
-rwxr-xr-x | bin/toggle-pasystray.sh | 3 | ||||
-rw-r--r-- | src/lib/Bottom.hs | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bin/toggle-pasystray.sh b/bin/toggle-pasystray.sh new file mode 100755 index 0000000..584084c --- /dev/null +++ b/bin/toggle-pasystray.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +(pidof pasystray && killall pasystray) || (pasystray &) diff --git a/src/lib/Bottom.hs b/src/lib/Bottom.hs index a99b873..8fb7fe6 100644 --- a/src/lib/Bottom.hs +++ b/src/lib/Bottom.hs @@ -13,7 +13,8 @@ config cs tpl p = (baseConfig p) { , template = "|tray| \ \<action=`toggle-nm-applet.sh `>|tun0||wlp2s0wi|</action> \ \ |dynnetwork| \ - \ <fn=2>🎧</fn>|default:Master| |default:Capture| <fn=2>🎵</fn>" + \ <action=`toggle-pasystray.sh `><fn=2>🎧</fn>|default:Master|\ + \ |default:Capture|</action> <fn=2>🎵</fn>" ++ tpl ++ " {} |mbox| <fn=2>🌤</fn> |EGPH| \ \ <fn=2>⏰ </fn>|uptime| <fn=2>🕓 </fn>|datetime| |laTime| " |