hyprland config shizzz

This commit is contained in:
marty 2025-12-19 18:04:23 +01:00
parent 3055adfe61
commit 6b87cd99c8
4 changed files with 56 additions and 6 deletions

View file

@ -93,7 +93,13 @@
ranger.enable = true; ranger.enable = true;
}; };
window_manager = { window_manager = {
hyprland.enable = true; hyprland = {
enable = true;
monitors = [
"desc:InfoVision Optoelectronics (Kunshan) Co.Ltd China 0x057E, 1366x768@60,0x0,1"
];
numlock = false;
};
waybar.enable = true; waybar.enable = true;
walker.enable = true; walker.enable = true;
wallpaper.enable = true; wallpaper.enable = true;

View file

@ -90,7 +90,10 @@
kitty.enable = true; kitty.enable = true;
}; };
window_manager = { window_manager = {
hyprland.enable = true; hyprland = {
enable = false;
numlock = true;
};
waybar.enable = true; waybar.enable = true;
walker.enable = true; walker.enable = true;
wallpaper.enable = true; wallpaper.enable = true;

View file

@ -90,7 +90,9 @@
kitty.enable = false; kitty.enable = false;
}; };
window_manager = { window_manager = {
hyprland.enable = false; hyprland = {
enable = false;
};
waybar.enable = false; waybar.enable = false;
walker.enable = false; walker.enable = false;
wallpaper.enable = true; wallpaper.enable = true;

View file

@ -8,7 +8,16 @@
{ {
options = { options = {
window_manager = { window_manager = {
hyprland.enable = lib.mkEnableOption "enable hyprland"; hyprland= {
enable = lib.mkEnableOption "enable hyprland";
monitors = lib.mkOption {
default = [
",preferred,auto,1"
];
description = ''declare monitors'';
};
numlock = lib.mkEnableOption "numlock by default";
};
}; };
}; };
@ -26,17 +35,47 @@
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = { settings = {
monitor = config.window_manager.hyprland.monitors;
exec-once = [ exec-once = [
(lib.mkIf (config.window_manager.walker.enable) "elephant")
(lib.mkIf (config.window_manager.waybar.enable) "waybar")
(lib.mkIf (config.window_manager.wallpaper.enable) "waypaper --restore --random")
]; ];
"$mod" = "SUPER"; "$mod" = "SUPER";
"$shiftmod" = "SUPER_SHIFT"; "$shiftmod" = "SUPER_SHIFT";
bind = [ bind = [
"$mod, D, exec, walker" (lib.mkIf (config.window_manager.walker.enable) "$mod, D, exec, walker")
(lib.mkIf (config.terminal.kitty.enable) "$mod, return, exec, kitty")
"$shiftmod, Q, killactive," "$shiftmod, Q, killactive,"
"$mod, return, exec, kitty"
]; ];
input = { input = {
kb_layout = "de"; kb_layout = "de";
numlock_by_default = config.window_manager.hyprland.numlock;
follow_mouse = 2;
mouse_refocus = false;
accel_profile = "flat";
sensitivity = 0.2;
touchpad = {
natural_scroll = "no";
disable_while_typing = true;
};
};
cursor = {
inactive_timeout = 0;
no_warps = true;
};
decoration = {
rounding = 20;
blur = {
enabled = true;
size = 3;
passes = 1;
};
shadow = {
range = 4;
render_power = 3;
color = "rgba(1a1a1aee)";
};
}; };
}; };
}; };