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,
|
||||
resourceLabel,
|
||||
],
|
||||
setup: (self) => self
|
||||
.poll(5000, () => execAsync(['bash', '-c', command])
|
||||
setup: (self) => self.poll(5000, () => execAsync(['bash', '-c', command])
|
||||
.then((output) => {
|
||||
resourceCircProg.css = `font-size: ${Number(output)}px;`;
|
||||
resourceLabel.label = `${Math.round(Number(output))}%`;
|
||||
|
||||
Reference in New Issue
Block a user