polybar: add temperature, add actions for middle and right click on volume

This commit is contained in:
2025-09-04 22:00:26 +02:00
parent d419410d62
commit 3f34f1c684

View File

@@ -16,6 +16,9 @@
;
;==========================================================
[common]
priv = false
[colors]
background = #282A2E
background-alt = #373B41
@@ -52,7 +55,7 @@ separator-foreground = ${colors.disabled}
font-0 = Fira Code Nerd Font:size=18;4
modules-left = xworkspaces xwindow
modules-right = filesystem pulseaudio xkeyboard memory cpu wlan eth date
modules-right = filesystem pulseaudio xkeyboard memory cpu temperature wlan eth date
cursor-click = pointer
cursor-scroll = ns-resize
@@ -127,6 +130,9 @@ label-volume = %percentage%%
label-muted = muted
label-muted-foreground = ${colors.disabled}
click-middle = "polybar-msg action eth module_toggle; polybar-msg action wlan module_toggle"
click-right = pavucontrol
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
@@ -153,12 +159,16 @@ format-prefix = "CPU "
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
[module/temperature]
type = internal/temperature
[network-base]
type = internal/network
interval = 5
format-connected = <label-connected>
format-disconnected = <label-disconnected>
label-disconnected = %{F#F0C674}%ifname%%{F#707880} disconnected
hidden = ${common.priv}
[module/wlan]
inherit = network-base