hyprlock
This commit is contained in:
@ -6,91 +6,92 @@
|
|||||||
input = {
|
input = {
|
||||||
kb_layout = "se";
|
kb_layout = "se";
|
||||||
kb_variant = "";
|
kb_variant = "";
|
||||||
kb_model = "";
|
kb_model = "";
|
||||||
kb_options = "";
|
kb_options = "";
|
||||||
kb_rules = "";
|
kb_rules = "";
|
||||||
kb_file = "";
|
kb_file = "";
|
||||||
|
|
||||||
follow_mouse = 1;
|
follow_mouse = 1;
|
||||||
|
|
||||||
sensitivity = 0;
|
sensitivity = 0;
|
||||||
};
|
|
||||||
"$mod" = "SUPER";
|
|
||||||
"$terminal" = "ghostty";
|
|
||||||
"$filemanager" = "nautilus";
|
|
||||||
"$menu" = "rofi -show drun";
|
|
||||||
|
|
||||||
general = {
|
|
||||||
gaps_in = 4;
|
|
||||||
gaps_out = 4;
|
|
||||||
border_size = 1;
|
|
||||||
"col.active_border" = "rgba(fe8019ff) rgba(cc241dff) 45deg";
|
|
||||||
"col.inactive_border" = "rgba(7c6f64aa)";
|
|
||||||
layout = "dwindle";
|
|
||||||
allow_tearing = false;
|
|
||||||
};
|
|
||||||
decoration = {
|
|
||||||
rounding = 8;
|
|
||||||
rounding_power = 3.5;
|
|
||||||
blur = {
|
|
||||||
enabled = true;
|
|
||||||
xray = true;
|
|
||||||
size = 3;
|
|
||||||
passes = 4;
|
|
||||||
};
|
};
|
||||||
};
|
"$mod" = "SUPER";
|
||||||
|
"$terminal" = "ghostty";
|
||||||
|
"$filemanager" = "nautilus";
|
||||||
|
"$menu" = "rofi -show drun";
|
||||||
|
|
||||||
animations = {
|
general = {
|
||||||
enabled = true;
|
gaps_in = 4;
|
||||||
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
gaps_out = 4;
|
||||||
|
border_size = 1;
|
||||||
|
"col.active_border" = "rgba(fe8019ff) rgba(cc241dff) 45deg";
|
||||||
|
"col.inactive_border" = "rgba(7c6f64aa)";
|
||||||
|
layout = "dwindle";
|
||||||
|
allow_tearing = false;
|
||||||
|
};
|
||||||
|
decoration = {
|
||||||
|
rounding = 8;
|
||||||
|
rounding_power = 3.5;
|
||||||
|
blur = {
|
||||||
|
enabled = true;
|
||||||
|
xray = true;
|
||||||
|
size = 3;
|
||||||
|
passes = 4;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
animation = [
|
animations = {
|
||||||
"windows, 1, 7, myBezier"
|
enabled = true;
|
||||||
"windowsOut, 1, 7, default, popin 80%"
|
bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
|
||||||
"border, 1, 10, default"
|
|
||||||
"borderangle, 1, 8, default"
|
|
||||||
"fade, 1, 7, default"
|
|
||||||
"workspaces, 1, 6, default"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
dwindle = {
|
animation = [
|
||||||
pseudotile = true;
|
"windows, 1, 7, myBezier"
|
||||||
preserve_split = true;
|
"windowsOut, 1, 7, default, popin 80%"
|
||||||
};
|
"border, 1, 10, default"
|
||||||
|
"borderangle, 1, 8, default"
|
||||||
|
"fade, 1, 7, default"
|
||||||
|
"workspaces, 1, 6, default"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# Bindings
|
dwindle = {
|
||||||
bind =
|
pseudotile = true;
|
||||||
[
|
preserve_split = true;
|
||||||
"$mod, RETURN, exec, $terminal"
|
};
|
||||||
"$mod, C, killactive"
|
|
||||||
"$mod, E, exec, $filemanager"
|
|
||||||
"$mod, SPACE, exec, $menu"
|
|
||||||
", Print, exec, grimblast copy area"
|
|
||||||
"$mod, V, togglefloating"
|
|
||||||
"$mod, J, togglesplit, " # dwindle
|
|
||||||
|
|
||||||
# Move focus with mainMod + arrow keys
|
# Bindings
|
||||||
"$mod, left, movefocus, l"
|
bind =
|
||||||
"$mod, right, movefocus, r"
|
[
|
||||||
"$mod, up, movefocus, u"
|
"$mod, RETURN, exec, $terminal"
|
||||||
"$mod, down, movefocus, d"
|
"$mod, C, killactive"
|
||||||
]
|
"$mod, E, exec, $filemanager"
|
||||||
++ (
|
"$mod, SPACE, exec, $menu"
|
||||||
# workspaces
|
", Print, exec, grimblast copy area"
|
||||||
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
|
"$mod, V, togglefloating"
|
||||||
builtins.concatLists (builtins.genList (
|
"$mod, J, togglesplit, " # dwindle
|
||||||
i: let
|
"$mod, L, exec, hyprlock"
|
||||||
ws = i + 1;
|
|
||||||
in [
|
# Move focus with mainMod + arrow keys
|
||||||
"$mod, code:1${toString i}, workspace, ${toString ws}"
|
"$mod, left, movefocus, l"
|
||||||
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
"$mod, right, movefocus, r"
|
||||||
]
|
"$mod, up, movefocus, u"
|
||||||
)
|
"$mod, down, movefocus, d"
|
||||||
9)
|
]
|
||||||
);
|
++ (
|
||||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
# workspaces
|
||||||
bindm = [
|
# binds $mod + [shift +] {1..9} to [move to] workspace {1..9}
|
||||||
|
builtins.concatLists (builtins.genList (
|
||||||
|
i: let
|
||||||
|
ws = i + 1;
|
||||||
|
in [
|
||||||
|
"$mod, code:1${toString i}, workspace, ${toString ws}"
|
||||||
|
"$mod SHIFT, code:1${toString i}, movetoworkspace, ${toString ws}"
|
||||||
|
]
|
||||||
|
)
|
||||||
|
9)
|
||||||
|
);
|
||||||
|
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||||
|
bindm = [
|
||||||
"$mod, mouse:272, movewindow"
|
"$mod, mouse:272, movewindow"
|
||||||
"$mod, mouse:273, resizewindow"
|
"$mod, mouse:273, resizewindow"
|
||||||
];
|
];
|
||||||
|
15
modules/home/hyprlock.nix
Normal file
15
modules/home/hyprlock.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
programs.hyprlock = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
background = {
|
||||||
|
path = "./images/sunset-rocks.png";
|
||||||
|
blur_passes = 2;
|
||||||
|
contrast = 1;
|
||||||
|
brightness = 0.5;
|
||||||
|
vibrancy = 0.2;
|
||||||
|
vibrancy_darkness = 0.2;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user