From daf4788cf9d883a9d83016e72136890858e8e548 Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Mon, 12 May 2025 23:34:03 +0200 Subject: [PATCH] hypr: config overhaul - startup script clean-up - window rules for steam games - different animations - small other tweaks --- dot-config/hypr/fragments/animations.conf | 8 +++++--- dot-config/hypr/fragments/windowrules.conf | 11 ++++++++--- dot-config/hypr/hyprland.conf | 2 ++ .../hypr/scripts/{keepassxc.sh => nextcloud.sh} | 0 dot-config/hypr/scripts/startup.sh | 4 ++-- 5 files changed, 17 insertions(+), 8 deletions(-) rename dot-config/hypr/scripts/{keepassxc.sh => nextcloud.sh} (100%) diff --git a/dot-config/hypr/fragments/animations.conf b/dot-config/hypr/fragments/animations.conf index 648590f7..6c42e567 100644 --- a/dot-config/hypr/fragments/animations.conf +++ b/dot-config/hypr/fragments/animations.conf @@ -4,18 +4,20 @@ animations { bezier = myBezier, 0.05, 0.9, 0.1, 1.00 bezier = overshoot, 0.05, 0.9, 0.2, 1.00 bezier = easeOutQuad, 0.5, 1, 0.89, 1 + bezier = easeOutBounce, 0.5, 1, 0.89, 1 + bezier = turboboost, 0.97,0.22,0.9,0.48 animation = windows, 1, 2, easeOutQuad animation = borderangle, 1, 5, default animation = fade, 1, 5, default animation = fadeShadow, 1, 1, default - animation = workspaces, 1, 5, default, slidefade 30 + animation = workspaces, 1, 3, default, slidefade 50 # shamelessly stolen from https://github.com/prasanthrangan/hyprdots bezier = winIn, 0.1, 1.1, 0.1, 1.1 bezier = winOut, 0.3, -0.3, 0, 1 bezier = liner, 1, 1, 1, 1 - animation = windowsIn, 1, 2, overshoot, slide - animation = windowsOut, 1, 2, winOut, slide + animation = windowsIn, 1, 1, turboboost, popin 60% + animation = windowsOut, 1, 1, turboboost animation = border, 1, 1, liner } diff --git a/dot-config/hypr/fragments/windowrules.conf b/dot-config/hypr/fragments/windowrules.conf index 94a9df3e..96409475 100644 --- a/dot-config/hypr/fragments/windowrules.conf +++ b/dot-config/hypr/fragments/windowrules.conf @@ -16,13 +16,18 @@ windowrule = plugin:hyprbars:nobar,title:^(Steam)$ windowrule = plugin:hyprbars:nobar,title:^(Freundesliste)$ # handle wine/proton games -windowrule = noanim, class:^(.*exe)$ -windowrule = fullscreen, initialClass:^(gamescope)$ +$GAMES = ^(steam_app_.*|steam_proton|streaming_client|gamescope)$ +windowrule = noanim, $GAMES +windowrule = fullscreenstate 2 2, $GAMES +windowrule = fullscreen, $GAMES +windowrule = idleinhibit always, $GAMES +# windowrule = immediate, $GAMES # hide hyprbars on non-floating windows windowrule = plugin:hyprbars:nobar, ^floating:0 # handle plasma/kde/qt apps +windowrule = stayfocused, class: ^(org.kde.kwalletd6)$ windowrule = float, class:^(org.kde.*)$ windowrule = float, class:^(kdesystemsettings.*)$ windowrule = minsize 1 1, stayfocused, float, class: ^(com.nextcloud.desktopclient.nextcloud)$ @@ -42,7 +47,6 @@ windowrule = float, class:^(qalculate.*)$ windowrule = opacity 0, title:^()$, class:^()$ windowrule = noblur, title:^()$, class:^()$ - # handle dialogs windowrule = float, title:^((Über|About).*)$ windowrule = stayfocused, title:^((Über|About).*)$ @@ -68,6 +72,7 @@ windowrule = float, class:^(org.corectrl.CoreCtrl)$ windowrule = float, class:^(pavucontrol.*)$ windowrule = float, class:^(lutris)$ windowrule = float, class:^(Threema.*)$ +windowrule = workspace 3, class:^(Threema.*)$ windowrule = float, class:^(blueman-manager.*)$ windowrule = tag +game, class:^(.*)exe$ windowrule = tag +game, initialClass:^(gamescope)$ diff --git a/dot-config/hypr/hyprland.conf b/dot-config/hypr/hyprland.conf index 440179dd..2d28c693 100644 --- a/dot-config/hypr/hyprland.conf +++ b/dot-config/hypr/hyprland.conf @@ -28,6 +28,8 @@ exec-once = ~/.config/hypr/scripts/startup.sh exec-once = hypridle exec-once = hyprpm enable hyprbars exec-once = hyprpaper +exec-once = flatpak run org.openrgb.OpenRGB +exec-once = flatpak run ch.threema.threema-desktop # For all categories, see https://wiki.hyprland.org/Configuring/Variables/ input { diff --git a/dot-config/hypr/scripts/keepassxc.sh b/dot-config/hypr/scripts/nextcloud.sh similarity index 100% rename from dot-config/hypr/scripts/keepassxc.sh rename to dot-config/hypr/scripts/nextcloud.sh diff --git a/dot-config/hypr/scripts/startup.sh b/dot-config/hypr/scripts/startup.sh index 80df0a25..c9bc583a 100755 --- a/dot-config/hypr/scripts/startup.sh +++ b/dot-config/hypr/scripts/startup.sh @@ -58,8 +58,8 @@ pidof waybar && pkill waybar || waybar > /dev/null 2>&1 & logger 'waybar started' pidof swaync && pkill swaync || swaync > /dev/null 2>&1 & -pidof openrgb && pkill openrgb || openrgb -p default --startminimized & -pidof kwalletd6 && ~/.config/hypr/scripts/keepassxc.sh > /dev/null 2>&1 & +pidof kwalletd6 && ~/.config/hypr/scripts/nextcloud.sh > /dev/null 2>&1 & +pidof kwalletd6 && nextcloud --background & pidof xembedsniproxy && pkill xembedsniproxy || xembedsniproxy > /dev/null 2>&1 & # xembedsniproxy needs plasma-workspace # ! pidof swww-daemon && nohup /usr/bin/swww-daemon > /dev/null 2>&1 -- 2.51.2