implemented global mue button
This commit is contained in:
@@ -44,7 +44,7 @@ font-1 = "Hack Nerd Font:style=Regular:pixelsize=10;2"
|
||||
|
||||
modules-left = i3
|
||||
modules-center =
|
||||
modules-right = playerctl pulseaudio wlan wireguard-status battery date
|
||||
modules-right = playerctl pulseaudio wlan mute-mic wireguard-status battery date
|
||||
|
||||
tray-position = right
|
||||
tray-padding = 2
|
||||
@@ -218,6 +218,12 @@ click-left = $HOME/.config/polybar/wireguard-switch.sh
|
||||
hook-0 = $HOME/.config/polybar/wireguard-info.sh
|
||||
initial = 1
|
||||
|
||||
[module/mute-mic]
|
||||
type = custom/ipc
|
||||
|
||||
hook-0 = $XDG_CONFIG_HOME/polybar/is-muted.sh
|
||||
inital = 1
|
||||
|
||||
[settings]
|
||||
screenchange-reload = true
|
||||
;compositing-background = xor
|
||||
|
||||
8
.config/polybar/is-muted.sh
Executable file
8
.config/polybar/is-muted.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
if amixer get Capture | grep '\[off\]' > /dev/null
|
||||
then
|
||||
echo ""
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
Reference in New Issue
Block a user