Changed: Hyprland Config

This commit is contained in:
2025-03-25 02:13:48 +01:00
parent ca52e2776f
commit 1e88f2f341
7 changed files with 275 additions and 29 deletions

View File

@@ -3,42 +3,26 @@
{
programs.kitty.enable = true;
wayland.windowManager.hyprland = {
inherit package;
enable = true;
package = null;
portalPackage = null;
systemd.variables = [ "--all" ];
plugins = [
inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
#inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprbars
];
};
home.sessionVariables.NIXOS_OZONE_WL = "1";
wayland.windowManager.hyprland.settings = {
"$mod" = "SUPER";
"$terminal" = "kitty";
"$filemanager" = "dolphin";
bind = [
"$mod, F, exec, firefox"
"$mod, Q, exec, $terminal"
"$mod, C, killactive, "
"$mod, M, exit, "
"$mod, V, togglefloating, "
"$mod, R, exec, $menu"
"$mod, S, exec, $power"
"$mod, P, pseudo, "
"$mod, J, togglesplit, "
] ++ (
# workspaces
# 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)
);
env = [
"NIXOS_OZONE_WL,1"
"MOZ_ENABLE_WAYLAND,1"
"MOZ_WEBRENDER,1"
"_JAVA_AWT_WM_NONREPARENTING,1"
"QT_WAYLAND_DISABLE_WINDOWDECORATION,1"
"QT_QPA_PLATFORM,wayland"
"SDL_VIDEODRIVER,wayland"
"GDK_BACKEND,wayland"
];
extraConfig = builtins.readFile ./hyprland.conf;
};
}