nixos-config/home/modules/wm.nix

87 lines
2.3 KiB
Nix
Raw Normal View History

{
config,
pkgs,
lib,
inputs,
...
}: {
wayland.windowManager.hyprland = {
enable = true;
package = pkgs.hyprland;
#xwayland.enable = true;
#enableNvidiaPatches = true;
extraConfig = builtins.readFile ../config-files/hyprland.conf;
};
2024-09-09 20:41:48 +02:00
programs.waybar =
/*
lib.mkIf (pkgs.system == "x86_64-linux")
*/
{
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
# modules-left = ["wlr/workspaces"];
#modules-center = [ "hyprland/window" ];
modules-center = ["hyprland/workspaces" "tray" "network" "battery" "battery#bat2" "battery#bat3" "clock"];
"tray" = {"icon-size" = 21;};
"network" = {
"format-wifi" = "NET: {essid} ({signalStrength}%) ";
"format-ethernet" = "{ifname} ";
"format-disconnected" = "";
"max-length" = 50;
};
2024-09-09 20:41:48 +02:00
"battery" = {
"bat" = "BAT0";
"interval" = 10;
"states" = {
"warning" = 30;
"critical" = 15;
};
"format" = " BAT IN: {capacity}%";
#"format-icons" = ''["", "", "", "", ""]'';
"max-length" = 25;
};
2024-09-09 20:41:48 +02:00
"battery#bat2" = {
"bat" = "BAT1";
"interval" = 10;
"states" = {
"warning" = 30;
"critical" = 15;
};
"format" = " BAT EX: {capacity}%";
#"format-icons" = ''["", "", "", "", ""]'';
"max-length" = 25;
};
"battery#bat3" = {
"bat" = "macsmc-battery";
"interval" = 10;
"states" = {
"warning" = 30;
"critical" = 15;
};
"format" = " BAT: {capacity}%";
#"format-icons" = ''["", "", "", "", ""]'';
"max-length" = 25;
2024-09-08 14:10:46 +02:00
};
};
};
2024-09-09 20:41:48 +02:00
style = builtins.readFile ../config-files/waybar-mocha.css;
};
services.mako = {
enable = true;
font = "ComicShannsMono Nerd Font Mono 15";
backgroundColor = "#1e1e2e";
textColor = "#cdd6f4";
icons = true;
actions = true;
2024-08-07 11:08:24 +02:00
defaultTimeout = 5000;
};
}