added audio output toggle
This commit is contained in:
@@ -83,7 +83,7 @@ separator-foreground = ${colors.red}
|
||||
font-0 = JetBrains Mono Nerd Font:size=12;4
|
||||
|
||||
modules-left = xworkspaces xwindow
|
||||
modules-right = picom-status pulseaudio battery memory cpu wlan eth date
|
||||
modules-right = picom-status audio audio_device battery memory cpu wlan eth date
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
@@ -136,7 +136,7 @@ label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[module/pulseaudio]
|
||||
[module/audio]
|
||||
type = internal/pulseaudio
|
||||
|
||||
format-volume-prefix = " "
|
||||
@@ -149,6 +149,13 @@ label-volume-foreground = ${colors.green}
|
||||
label-muted = muted
|
||||
label-muted-foreground = ${colors.disabled}
|
||||
|
||||
[module/audio_device]
|
||||
type = custom/script
|
||||
exec = ~/.config/polybar/audio_output_status.sh
|
||||
hook-0 = ~/.config/polybar/audio_output_status.sh
|
||||
interval = 0
|
||||
click-left = ~/.config/polybar/audio_output_switch.sh
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
|
||||
Reference in New Issue
Block a user