From 43b331215874b9b2a25385a7763001c1df50043d Mon Sep 17 00:00:00 2001 From: histalek Date: Fri, 5 Apr 2024 16:31:36 +0200 Subject: [PATCH] feat(hyprland): Add windowrules and disable blur --- .config/hypr/hyprland.conf | 36 ++++++++--------------------------- .config/hypr/windowRules.conf | 24 +++++++++++++++++++++++ 2 files changed, 32 insertions(+), 28 deletions(-) create mode 100644 .config/hypr/windowRules.conf diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index 768f554..2ba77d5 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -11,8 +11,8 @@ exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 exec-once = nm-applet --indicator exec-once = dbus-update-activation-environment --all --systemd -# Source a file (multi-file configs) -# source = ~/.config/hypr/myColors.conf +# Source window rules +source = ~/.config/hypr/windowRules.conf # Some default env vars. # env = HYPRCURSOR_THEME,Wii Pointer Player 1 @@ -65,19 +65,11 @@ general { decoration { rounding = 10 - blur { - enabled = true - size = 3 - passes = 1 - - new_optimizations = true - xray = true - } - drop_shadow = false - # shadow_range = 4 - # shadow_render_power = 3 - # col.shadow = rgba(1a1a1aee) + + blur { + enabled = false + } } animations { @@ -85,7 +77,6 @@ animations { first_launch_animation = true # Some default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more - bezier = myBezier, 0.05, 0.9, 0.1, 1.05 animation = windows, 1, 7, myBezier @@ -98,14 +89,9 @@ animations { dwindle { # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more - pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below - # preserve_split = true # you probably want this # do i? + preserve_split = true # you probably want this # do i? force_split = 2 # always split to right or bottom -} - -gestures { - # See https://wiki.hyprland.org/Configuring/Variables/ for more - workspace_swipe = off + smart_resizing = false } misc { @@ -118,12 +104,6 @@ misc { mouse_move_focuses_monitor = false } -# Example windowrule v1 -# windowrule = float, ^(kitty)$ -# Example windowrule v2 -# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$ -# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more - $mainMod = SUPER # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more diff --git a/.config/hypr/windowRules.conf b/.config/hypr/windowRules.conf new file mode 100644 index 0000000..b5ff4a8 --- /dev/null +++ b/.config/hypr/windowRules.conf @@ -0,0 +1,24 @@ +# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more + +# Make xwayland windows have a pink border +windowrulev2 = bordercolor rgba(f52891cc),xwayland:1 + +# floating windows +windowrulev2 = float,class:(org.keepassxc.KeePassXC) + +# Move window to specific workspace +windowrulev2 = workspace 1,class:(virt-manager) +windowrulev2 = workspace 11,class:(^thunderbird$) +windowrulev2 = workspace 12,class:(^TeamSpeak 3$) +windowrulev2 = workspace 13,class:(^Signal$) +windowrulev2 = workspace 15,class:(^betterbird$) +windowrulev2 = workspace 16,class:(^cinny$) +windowrulev2 = workspace 16,class:(^Element$) +windowrulev2 = workspace 17,class:(^discord$) +windowrulev2 = workspace 17,class:(^com.discordapp.Discord$) +windowrulev2 = workspace 18,class:(^org.gnome.Calendar$) +windowrulev2 = workspace 21,class:(^steam) +windowrulev2 = workspace 22,class:(^steam_app_) +windowrulev2 = workspace 22,class:(^looking-glass-client$) +windowrulev2 = workspace 22,title:(Default - Wine desktop) +