fix(waybar): repair mute and update widgets

This commit is contained in:
2026-07-21 15:17:06 +02:00
parent f04bde4ec5
commit 89e9b93222
2 changed files with 13 additions and 20 deletions
+3 -10
View File
@@ -1,11 +1,4 @@
#!/bin/bash
# Check the current state of the speaker
state=$(amixer -D pulse sget Master | awk '/\[on\]/{print "unmute"; exit} /\[off\]/{print "mute"; exit}')
# Toggle the state of the speaker
#
if [ "$state" = "[on] "]; then
amixer
# amixer -D pulse sset Master "$state" > /dev/null
#!/usr/bin/env bash
# Toggle the default PulseAudio sink's mute state.
amixer -D pulse sset Master toggle >/dev/null