mirror of
https://git.gay/xqtc/nixos-config
synced 2024-11-22 20:20:33 +01:00
87 lines
2.3 KiB
Nix
87 lines
2.3 KiB
Nix
{
|
|
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;
|
|
# 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;
|
|
};
|
|
"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;
|
|
};
|
|
"battery#bat3" = {
|
|
"bat" = "macsmc-battery";
|
|
"interval" = 10;
|
|
"states" = {
|
|
"warning" = 30;
|
|
"critical" = 15;
|
|
};
|
|
"format" = " BAT: {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;
|
|
defaultTimeout = 5000;
|
|
};
|
|
}
|