From 6c8beadef4832d288f5387cb74992a8606385206 Mon Sep 17 00:00:00 2001 From: Laurent Le Houerou Date: Sun, 2 Jun 2024 21:49:31 +0400 Subject: [PATCH] better symbols management in polybar --- polybar/.config/polybar/config.ini | 31 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/polybar/.config/polybar/config.ini b/polybar/.config/polybar/config.ini index 47bd43b..9269c79 100644 --- a/polybar/.config/polybar/config.ini +++ b/polybar/.config/polybar/config.ini @@ -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 = -format-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 = +format-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