Compact uptime/CPU/memory section in xmobar

This commit is contained in:
Daniele Fucini
2026-10-10 10:11:27 +02:00
parent 2f6d080976
commit a811b7c806
2 changed files with 10 additions and 10 deletions
+5 -5
View File
@@ -17,7 +17,7 @@ Config { overrideRedirect = True
, "--high" , "#ff5555" , "--high" , "#ff5555"
] 9000 ] 9000
, Run MultiCpu , Run MultiCpu
[ "--template" , "\xf4bc Cpu: <total>%" [ "--template" , "\xf4bc <total>%"
, "--Low" , "25" , "--Low" , "25"
, "--High" , "75" , "--High" , "75"
, "--low" , "#50fa7b" , "--low" , "#50fa7b"
@@ -25,7 +25,7 @@ Config { overrideRedirect = True
, "--high" , "#ff5555" , "--high" , "#ff5555"
] 10 ] 10
, Run CoreTemp , Run CoreTemp
[ "--template" , "Temp: <core0>°C" [ "--template" , "<core0>°C"
, "--Low" , "60" , "--Low" , "60"
, "--High" , "85" , "--High" , "85"
, "--low" , "#50fa7b" , "--low" , "#50fa7b"
@@ -33,7 +33,7 @@ Config { overrideRedirect = True
, "--high" , "#ff5555" , "--high" , "#ff5555"
] 50 ] 50
, Run Memory , Run Memory
[ "--template" , "\xefc5 Mem: <usedratio>%" [ "--template" , "\xefc5 <usedratio>%"
, "--Low" , "33" , "--Low" , "33"
, "--High" , "66" , "--High" , "66"
, "--low" , "#50fa7b" , "--low" , "#50fa7b"
@@ -47,7 +47,7 @@ Config { overrideRedirect = True
] ]
, Run Date "\xf133 %a %Y-%m-%d <fc=#ff79c6>%H:%M</fc>" "date" 10 , Run Date "\xf133 %a %Y-%m-%d <fc=#ff79c6>%H:%M</fc>" "date" 10
, Run Uptime , Run Uptime
[ "--template" , "\xf017 Uptime: <days>d <hours>h <minutes>m" [ "--template" , "\xf017 <days>d <hours>h"
] 600 ] 600
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10 , Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
, Run Com "/home/fuxino/.config/xmobar/ens_brief.sh" [] "ens_brief" 18000 , Run Com "/home/fuxino/.config/xmobar/ens_brief.sh" [] "ens_brief" 18000
@@ -55,5 +55,5 @@ Config { overrideRedirect = True
] ]
, sepChar = "%" , sepChar = "%"
, alignSep = "}{" , alignSep = "}{"
, template = "  | %XMonadLog% } %uptime% | %multicpu%, %coretemp% | %memory% |  %kbd% { <action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%LZIB% <fc=#565f89>·</fc> %ens_brief%</action> | %pactl_volume% | %date% " , template = "  | %XMonadLog% } %uptime% | %multicpu% %coretemp% | %memory% |  %kbd% { <action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%LZIB% <fc=#565f89>·</fc> %ens_brief%</action> | %pactl_volume% | %date% "
} }
+5 -5
View File
@@ -17,7 +17,7 @@ Config { overrideRedirect = True
, "--high" , "#ff5555" , "--high" , "#ff5555"
] 9000 ] 9000
, Run MultiCpu , Run MultiCpu
[ "--template" , "\xf4bc Cpu: <total>%" [ "--template" , "\xf4bc <total>%"
, "--Low" , "25" , "--Low" , "25"
, "--High" , "75" , "--High" , "75"
, "--low" , "#50fa7b" , "--low" , "#50fa7b"
@@ -25,7 +25,7 @@ Config { overrideRedirect = True
, "--high" , "#ff5555" , "--high" , "#ff5555"
] 10 ] 10
, Run CoreTemp , Run CoreTemp
[ "--template" , "Temp: <core0>°C" [ "--template" , "<core0>°C"
, "--Low" , "60" , "--Low" , "60"
, "--High" , "85" , "--High" , "85"
, "--low" , "#50fa7b" , "--low" , "#50fa7b"
@@ -33,7 +33,7 @@ Config { overrideRedirect = True
, "--high" , "#ff5555" , "--high" , "#ff5555"
] 50 ] 50
, Run Memory , Run Memory
[ "--template" , "\xefc5 Mem: <usedratio>%" [ "--template" , "\xefc5 <usedratio>%"
, "--Low" , "33" , "--Low" , "33"
, "--High" , "66" , "--High" , "66"
, "--low" , "#50fa7b" , "--low" , "#50fa7b"
@@ -47,7 +47,7 @@ Config { overrideRedirect = True
] ]
, Run Date "\xf133 %a %Y-%m-%d <fc=#ff79c6>%H:%M</fc>" "date" 10 , Run Date "\xf133 %a %Y-%m-%d <fc=#ff79c6>%H:%M</fc>" "date" 10
, Run Uptime , Run Uptime
[ "--template" , "\xf017 Uptime: <days>d <hours>h <minutes>m" [ "--template" , "\xf017 <days>d <hours>h"
] 600 ] 600
, Run XPropertyLog "_XMONAD_TRAYPAD" , Run XPropertyLog "_XMONAD_TRAYPAD"
, Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10 , Run Com "/home/fuxino/.config/xmobar/pactl_volume.sh" [] "pactl_volume" 10
@@ -56,5 +56,5 @@ Config { overrideRedirect = True
] ]
, sepChar = "%" , sepChar = "%"
, alignSep = "}{" , alignSep = "}{"
, template = "  | %XMonadLog% } %uptime% | %multicpu%, %coretemp% | %memory% |  %kbd% { <action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%LZIB% <fc=#565f89>·</fc> %ens_brief%</action> | %pactl_volume% | %date% %_XMONAD_TRAYPAD% " , template = "  | %XMonadLog% } %uptime% | %multicpu% %coretemp% | %memory% |  %kbd% { <action=`/home/fuxino/.config/xmobar/ens_brief.sh week`>%LZIB% <fc=#565f89>·</fc> %ens_brief%</action> | %pactl_volume% | %date% %_XMONAD_TRAYPAD% "
} }