fixed home/hyprland.nix

This commit is contained in:
2025-11-21 16:12:08 +01:00
parent ace15312a5
commit cb59596e9f

View File

@@ -6,36 +6,20 @@
xwayland.enable = true; xwayland.enable = true;
settings = { settings = {
# Monitor configuration
monitor = ",preferred,auto,1"; monitor = ",preferred,auto,1";
# Startup applications
exec-once = [ exec-once = [
"waybar" "waybar"
"swaynotificationcenter"
"swww init" "swww init"
"nm-applet --indicator" "nm-applet --indicator"
"blueman-applet"
]; ];
# Environment variables
env = [
"XCURSOR_SIZE,24"
"QT_QPA_PLATFORMTHEME,qt5ct"
];
# Input configuration
input = { input = {
kb_layout = "us"; kb_layout = "us";
follow_mouse = 1; follow_mouse = 1;
sensitivity = 0; sensitivity = 0;
touchpad = {
natural_scroll = true;
};
}; };
# General settings - Nord inspired
general = { general = {
gaps_in = 5; gaps_in = 5;
gaps_out = 10; gaps_out = 10;
@@ -43,7 +27,6 @@
layout = "dwindle"; layout = "dwindle";
}; };
# Decoration - clean minimal look
decoration = { decoration = {
rounding = 8; rounding = 8;
@@ -52,134 +35,60 @@
size = 6; size = 6;
passes = 2; passes = 2;
}; };
drop_shadow = true;
shadow_range = 20;
shadow_render_power = 3;
}; };
# Animations - smooth like vyrx
animations = { animations = {
enabled = true; enabled = true;
bezier = [ bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
"wind, 0.05, 0.9, 0.1, 1.05"
"winIn, 0.1, 1.1, 0.1, 1.1"
"winOut, 0.3, -0.3, 0, 1"
"liner, 1, 1, 1, 1"
];
animation = [ animation = [
"windows, 1, 6, wind, slide" "windows, 1, 7, myBezier"
"windowsIn, 1, 6, winIn, slide" "windowsOut, 1, 7, default, popin 80%"
"windowsOut, 1, 5, winOut, slide" "border, 1, 10, default"
"windowsMove, 1, 5, wind, slide" "fade, 1, 7, default"
"border, 1, 1, liner" "workspaces, 1, 6, default"
"borderangle, 1, 30, liner, loop"
"fade, 1, 10, default"
"workspaces, 1, 5, wind"
]; ];
}; };
# Layout
dwindle = { dwindle = {
pseudotile = true; pseudotile = true;
preserve_split = true; preserve_split = true;
}; };
master = {
new_is_master = true;
};
# Gestures
gestures = {
workspace_swipe = true;
};
# Misc
misc = { misc = {
force_default_wallpaper = 0; force_default_wallpaper = 0;
disable_hyprland_logo = true; disable_hyprland_logo = true;
disable_splash_rendering = true;
}; };
# Window rules
windowrulev2 = [
"suppressevent maximize, class:.*"
"float, class:^(pavucontrol)$"
"float, class:^(blueman-manager)$"
"float, class:^(nm-connection-editor)$"
];
# Keybindings
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
bind = [ bind = [
# Program launches
"$mainMod, Return, exec, kitty" "$mainMod, Return, exec, kitty"
"$mainMod, Q, killactive," "$mainMod, Q, killactive,"
"$mainMod, M, exit," "$mainMod, M, exit,"
"$mainMod, E, exec, thunar" "$mainMod, E, exec, thunar"
"$mainMod, V, togglefloating," "$mainMod, V, togglefloating,"
"$mainMod, D, exec, rofi -show drun" "$mainMod, D, exec, rofi -show drun"
"$mainMod, P, pseudo,"
"$mainMod, J, togglesplit,"
"$mainMod, F, fullscreen," "$mainMod, F, fullscreen,"
# Screenshot
"$mainMod SHIFT, S, exec, grim -g \"$(slurp)\" - | wl-copy"
", Print, exec, grim -g \"$(slurp)\" ~/Pictures/screenshot_$(date +%Y%m%d_%H%M%S).png"
# Move focus
"$mainMod, left, movefocus, l"
"$mainMod, right, movefocus, r"
"$mainMod, up, movefocus, u"
"$mainMod, down, movefocus, d"
# Switch workspaces
"$mainMod, 1, workspace, 1" "$mainMod, 1, workspace, 1"
"$mainMod, 2, workspace, 2" "$mainMod, 2, workspace, 2"
"$mainMod, 3, workspace, 3" "$mainMod, 3, workspace, 3"
"$mainMod, 4, workspace, 4" "$mainMod, 4, workspace, 4"
"$mainMod, 5, workspace, 5" "$mainMod, 5, workspace, 5"
"$mainMod, 6, workspace, 6"
"$mainMod, 7, workspace, 7"
"$mainMod, 8, workspace, 8"
"$mainMod, 9, workspace, 9"
"$mainMod, 0, workspace, 10"
# Move active window to workspace
"$mainMod SHIFT, 1, movetoworkspace, 1" "$mainMod SHIFT, 1, movetoworkspace, 1"
"$mainMod SHIFT, 2, movetoworkspace, 2" "$mainMod SHIFT, 2, movetoworkspace, 2"
"$mainMod SHIFT, 3, movetoworkspace, 3" "$mainMod SHIFT, 3, movetoworkspace, 3"
"$mainMod SHIFT, 4, movetoworkspace, 4" "$mainMod SHIFT, 4, movetoworkspace, 4"
"$mainMod SHIFT, 5, movetoworkspace, 5" "$mainMod SHIFT, 5, movetoworkspace, 5"
"$mainMod SHIFT, 6, movetoworkspace, 6"
"$mainMod SHIFT, 7, movetoworkspace, 7"
"$mainMod SHIFT, 8, movetoworkspace, 8"
"$mainMod SHIFT, 9, movetoworkspace, 9"
"$mainMod SHIFT, 0, movetoworkspace, 10"
# Scroll through workspaces
"$mainMod, mouse_down, workspace, e+1"
"$mainMod, mouse_up, workspace, e-1"
]; ];
# Mouse bindings
bindm = [ bindm = [
"$mainMod, mouse:272, movewindow" "$mainMod, mouse:272, movewindow"
"$mainMod, mouse:273, resizewindow" "$mainMod, mouse:273, resizewindow"
]; ];
# Volume and brightness keys
bindel = [
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
", XF86MonBrightnessUp, exec, brightnessctl s 10%+"
", XF86MonBrightnessDown, exec, brightnessctl s 10%-"
];
}; };
}; };
} }