Switch to hyprland
This commit is contained in:
@ -86,7 +86,7 @@ in
|
||||
wayland.windowManager.hyprland = {
|
||||
# Whether to enable Hyprland wayland compositor
|
||||
enable = true;
|
||||
package = inputs.hyprland.packages."${pkgs.system}".hyprland;
|
||||
# package = inputs.hyprland.packages."${pkgs.system}".hyprland; # does only work with nixos-unstable
|
||||
|
||||
# The hyprland package to use (simplifies use of plugins)
|
||||
# package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
@ -99,7 +99,10 @@ in
|
||||
# Make PATH available to systemd services
|
||||
systemd.variables = [ "--all" ];
|
||||
|
||||
plugins = [ inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars ];
|
||||
plugins = with pkgs; [
|
||||
# inputs.hyprland-plugins.packages.${pkgs.system}.hyprbars # does only work with nixos-unstable
|
||||
hyprlandPlugins.hyprbars
|
||||
];
|
||||
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
@ -136,7 +139,7 @@ in
|
||||
|
||||
# Master layout
|
||||
master = {
|
||||
new_is_master = false;
|
||||
new_status = "slave";
|
||||
no_gaps_when_only = 2; # with border
|
||||
mfact = 0.5; # Do not make master bigger
|
||||
};
|
||||
@ -201,8 +204,8 @@ in
|
||||
|
||||
# opening applications
|
||||
"$mod, D, exec, wofi --show drun,run"
|
||||
"$mod, E, exec, thunar"
|
||||
"$mod, Return, exec, alacritty"
|
||||
"$mod, E, exec, pcmanfm"
|
||||
"$mod, Return, exec, wezterm"
|
||||
"$mod, B, exec, firefox"
|
||||
"$mod, C, exec, qalculate-gtk"
|
||||
|
||||
|
@ -30,7 +30,7 @@ in
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.hyprland.enable = true;
|
||||
programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland;
|
||||
# programs.hyprland.package = inputs.hyprland.packages.${pkgs.system}.hyprland; # does only work with nixos-unstable
|
||||
programs.hyprland.xwayland.enable = true;
|
||||
security.pam.services.hyprlock = { };
|
||||
};
|
||||
|
Reference in New Issue
Block a user