Archived
1
0
Fork 0

waybar: Kill pavucontrol on click if already open

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-03-13 21:45:29 +01:00
parent bcce29e087
commit 6286ab533c
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF
2 changed files with 8 additions and 1 deletions

View file

@ -45,7 +45,7 @@
"default": ["", "", ""]
},
"scroll-step": 10,
"on-click": "pavucontrol",
"on-click": "~/.config/waybar/modules/pavucontrol.sh",
"tooltip": false
},
"custom/spotify": {

7
waybar/modules/pavucontrol.sh Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env sh
if pgrep pavucontrol; then
pkill pavucontrol
else
exec pavucontrol
fi