better symbols management in polybar

This commit is contained in:
Laurent Le Houerou 2024-06-02 21:49:31 +04:00
parent 070ad2d434
commit 6c8beadef4

View File

@ -76,9 +76,10 @@ separator = |
separator-foreground = ${colors.disabled}
font-0 = FiraCode Nerd Font Mono;2
font-1 = Symbols Nerd Font;2
modules-left = xworkspaces xwindow
modules-right = filesystem pulseaudio-control-output xkeyboard memory cpu wlan eth date
modules-left = xworkspaces
modules-right = filesystem pulseaudio-control-output memory cpu wlan date systray
cursor-click = pointer
cursor-scroll = ns-resize
@ -140,7 +141,7 @@ format-underline = ${colors.cyan}
label-padding = 2
label-foreground = ${colors.text}
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
exec = pulseaudio-control --icons-volume "%{T2}%{T-},%{T2}%{T-}" --icon-muted "%{T2}%{T-} " --node-nicknames-from "device.description" --node-nickname "alsa_output.pci-0000_00_1f.3.analog-stereo:%{T2}%{T-} Speakers" --node-nickname "alsa_output.usb-SteelSeries_Arctis_Nova_7-00.analog-stereo:%{T2}%{T-} 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
@ -173,22 +174,20 @@ format-prefix = "CPU "
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
[module/wlan]
inherit = network-base
interface-type = wireless
label-connected = %{F#F0C674}%ifname%%{F-} %essid% %local_ip% %downspeed:9% %upspeed:9%
# [module/eth]
# inherit = network-base
# interface-type = wired
# label-connected = %{F#F0C674}%ifname%%{F-} %local_icp%
type = internal/network
interval = 5
format-connected = <ramp-signal> <label-connected>
format-disconnected = <label-disconnected>
label-connected = %signal%% %downspeed:9% %{T2}%{T-} %upspeed:9% %{T2}%{T-}
label-disconnected = %{T2}%{T-}
ramp-signal-0 = %{T2}󰤯%{T-}
ramp-signal-1 = %{T2}󰤟%{T-}
ramp-signal-2 = %{T2}󰤢%{T-}
ramp-signal-3 = %{T2}󰤥%{T-}
ramp-signal-4 = %{T2}󰤨%{T-}
[module/date]
type = internal/date