2024-03-09 12:58:01 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
2024-05-05 19:02:07 +02:00
|
|
|
lib,
|
2024-03-09 12:58:01 +01:00
|
|
|
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;
|
2024-09-10 16:04:54 +02:00
|
|
|
modules-left = ["hyprland/workspaces" "keyboard-state"];
|
|
|
|
modules-center = ["cpu" "memory" "disk" "disk#HDD1" "disk#HDD2" "network" ];
|
|
|
|
modules-right = ["tray" "battery" "battery#bat2" "battery#bat3" "clock"];
|
2024-09-09 20:41:48 +02:00
|
|
|
"tray" = {"icon-size" = 21;};
|
|
|
|
"network" = {
|
2024-09-10 16:04:54 +02:00
|
|
|
"interval" = 3;
|
2024-09-12 12:15:22 +02:00
|
|
|
"format-wifi" = "NET: {essid} {ipaddr}/{cidr} ({signalStrength}%) {bandwidthUpBits} {bandwidthDownBits} ";
|
2024-09-10 16:04:54 +02:00
|
|
|
"format-ethernet" = "NET: {ipaddr}/{cidr} {bandwidthUpBits} {bandwidthDownBits} ";
|
2024-09-09 20:41:48 +02:00
|
|
|
"format-disconnected" = "";
|
2024-09-12 12:15:22 +02:00
|
|
|
"max-length" = 100;
|
2024-03-09 12:58:01 +01:00
|
|
|
};
|
2024-09-10 16:04:54 +02:00
|
|
|
"keyboard-state" = {
|
|
|
|
"numlock" = true;
|
|
|
|
"capslock" = true;
|
|
|
|
"format" = {
|
|
|
|
"numlock" = "N {icon}";
|
|
|
|
"capslock" = "C {icon}";
|
|
|
|
};
|
|
|
|
"format-icons" = {
|
|
|
|
"locked" = "";
|
|
|
|
"unlocked" = "";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"cpu" = {
|
|
|
|
"interval" = 1;
|
|
|
|
"format" = "{}% ";
|
|
|
|
"max-length" = 10;
|
|
|
|
};
|
|
|
|
"disk" = {
|
|
|
|
"interval" = 10;
|
|
|
|
"format" = " {percentage_free}% {path}";
|
|
|
|
"path" = "/";
|
|
|
|
};
|
|
|
|
"disk#HDD1" = {
|
|
|
|
"interval" = 10;
|
|
|
|
"format" = " {percentage_free}% {path}";
|
|
|
|
"path" = "/mnt/HDD1/";
|
|
|
|
};
|
|
|
|
"disk#HDD2" = {
|
|
|
|
"interval" = 10;
|
|
|
|
"format" = " {percentage_free}% {path}";
|
|
|
|
"path" = "/mnt/HDD2/";
|
|
|
|
};
|
|
|
|
"memory" = {
|
|
|
|
"interval" = 2;
|
|
|
|
"format" = "{used:0.1f}G/{total:0.1f}G ";
|
|
|
|
};
|
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-03-09 12:58:01 +01:00
|
|
|
};
|
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-03-09 12:58:01 +01:00
|
|
|
};
|
2024-09-09 20:41:48 +02:00
|
|
|
style = builtins.readFile ../config-files/waybar-mocha.css;
|
2024-03-09 12:58:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
services.mako = {
|
|
|
|
enable = true;
|
2024-07-02 17:17:32 +02:00
|
|
|
font = "ComicShannsMono Nerd Font Mono 15";
|
2024-03-09 12:58:01 +01:00
|
|
|
backgroundColor = "#1e1e2e";
|
|
|
|
textColor = "#cdd6f4";
|
2024-03-30 17:46:21 +01:00
|
|
|
icons = true;
|
|
|
|
actions = true;
|
2024-08-07 11:08:24 +02:00
|
|
|
defaultTimeout = 5000;
|
2024-03-09 12:58:01 +01:00
|
|
|
};
|
|
|
|
}
|