forked from Shinonome/dots-hyprland
use battery icon (#325)
This commit is contained in:
@@ -108,7 +108,7 @@ const BarBattery = () => Box({
|
|||||||
className: 'bar-batt',
|
className: 'bar-batt',
|
||||||
homogeneous: true,
|
homogeneous: true,
|
||||||
children: [
|
children: [
|
||||||
MaterialIcon('settings_heart', 'small'),
|
MaterialIcon('battery_full', 'small'),
|
||||||
],
|
],
|
||||||
setup: (self) => self.hook(Battery, box => {
|
setup: (self) => self.hook(Battery, box => {
|
||||||
box.toggleClassName('bar-batt-low', Battery.percent <= userOptions.battery.low);
|
box.toggleClassName('bar-batt-low', Battery.percent <= userOptions.battery.low);
|
||||||
|
|||||||
Reference in New Issue
Block a user