This commit is contained in:
parent
8943ea3021
commit
dda00ad09f
1 changed files with 17 additions and 1 deletions
|
|
@ -3,6 +3,8 @@
|
||||||
let
|
let
|
||||||
hyprland-pkgs = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
hyprland-pkgs = inputs.hyprland.packages.${pkgs.stdenv.hostPlatform.system};
|
||||||
|
|
||||||
|
isMacbook = config.networking.hostName == "FredOS-Macbook";
|
||||||
|
|
||||||
# GPU pinning env vars — only needed on the dual-GPU gaming box (card1 = Navi 22).
|
# GPU pinning env vars — only needed on the dual-GPU gaming box (card1 = Navi 22).
|
||||||
gpuEnv = lib.optionals (config.networking.hostName == "FredOS-Gaming") [
|
gpuEnv = lib.optionals (config.networking.hostName == "FredOS-Gaming") [
|
||||||
"AQ_DRM_DEVICES,/dev/dri/card1"
|
"AQ_DRM_DEVICES,/dev/dri/card1"
|
||||||
|
|
@ -379,7 +381,7 @@ in
|
||||||
|
|
||||||
modules-left = [ "hyprland/workspaces" ];
|
modules-left = [ "hyprland/workspaces" ];
|
||||||
modules-center = [ "clock" ];
|
modules-center = [ "clock" ];
|
||||||
modules-right = [ "group/tray-drawer" ];
|
modules-right = lib.optionals isMacbook [ "battery" ] ++ [ "group/tray-drawer" ];
|
||||||
|
|
||||||
"hyprland/workspaces" = {
|
"hyprland/workspaces" = {
|
||||||
format = "{name}";
|
format = "{name}";
|
||||||
|
|
@ -424,6 +426,13 @@ in
|
||||||
icon-size = 16;
|
icon-size = 16;
|
||||||
spacing = 8;
|
spacing = 8;
|
||||||
};
|
};
|
||||||
|
} // lib.optionalAttrs isMacbook {
|
||||||
|
battery = {
|
||||||
|
format = "{capacity}% {icon}";
|
||||||
|
format-charging = "{capacity}% ";
|
||||||
|
format-icons = [ "" "" "" "" "" ];
|
||||||
|
states = { warning = 30; critical = 15; };
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
style = ''
|
style = ''
|
||||||
|
|
@ -485,6 +494,13 @@ in
|
||||||
padding: 0 0px;
|
padding: 0 0px;
|
||||||
color: @base05;
|
color: @base05;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#battery {
|
||||||
|
padding: 0 10px;
|
||||||
|
color: @base05;
|
||||||
|
}
|
||||||
|
#battery.warning { color: @base0A; }
|
||||||
|
#battery.critical { color: @base08; }
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue