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
|
font-0 = FiraCode Nerd Font Mono;2
|
||||||
|
|
||||||
modules-left = xworkspaces xwindow
|
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-click = pointer
|
||||||
cursor-scroll = ns-resize
|
cursor-scroll = ns-resize
|
||||||
@ -101,8 +101,8 @@ tray-spacing = 16pt
|
|||||||
type = internal/xworkspaces
|
type = internal/xworkspaces
|
||||||
|
|
||||||
label-active = %name%
|
label-active = %name%
|
||||||
label-active-background = ${colors.background-alt}
|
label-active-background = ${colors.overlay0}
|
||||||
label-active-underline= ${colors.primary}
|
label-active-underline= ${colors.yellow}
|
||||||
label-active-padding = 1
|
label-active-padding = 1
|
||||||
|
|
||||||
label-occupied = %name%
|
label-occupied = %name%
|
||||||
@ -125,35 +125,38 @@ type = internal/fs
|
|||||||
interval = 25
|
interval = 25
|
||||||
|
|
||||||
mount-0 = /
|
mount-0 = /
|
||||||
|
mount-1 = /home
|
||||||
|
|
||||||
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
|
label-mounted = %{F#F0C674}%mountpoint%%{F-} %percentage_used%%
|
||||||
|
|
||||||
label-unmounted = %mountpoint% not mounted
|
label-unmounted = %mountpoint% not mounted
|
||||||
label-unmounted-foreground = ${colors.disabled}
|
label-unmounted-foreground = ${colors.disabled}
|
||||||
|
|
||||||
[module/pulseaudio]
|
[module/pulseaudio-control-output]
|
||||||
type = internal/pulseaudio
|
type = custom/script
|
||||||
|
tail = true
|
||||||
|
format-underline = ${colors.cyan}
|
||||||
|
label-padding = 2
|
||||||
|
label-foreground = ${colors.text}
|
||||||
|
|
||||||
format-volume-prefix = "VOL "
|
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
|
||||||
format-volume-prefix-foreground = ${colors.primary}
|
click-right = exec pavucontrol &
|
||||||
format-volume = <label-volume>
|
click-left = pulseaudio-control togmute
|
||||||
|
click-middle = pulseaudio-control --node-blacklist "alsa_output.pci-0000_01_00.1.hdmi-stereo" next-node
|
||||||
label-volume = %percentage%%
|
scroll-up = pulseaudio-control --volume-max 130 up
|
||||||
|
scroll-down = pulseaudio-control --volume-max 130 down
|
||||||
label-muted = muted
|
|
||||||
label-muted-foreground = ${colors.disabled}
|
|
||||||
|
|
||||||
[module/xkeyboard]
|
[module/xkeyboard]
|
||||||
type = internal/xkeyboard
|
type = internal/xkeyboard
|
||||||
blacklist-0 = num lock
|
# blacklist-0 = num lock
|
||||||
|
|
||||||
label-layout = %layout%
|
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-margin = 1
|
||||||
label-indicator-foreground = ${colors.background}
|
label-indicator-foreground = ${colors.text}
|
||||||
label-indicator-background = ${colors.secondary}
|
label-indicator-background = ${colors.surface0}
|
||||||
|
|
||||||
[module/memory]
|
[module/memory]
|
||||||
type = internal/memory
|
type = internal/memory
|
||||||
@ -181,10 +184,10 @@ inherit = network-base
|
|||||||
interface-type = wireless
|
interface-type = wireless
|
||||||
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
|
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip%
|
||||||
|
|
||||||
[module/eth]
|
# [module/eth]
|
||||||
inherit = network-base
|
# inherit = network-base
|
||||||
interface-type = wired
|
# interface-type = wired
|
||||||
label-connected = %{F#F0C674}%ifname%%{F-} %local_ip%
|
# label-connected = %{F#F0C674}%ifname%%{F-} %local_icp%
|
||||||
|
|
||||||
[module/date]
|
[module/date]
|
||||||
type = internal/date
|
type = internal/date
|
||||||
|
Loading…
Reference in New Issue
Block a user