nixos-config/home/modules/wm.nix

72 lines
1.8 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;
};
programs.waybar = lib.mkIf (pkgs.system == "x86_64-linux") {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 30;
2024-07-18 19:17:30 +02:00
# modules-left = ["wlr/workspaces"];
#modules-center = [ "hyprland/window" ];
2024-07-18 19:17:30 +02:00
modules-center = ["wlr/workspaces" "tray" "network" "battery" "battery#bat2" "clock"];
"tray" = {"icon-size" = 21;};
"network" = {
"format-wifi" = "NET: {essid} ({signalStrength}%) ";
"format-ethernet" = "{ifname} ";
"format-disconnected" = "";
"max-length" = 50;
};
"battery" = {
"bat" = "BAT0";
"interval" = 10;
"states" = {
"warning" = 30;
"critical" = 15;
};
"format" = " BAT IN: {capacity}%";
#"format-icons" = ''["", "", "", "", ""]'';
"max-length" = 25;
};
"battery#bat2" = {
"bat" = "BAT1";
"interval" = 10;
"states" = {
"warning" = 30;
"critical" = 15;
};
"format" = " BAT EX: {capacity}%";
#"format-icons" = ''["", "", "", "", ""]'';
"max-length" = 25;
};
};
};
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;
};
}