feat: mute button on Waybar

This commit is contained in:
2026-01-31 13:48:38 +00:00
parent 68129c5363
commit 2314f440b9
3 changed files with 11 additions and 5 deletions

View File

@@ -14,7 +14,8 @@
"modules-right": [
"tray",
"pulseaudio",
"pulseaudio",
"custom/micmute",
"battery",
"custom/power"
],
@@ -79,5 +80,12 @@
"tooltip": false,
"on-click": "wlogout"
},
"custom/micmute": {
"exec": "bash -c 'wpctl get-volume @DEFAULT_AUDIO_SOURCE@ | grep -q MUTED && echo \"\" || echo \"\"'",
"interval": 1,
"tooltip": true,
"on-click": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
}
}

View File

@@ -103,7 +103,7 @@
}
#tray, #battery, #pulseaudio, #custom-power {
#tray, #battery, #pulseaudio, #custom-power, #custom-micmute {
background-color: @Buttons;
color: @Text;
border-radius: 10px;