From 2f90b45fa2cfa59e9909dde245a830666d8d6a71 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Wed, 26 Jun 2024 11:43:52 +0200 Subject: [PATCH] feat(hyprland): add some window rules --- home/hyprland/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index 2f58683..7a2cd63 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -6,6 +6,8 @@ ... }: lib.mkIf osConfig.programs.hyprland.enable { + home.sessionVariables.ELECTRON_OZONE_PLATFORM_HINT = "auto"; + wayland.windowManager.hyprland = { enable = true; systemd.variables = [ "--all" ]; @@ -68,7 +70,11 @@ lib.mkIf osConfig.programs.hyprland.enable { vibrancy = 0.1696; }; }; - + windowrulev2 = [ + "float,initialClass:(com.nextcloud.desktopclient.nextcloud)" + "float,initialClass:(org.keepassxc.KeePassXC)" + "workspace 5,initialClass:(lollypop)" + ]; # https://wiki.hyprland.org/Configuring/Variables/#animations animations = { @@ -105,6 +111,8 @@ lib.mkIf osConfig.programs.hyprland.enable { disable_hyprland_logo = false; # If true disables the random hyprland logo / anime girl background. :( }; + bindm = [ "$mod,mouse:272,movewindow" ]; + bind = [ "$mod, D, exec, rofi -config ${config.home.homeDirectory}/.config/rofi/config.rasi -show combi -automatic-save-to-history" @@ -126,6 +134,7 @@ lib.mkIf osConfig.programs.hyprland.enable { "$mod, X, fullscreen, 1" "$mod, F, fullscreen, 0" "$mod, N, exec, ${pkgs.swaynotificationcenter}/bin/swaync-client -t" + ] ++ ( # workspaces