added custom temperature widget

This commit is contained in:
2021-06-24 09:48:30 +02:00
parent 3eaa426c5c
commit e3fd87259a
4 changed files with 9 additions and 4 deletions
@@ -160,7 +160,7 @@ font-2 = "xos4 Terminus:size=22;1"
;cpu_bar memory_bar filesystem_bar mpd_bar
;volume brightness battery_bar
modules-left = workspaces cpu memory temperature filesystem
modules-left = workspaces cpu memory temp_custom filesystem
modules-center = title
modules-right = pulseaudio mic_status network battery date
@@ -653,7 +653,7 @@ format-prefix = 
; %gb_swap_free%
; %gb_swap_used%
label = R: %percentage_used%%, S: %percentage_swap_used%%
label = " %percentage_used%%, S: %percentage_swap_used%%"
; Only applies if <bar-used> is used
;;bar-used-indicator =
+5
View File
@@ -15,6 +15,11 @@ exec = ~/.config/polybar/scripts/get_mic_status
interval=1
label=%output%
[module/temp_custom]
type = custom/script
exec = sensors | awk '/Core/ {print $3}' | head -n 1 | tr -d +
interval=1
label= CPU:%output%
[module/checknetwork]
type = custom/script
+2 -2
View File
@@ -166,7 +166,7 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
-- go into sleep then hibernate
, ((modMask .|. shiftMask .|. controlMask, xK_0),
spawn "systemctl suspend")
spawn "systemctl suspend-then-hibernate")
-- Spawn the launcher using command specified by myLauncher.
-- Use this to launch programs without a key binding.
@@ -234,7 +234,7 @@ myKeys conf@(XConfig {XMonad.modMask = modMask}) = M.fromList $
spawn "light -U 5")
, ((modMask, xF86XK_MonBrightnessDown),
spawn "light -S 0.001")
spawn "light -S 0.2")
--------------------------------------------------------------------
-- "Standard" xmonad key bindings
--