]> Freerunner's - dotfiles.git/commitdiff
hypr: tweak startup
authorAndre Ramnitz <tux.rising@gmail.com>
Fri, 2 Aug 2024 06:13:52 +0000 (08:13 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 18 Aug 2024 19:05:38 +0000 (21:05 +0200)
config/hypr/hypridle.conf
config/hypr/hyprland.conf
config/hypr/scripts/startup.sh

index f4e719d6e32cc64aaed90b0d2794ab9d8b4989b0..bdd3275a2c9aee667e34e746e6159d7a09718942 100644 (file)
@@ -18,12 +18,12 @@ general {
 # }
 
 listener {
-    timeout = 900                                 # 15min
+    timeout = 1200                                 # 20min
     on-timeout = loginctl lock-session            # lock screen when timeout has passed
 }
 
 listener {
-    timeout = 1200                                 # 20min
+    timeout = 1800                                 # 30min
     on-timeout = hyprctl dispatch dpms off        # screen off when timeout has passed
     on-resume = hyprctl dispatch dpms on          # screen on when activity is detected after timeout has fired.
 }
index f3c6d2451b7e6d390616282360fe7b4e0a92faa1..60de2efa6256697fcf01375f0c64b9567a1db310 100644 (file)
@@ -41,8 +41,9 @@ env = HYPRCURSOR_THEME,breeze_cursors
 env = HYPRCURSOR,24
 
 # Execute your favorite apps at launch
-exec-once = hypridle
 exec-once = ~/.config/hypr/scripts/startup.sh
+exec-once = hypridle
+exec-once = foot -s
 
 # Source a file (multi-file configs)
 # source = ~/.config/hypr/myColors.conf
@@ -190,11 +191,12 @@ windowrulev2 = float, noanim, stayfocused, maxsize 1280 800, center, opacity 1.0
 windowrule = float, ^(openrgb)$
 windowrule = float, ^(org.kde.*)$
 windowrule = float, ^(vlc.*)$
+windowrule = float, class:^(qalculate.*)$
 # windowrule = float, ^(org.kde.okular)$
 # windowrule = float, ^(org.kde.gwenview)$
 # windowrule = float, ^(org.kde.skanlite)$
-windowrule = immediate, ^(.*exe)$
-windowrule = immediate, fullscreen, ^(gamescope)$
+windowrulev2 = noanim, class:^(.*exe)$
+windowrulev2 = fullscreen, class:^(gamescope)$
 
 # See https://wiki.hyprland.org/Configuring/Keywords/ for more
 $suremod = SUPER ALT CTRL
@@ -209,10 +211,10 @@ bind = $suremod, V, togglefloating,
 bind = $suremod, G, exec, ~/dotfiles/config/hypr/scripts/gamemode.sh
 
 # Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
-bind = $mainmod, Return, exec, foot
+bind = $mainmod, Return, exec, footclient
 bind = $mainmod Shift, Q, killactive,
-bind = $mainmod Shift, Return, exec, foot -w 1280x800 -a popup
-bind = $mainmod, P, exec, foot -w 640x400 -a popup -H hyprpicker #color Pipette
+bind = $mainmod Shift, Return, exec, footclient -w 1280x800 -a popup
+bind = $mainmod, P, exec, footclient -w 640x400 -a popup -H hyprpicker #color Pipette
 bind = $mainmod, E, exec, dolphin
 bind = $mainmod, F, fullscreen,1
 bind = $mainmod, V, exec, killall fuzzel || cliphist list | fuzzel -d -w 100 | cliphist decode | wl-copy
index 28a2d4aa981663b1220ad08bada64bbf2a06292a..db7acfe011af0787cb7823e92d3ce5222f3336c8 100755 (executable)
@@ -49,20 +49,20 @@ killall xdg-desktop-portal-wlr
 killall xdg-desktop-portal
 logger 'killed all xdg-desktop'
 
-sleep 1
+sleep 0.5
 /usr/libexec/xdg-desktop-portal-kde &
 if [[ ! $(pidof xdg-desktop-portal-kde) ]]; then
     logger 'problem: xdg-desktop-portal-kde not running'
 fi
 
-sleep 1
+sleep 0.5
 /usr/libexec/xdg-desktop-portal-hyprland &
 logger 'xdg-desktop-portal-hyprland started'
 if [[ ! $(pidof xdg-desktop-portal-hyprland) ]]; then
     logger 'problem: xdg-desktop-portal-hyprland not running'
 fi
 
-sleep 2
+sleep 1
 /usr/libexec/xdg-desktop-portal &
 if [[ ! $(pidof xdg-desktop-portal) ]]; then
     logger 'problem: xdg-desktop-portal not running'
@@ -76,9 +76,15 @@ else
     logger 'gentoo-pipewire-launcher (re-)started'
 fi
 
-if [[ ! $(pidof waybar) ]]; then
+if [[ ! $(pidof waybar) && $(pidof pipewire) ]]; then
     waybar &
     logger 'waybar started'
+else
+    until [[ $(pidof pipewire) ]]; do
+        sleep 0.5
+    done
+    waybar &
+    logger 'waybar started with delay due to pipewire not available'
 fi
 
 if [[ ! $(pidof mpd) ]]; then