Waybar : Add refresh for CPU and increase interval to 2 seconds.
This commit is contained in:
parent
f8b4fd365c
commit
63713c335b
|
@ -1,5 +1,5 @@
|
||||||
{ setting, style, ... }: let
|
{ setting, style, ... }: let
|
||||||
refreshInterval = 1;
|
refreshInterval = 2;
|
||||||
in {
|
in {
|
||||||
text = ''
|
text = ''
|
||||||
// -*- mode: jsonc -*-
|
// -*- mode: jsonc -*-
|
||||||
|
@ -104,17 +104,20 @@ in {
|
||||||
"format": "{usage}% ({load})",
|
"format": "{usage}% ({load})",
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"on-click": "foot -e bash -c btop",
|
"on-click": "foot -e bash -c btop",
|
||||||
"on-click-right": "powersave toggle"
|
"on-click-right": "powersave toggle",
|
||||||
|
"interval": ${toString(refreshInterval)},
|
||||||
},
|
},
|
||||||
"memory": {
|
"memory": {
|
||||||
"format": "{percentage}%",
|
"format": "{percentage}%",
|
||||||
"on-click": "foot -e bash -c btop",
|
"on-click": "foot -e bash -c btop",
|
||||||
"on-click-right": "powersave toggle"
|
"on-click-right": "powersave toggle",
|
||||||
|
"interval": ${toString(refreshInterval)},
|
||||||
},
|
},
|
||||||
"temperature": {
|
"temperature": {
|
||||||
"format": "{temperatureC}°C",
|
"format": "{temperatureC}°C",
|
||||||
"on-click": "foot -e bash -c btop",
|
"on-click": "foot -e bash -c btop",
|
||||||
"on-click-right": "powersave toggle"
|
"on-click-right": "powersave toggle",
|
||||||
|
"interval": ${toString(refreshInterval)},
|
||||||
},
|
},
|
||||||
"custom/powersave": {
|
"custom/powersave": {
|
||||||
"exec": "powersave waybar",
|
"exec": "powersave waybar",
|
||||||
|
|
Loading…
Reference in a new issue