polybar: add temperature, add actions for middle and right click on volume
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user