mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 09:49:45 +01:00
ironbar: Add battery indicator support with upower
It turns out that I'd rather have a battery indicator than having to `cat /sys/class/power_supply/BAT0/capacity` all the time. Depends on upower and results in the battery indicator always being shown even when virtualized.
This commit is contained in:
parent
c193b2b2cf
commit
08cc18133d
@ -58,6 +58,9 @@ in
|
||||
on_click_right = "~/.config/hypr/lower-volume.fish";
|
||||
mode = "watch";
|
||||
}
|
||||
{
|
||||
type = "upower";
|
||||
}
|
||||
{
|
||||
type = "clock";
|
||||
format = "%x(%a)%R";
|
||||
@ -95,6 +98,16 @@ in
|
||||
padding-right: 0.5em;
|
||||
}
|
||||
|
||||
.upower {
|
||||
padding-left: 0.2em;
|
||||
padding-right: 0.2em;
|
||||
}
|
||||
|
||||
.upower .label {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.popup {
|
||||
border: 1px solid #${base01};
|
||||
padding: 1em;
|
||||
|
@ -106,6 +106,7 @@ in
|
||||
tumbler.enable = true;
|
||||
gvfs.enable = true;
|
||||
gnome.gnome-keyring.enable = true;
|
||||
upower.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages = mkMerge [
|
||||
|
Loading…
Reference in New Issue
Block a user