2024-06-05 23:27:36 +01:00
|
|
|
{ lib
|
|
|
|
, config
|
|
|
|
, ...
|
2024-05-11 13:49:12 +01:00
|
|
|
}: {
|
2024-05-11 20:55:27 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
imports = [
|
2024-05-31 11:22:16 +01:00
|
|
|
../common
|
2024-06-14 21:48:43 +01:00
|
|
|
../common/wayland
|
2024-06-06 18:13:16 +01:00
|
|
|
./pyprland.nix
|
2024-05-11 13:49:12 +01:00
|
|
|
];
|
|
|
|
wayland.windowManager.hyprland = {
|
|
|
|
enable = true;
|
|
|
|
systemd = {
|
2024-06-05 23:27:36 +01:00
|
|
|
variables = [ "--all" ];
|
|
|
|
enable = true;
|
|
|
|
# Same as default, but stop graphical-session too
|
|
|
|
extraCommands = lib.mkBefore [
|
|
|
|
"systemctl --user stop graphical-session.target"
|
|
|
|
"systemctl --user start hyprland-session.target"
|
|
|
|
];
|
2024-05-11 13:49:12 +01:00
|
|
|
};
|
2024-06-02 14:30:14 +01:00
|
|
|
extraConfig =
|
|
|
|
let
|
|
|
|
monitor = "${toString (builtins.map (m: "monitor=${ m.name },${ toString( m.width ) }x${ toString( m.height ) }@${ toString( m.refreshRate ) },${ toString( m.x ) }x${ toString( m.y ) },${ toString( m.scale ) }\n") config.monitors)}";
|
|
|
|
active = "rgba(${config.colorScheme.colors.base08}ee)";
|
|
|
|
inactive = "rgba(${config.colorScheme.colors.base0C}ee)";
|
2024-06-05 23:27:36 +01:00
|
|
|
in
|
|
|
|
''
|
2024-05-11 13:49:12 +01:00
|
|
|
|
|
|
|
${monitor}
|
2024-05-31 22:09:56 +01:00
|
|
|
$terminal = alacritty
|
2024-05-31 11:22:16 +01:00
|
|
|
$fileManager = thunar
|
2024-05-11 13:49:12 +01:00
|
|
|
$menu = wofi --show drun
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
env = XCURSOR_SIZE,24
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
input {
|
|
|
|
kb_layout = gb
|
|
|
|
kb_variant =
|
|
|
|
kb_model =
|
|
|
|
kb_rules =
|
2024-06-01 00:50:17 +01:00
|
|
|
repeat_delay = 280
|
|
|
|
repeat_rate = 60
|
2024-05-11 13:49:12 +01:00
|
|
|
follow_mouse = 1
|
|
|
|
touchpad {
|
|
|
|
natural_scroll = no
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
general {
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-06-01 00:50:17 +01:00
|
|
|
gaps_in = 10
|
|
|
|
gaps_out = 10
|
2024-05-11 13:49:12 +01:00
|
|
|
border_size = 2
|
2024-06-02 14:30:14 +01:00
|
|
|
col.active_border = ${active}
|
|
|
|
col.inactive_border = ${inactive}
|
2024-05-11 13:49:12 +01:00
|
|
|
layout = dwindle
|
|
|
|
allow_tearing = false
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
decoration {
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-06-01 00:50:17 +01:00
|
|
|
rounding = 5
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
blur {
|
|
|
|
enabled = true
|
|
|
|
size = 3
|
|
|
|
passes = 1
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
drop_shadow = yes
|
|
|
|
shadow_range = 4
|
|
|
|
shadow_render_power = 3
|
|
|
|
col.shadow = rgba(1a1a1aee)
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
animations {
|
|
|
|
enabled = yes
|
2024-05-30 21:20:39 +01:00
|
|
|
|
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
animation = windows, 1, 7, myBezier
|
|
|
|
animation = windowsOut, 1, 7, default, popin 80%
|
|
|
|
animation = border, 1, 10, default
|
|
|
|
animation = borderangle, 1, 8, default
|
|
|
|
animation = fade, 1, 7, default
|
|
|
|
animation = workspaces, 1, 6, default
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
dwindle {
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
master {
|
|
|
|
new_is_master = true
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
gestures {
|
|
|
|
workspace_swipe = off
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
misc {
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
device {
|
|
|
|
name = epic-mouse-v1
|
|
|
|
sensitivity = -0.5
|
|
|
|
}
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-06-06 18:13:16 +01:00
|
|
|
windowrulev2 = float, class:floating
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
$mainMod = SUPER
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-06-01 00:50:17 +01:00
|
|
|
bind = $mainMod, RETURN, exec, $terminal
|
|
|
|
bind = $mainMod, Q, killactive,
|
2024-05-11 13:49:12 +01:00
|
|
|
bind = $mainMod, M, exit,
|
|
|
|
bind = $mainMod, E, exec, $fileManager
|
|
|
|
bind = $mainMod, V, togglefloating,
|
|
|
|
bind = $mainMod, R, exec, $menu
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-06-06 18:13:16 +01:00
|
|
|
bind = $mainMod, y, exec, pypr toggle termy
|
|
|
|
bind = $mainMod, u, exec, pypr toggle termu
|
|
|
|
bind = $mainMod, i, exec, pypr toggle termi
|
|
|
|
|
2024-06-01 00:50:17 +01:00
|
|
|
bind = $mainMod, h, movefocus, l
|
|
|
|
bind = $mainMod, l, movefocus, r
|
|
|
|
bind = $mainMod, k, movefocus, u
|
|
|
|
bind = $mainMod, j, movefocus, d
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
bind = $mainMod, 1, workspace, 1
|
|
|
|
bind = $mainMod, 2, workspace, 2
|
|
|
|
bind = $mainMod, 3, workspace, 3
|
|
|
|
bind = $mainMod, 4, workspace, 4
|
|
|
|
bind = $mainMod, 5, workspace, 5
|
|
|
|
bind = $mainMod, 6, workspace, 6
|
|
|
|
bind = $mainMod, 7, workspace, 7
|
|
|
|
bind = $mainMod, 8, workspace, 8
|
|
|
|
bind = $mainMod, 9, workspace, 9
|
|
|
|
bind = $mainMod, 0, workspace, 10
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
|
|
|
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
|
|
|
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
|
|
|
bind = $mainMod SHIFT, 4, movetoworkspace, 4
|
|
|
|
bind = $mainMod SHIFT, 5, movetoworkspace, 5
|
|
|
|
bind = $mainMod SHIFT, 6, movetoworkspace, 6
|
|
|
|
bind = $mainMod SHIFT, 7, movetoworkspace, 7
|
|
|
|
bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
|
|
|
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
|
|
|
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
bind = $mainMod, S, togglespecialworkspace, magic
|
|
|
|
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
bind = $mainMod, mouse_down, workspace, e+1
|
|
|
|
bind = $mainMod, mouse_up, workspace, e-1
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-05-11 13:49:12 +01:00
|
|
|
bindm = $mainMod, mouse:272, movewindow
|
|
|
|
bindm = $mainMod, mouse:273, resizewindow
|
2024-05-30 21:20:39 +01:00
|
|
|
|
2024-06-06 18:13:16 +01:00
|
|
|
exec-once=swww-wallpaper-changer & pypr
|
2024-05-11 13:49:12 +01:00
|
|
|
'';
|
2024-06-05 23:27:36 +01:00
|
|
|
};
|
|
|
|
}
|