From 21a8762b1e019b4e2ed0ecfd4aca56b954d1c30b Mon Sep 17 00:00:00 2001 From: Shahab Dogar Date: Sun, 15 Dec 2024 06:34:01 +0500 Subject: [PATCH] feat: apply window rules for hyprland also add autostart for 1password, discord, firefox and terminal --- home-manager/dotfiles/hypr/hyprland.conf | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/home-manager/dotfiles/hypr/hyprland.conf b/home-manager/dotfiles/hypr/hyprland.conf index 39fa4e2..bf84554 100644 --- a/home-manager/dotfiles/hypr/hyprland.conf +++ b/home-manager/dotfiles/hypr/hyprland.conf @@ -37,8 +37,7 @@ $menu = wofi --show drun # Autostart necessary processes (like notifications daemons, status bars, etc.) # Or execute your favorite apps at launch like this: -# exec-once = $terminal -# exec-once = nm-applet & +exec-once = $terminal & firefox & discord & 1password exec-once = waybar & swaync & hypridle exec-once = systemctl --user start hyprpolkitagent @@ -139,10 +138,10 @@ animations { # uncomment all if you wish to use that. # workspace = w[tv1], gapsout:0, gapsin:0 # workspace = f[1], gapsout:0, gapsin:0 -# windowrulev2 = bordersize 0, floating:0, onworkspace:w[tv1] -# windowrulev2 = rounding 0, floating:0, onworkspace:w[tv1] -# windowrulev2 = bordersize 0, floating:0, onworkspace:f[1] -# windowrulev2 = rounding 0, floating:0, onworkspace:f[1] +windowrulev2 = workspace 1, class:^(alacritty)$ +windowrulev2 = workspace 2, class:^(firefox)$ +windowrulev2 = workspace 3, class:^(discord)$ +windowrulev2 = workspace 9, class:^(1Password)$ # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more dwindle {