forked from Shinonome/dots-hyprland
fix broken cpu usage due to localized number format (#242)
This commit is contained in:
@@ -154,7 +154,7 @@ export default () => {
|
|||||||
className: 'spacing-h-10 margin-left-10',
|
className: 'spacing-h-10 margin-left-10',
|
||||||
children: [
|
children: [
|
||||||
BarResource('Swap Usage', 'swap_horiz', `free | awk '/^Swap/ {if ($2 > 0) printf("%.2f\\n", ($3/$2) * 100); else print "0";}'`),
|
BarResource('Swap Usage', 'swap_horiz', `free | awk '/^Swap/ {if ($2 > 0) printf("%.2f\\n", ($3/$2) * 100); else print "0";}'`),
|
||||||
BarResource('CPU Usage', 'settings_motion_mode', `top -bn1 | grep Cpu | awk '{print $2}'`),
|
BarResource('CPU Usage', 'settings_motion_mode', `top -bn1 | grep Cpu | sed 's/\\,/\\./g' | awk '{print $2}'`),
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
setup: (self) => self.hook(Mpris, label => {
|
setup: (self) => self.hook(Mpris, label => {
|
||||||
|
|||||||
Reference in New Issue
Block a user