forked from Shinonome/dots-hyprland
format
This commit is contained in:
@@ -67,8 +67,7 @@ const BarResource = (name, icon, command, circprogClassName = 'bar-batt-circprog
|
|||||||
resourceProgress,
|
resourceProgress,
|
||||||
resourceLabel,
|
resourceLabel,
|
||||||
],
|
],
|
||||||
setup: (self) => self
|
setup: (self) => self.poll(5000, () => execAsync(['bash', '-c', command])
|
||||||
.poll(5000, () => execAsync(['bash', '-c', command])
|
|
||||||
.then((output) => {
|
.then((output) => {
|
||||||
resourceCircProg.css = `font-size: ${Number(output)}px;`;
|
resourceCircProg.css = `font-size: ${Number(output)}px;`;
|
||||||
resourceLabel.label = `${Math.round(Number(output))}%`;
|
resourceLabel.label = `${Math.round(Number(output))}%`;
|
||||||
|
|||||||
Reference in New Issue
Block a user