fixup! fixup! fixup! fixup! fixup! Inaho: new host

This commit is contained in:
2026-08-04 05:13:39 +03:00
parent eff7e7d285
commit c216f07959
2 changed files with 53 additions and 6 deletions
+1 -1
View File
@@ -53,7 +53,7 @@
# Preserve batteries when the laptop is usually on AC.
# Raise STOP_* to 100 if maximum autonomy matters more than battery wear.
START_CHARGE_THRESH_BAT0 = 70;
STOP_CHARGE_THRESH_BAT0 = 85;
STOP_CHARGE_THRESH_BAT0 = 95;
START_CHARGE_THRESH_BAT1 = 70;
STOP_CHARGE_THRESH_BAT1 = 85;
RESTORE_THRESHOLDS_ON_BAT = 1;
+52 -5
View File
@@ -3,13 +3,16 @@
playerctl
cava
pulsemixer
libnotify
monocraft
font-awesome
nerd-fonts.symbols-only
];
programs.waybar = {
programs.waybar = let
multibat = osConfig.networking.hostName == "Inaho";
in {
enable = true;
systemd.enable = true;
@@ -31,7 +34,7 @@
"tray"
"group/system"
"pulseaudio"
"battery"
( if multibat then "group/bat" else "battery" )
"clock"
];
@@ -71,6 +74,19 @@
dynamic-order = [ "title" "artist" "album" ];
};
"group/bat" = lib.mkIf multibat {
orientation = "inherit";
drawer = {
transition-duration = 500;
transition-left-to-right = false;
};
modules = [
"battery"
"battery#int"
"battery#ext"
];
};
battery = {
interval = 5;
states = {
@@ -82,6 +98,33 @@
default = ["󰂎" "󰁺" "󰁻" "󰁼" "󰁽" "󰁾" "󰁿" "󰂀" "󰂁" "󰂂" "󰁹"];
charging = ["󰢟" "󰢜" "󰂆" "󰂇" "󰂈" "󰢝" "󰂉" "󰢞" "󰂊" "󰂋" "󰂅"];
};
events = {
on-discharging-warning = "notify-send -u normal 'Low Battery'";
on-discharging-critical = "notify-send -u critical 'Very Low Battery'";
};
};
"battery#int" = lib.mkIf multibat {
bat = "BAT0";
interval = 5;
states = {
warning = 30;
critical = 15;
};
format = "I: {capacity}%";
};
"battery#ext" = lib.mkIf multibat {
bat = "BAT1";
interval = 5;
states = {
warning = 30;
critical = 15;
};
format = "E: {capacity}%";
events = {
on-discharging-0 = "notify-send -u normal 'External battery died'";
};
};
"keyboard-state" = {
@@ -249,8 +292,9 @@
}
}
#system .drawer-child > * {
margin-right: 4px
#system,
#bat {
& .drawer-child > * { margin-right: 4px }
}
#keyboard-state label.locked {
@@ -259,7 +303,6 @@
}
#battery {
&.plugged { color: ${colors.base0D}; }
&.charging { color: ${accent}; }
&:not(.charging) {
&.warning {
@@ -280,6 +323,10 @@
color: ${colors.base00};
background: ${accent};
}
&.plugged {
color: ${colors.base00};
background: ${colors.base0D};
}
}
@keyframes blink {