186 lines
4.6 KiB
Nix
186 lines
4.6 KiB
Nix
{pkgs, ...}: {
|
|
services.hypridle = {
|
|
enable = true;
|
|
|
|
settings = {
|
|
general = {
|
|
lock_cmd = "pidof hyprlock || hyprlock";
|
|
};
|
|
|
|
listener = [
|
|
{
|
|
timeout = 300;
|
|
on-timeout = "loginctl lock-session";
|
|
}
|
|
{
|
|
timeout = 330;
|
|
on-timeout = "hyprctl dispatch dpms off";
|
|
on-resume = "hyprctl dispatch dpms on";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
|
|
programs.hyprlock = {
|
|
enable = true;
|
|
settings = {
|
|
background = {
|
|
monitor = "";
|
|
path = "screenshot";
|
|
|
|
blur_passes = 1;
|
|
blur_size = 7;
|
|
noise = 1.17e-2;
|
|
};
|
|
|
|
label = [
|
|
{
|
|
monitor = "";
|
|
text = "$TIME";
|
|
color = "rgba(242, 243, 244, 0.75)";
|
|
font_size = 95;
|
|
position = "0, 300";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
{
|
|
monitor = "";
|
|
text = ''cmd[update:1000] echo $(date +"%A, %B %d")'';
|
|
color = "rgba(242, 243, 244, 0.75)";
|
|
font_size = 22;
|
|
position = "0, 200";
|
|
halign = "center";
|
|
valign = "center";
|
|
}
|
|
];
|
|
|
|
input-field = {
|
|
monitor = "";
|
|
size = "200,50";
|
|
outline_thickness = 2;
|
|
dots_size = 0.2; # Scale of input-field height, 0.2 - 0.8
|
|
dots_spacing = 0.35; # Scale of dots' absolute size, 0.0 - 1.0
|
|
dots_center = true;
|
|
outer_color = "rgba(0, 0, 0, 0)";
|
|
inner_color = "rgba(0, 0, 0, 0.2)";
|
|
font_color = "rgb(111, 45, 104)";
|
|
fade_on_empty = false;
|
|
rounding = -1;
|
|
check_color = "rgb(30, 107, 204)";
|
|
placeholder_text = ''<i><span foreground="##cdd6f4">Input Password...</span></i>'';
|
|
hide_input = false;
|
|
position = "0, -100";
|
|
halign = "center";
|
|
valign = "center";
|
|
};
|
|
};
|
|
};
|
|
|
|
wayland.windowManager.hyprland = {
|
|
enable = true;
|
|
settings = {
|
|
"$mod" = "SUPER";
|
|
|
|
monitor = [
|
|
"eDP-1,2256x1504,0x0,1.566667"
|
|
"desc:LG Electronics LG ULTRAWIDE 0x000219F2,2560x1080,1440x0,1"
|
|
"desc:Fujitsu Siemens Computers GmbH B22W-6 LED YV3U164923,1680x1050,4000x0,1"
|
|
",preferred,auto,1"
|
|
];
|
|
|
|
exec-once = [
|
|
"${pkgs.waybar}/bin/waybar"
|
|
"${pkgs.mako}/bin/mako"
|
|
];
|
|
|
|
input = {
|
|
kb_layout = "us,de";
|
|
follow_mouse = 1;
|
|
};
|
|
|
|
general = {
|
|
gaps_in = 5;
|
|
gaps_out = 5;
|
|
border_size = 1;
|
|
layout = "dwindle";
|
|
allow_tearing = false;
|
|
"col.active_border" = "rgba(33ccffee) rgba(00ff99ee) 45deg";
|
|
"col.inactive_border" = "rgba(595959aa)";
|
|
};
|
|
|
|
decoration = {
|
|
rounding = 5;
|
|
shadow = {
|
|
enabled = true;
|
|
range = 4;
|
|
render_power = 3;
|
|
color = "rgba(1a1a1aee)";
|
|
};
|
|
|
|
blur = {
|
|
enabled = true;
|
|
size = 3;
|
|
passes = 1;
|
|
};
|
|
};
|
|
|
|
animations = {
|
|
enabled = true;
|
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
|
|
|
animation = [
|
|
"windows, 1, 3, myBezier"
|
|
"windowsOut, 1, 3, default, popin 80%"
|
|
"border, 1, 3, default"
|
|
"borderangle, 1, 3, default"
|
|
"fade, 1, 3, default"
|
|
"workspaces, 1, 3, default"
|
|
];
|
|
};
|
|
|
|
bind =
|
|
[
|
|
", PRINT, exec, ${pkgs.hyprshot}/bin/hyprshot -m region --clipboard-only"
|
|
"$mod, return, exec, ${pkgs.alacritty}/bin/alacritty"
|
|
"$mod, D, exec, ${pkgs.rofi-wayland}/bin/rofi -show drun"
|
|
"$mod SHIFT, Q, killactive, "
|
|
"$mod, L, exec, loginctl lock-session"
|
|
"$mod, V, togglefloating, "
|
|
"$mod, F, fullscreen, 1"
|
|
"$mod, P, pseudo, # dwindle"
|
|
"$mod, J, togglesplit, # dwindle"
|
|
"$mod, left, movefocus, l"
|
|
"$mod, right, movefocus, r"
|
|
"$mod, up, movefocus, u"
|
|
"$mod, down, movefocus, d"
|
|
"$mod, S, togglespecialworkspace, magic"
|
|
"$mod SHIFT, S, movetoworkspace, special:magic"
|
|
]
|
|
++ builtins.concatLists (builtins.genList (
|
|
x: let
|
|
num = builtins.toString (x + 1);
|
|
in [
|
|
"$mod, ${num}, workspace, ${num}"
|
|
"$mod SHIFT, ${num}, movetoworkspace, ${num}"
|
|
]
|
|
)
|
|
9);
|
|
|
|
bindm = [
|
|
"$mod, mouse:272, movewindow"
|
|
"$mod, mouse:273, resizewindow"
|
|
];
|
|
|
|
device = {
|
|
name = "razer-razer-blackwidow-chroma";
|
|
kb_layout = "de";
|
|
};
|
|
|
|
misc = {
|
|
mouse_move_enables_dpms = true;
|
|
key_press_enables_dpms = true;
|
|
};
|
|
};
|
|
};
|
|
}
|