add better audio control to polybar
This commit is contained in:
parent
513329c138
commit
747a884600
@ -78,7 +78,7 @@ separator-foreground = ${colors.disabled}
|
||||
font-0 = FiraCode Nerd Font Mono;2
|
||||
|
||||
modules-left = xworkspaces xwindow
|
||||
modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth date
|
||||
modules-right = filesystem pulseaudio-control-output xkeyboard memory cpu wlan eth date
|
||||
|
||||
cursor-click = pointer
|
||||
cursor-scroll = ns-resize
|
||||
@ -101,8 +101,8 @@ tray-spacing = 16pt
|
||||
type = internal/xworkspaces
|
||||
|
||||
label-active = %name%
|
||||
label-active-background = ${colors.background-alt}
|
||||
label-active-underline= ${colors.primary}
|
||||
label-active-background = ${colors.overlay0}
|
||||
label-active-underline= ${colors.yellow}
|
||||
label-active-padding = 1
|
||||
|
||||
label-occupied = %name%
|
||||
@ -125,35 +125,38 @@ type = internal/fs
|
||||
interval = 25
|
||||
|
||||
mount-0 = /
|
||||
mount-1 = /home
|
||||
|
||||
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
|
||||
|
||||
label-unmounted = %mountpoint% not mounted
|
||||
label-unmounted-foreground = ${colors.disabled}
|
||||
|
||||
[module/pulseaudio]
|
||||
type = internal/pulseaudio
|
||||
[module/pulseaudio-control-output]
|
||||
type = custom/script
|
||||
tail = true
|
||||
format-underline = ${colors.cyan}
|
||||
label-padding = 2
|
||||
label-foreground = ${colors.text}
|
||||
|
||||
format-volume-prefix = "VOL "
|
||||
format-volume-prefix-foreground = ${colors.primary}
|
||||
format-volume = <label-volume>
|
||||
|
||||
label-volume = %percentage%%
|
||||
|
||||
label-muted = muted
|
||||
label-muted-foreground = ${colors.disabled}
|
||||
exec = pulseaudio-control --icons-volume " , " --icon-muted " " --node-nicknames-from "device.description" --node-nickname "alsa_output.pci-0000_00_1b.0.analog-stereo: Speakers" --node-nickname "alsa_output.usb-Kingston_HyperX_Virtual_Surround_Sound_00000000-00.analog-stereo: Headphones" listen
|
||||
click-right = exec pavucontrol &
|
||||
click-left = pulseaudio-control togmute
|
||||
click-middle = pulseaudio-control --node-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo" next-node
|
||||
scroll-up = pulseaudio-control --volume-max 130 up
|
||||
scroll-down = pulseaudio-control --volume-max 130 down
|
||||
|
||||
[module/xkeyboard]
|
||||
type = internal/xkeyboard
|
||||
blacklist-0 = num lock
|
||||
# blacklist-0 = num lock
|
||||
|
||||
label-layout = %layout%
|
||||
label-layout-foreground = ${colors.primary}
|
||||
label-layout-foreground = ${colors.text}
|
||||
|
||||
label-indicator-padding = 2
|
||||
label-indicator-padding = 1
|
||||
label-indicator-margin = 1
|
||||
label-indicator-foreground = ${colors.background}
|
||||
label-indicator-background = ${colors.secondary}
|
||||
label-indicator-foreground = ${colors.text}
|
||||
label-indicator-background = ${colors.surface0}
|
||||
|
||||
[module/memory]
|
||||
type = internal/memory
|
||||
@ -181,10 +184,10 @@ inherit = network-base
|
||||
interface-type = wireless
|
||||
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
|
||||
|
||||
[module/eth]
|
||||
inherit = network-base
|
||||
interface-type = wired
|
||||
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
|
||||
# [module/eth]
|
||||
# inherit = network-base
|
||||
# interface-type = wired
|
||||
# label-connected = %{F#F0C674}%ifname%%{F-} %local_icp%
|
||||
|
||||
[module/date]
|
||||
type = internal/date
|
||||
|
Loading…
Reference in New Issue
Block a user