From: Andre Ramnitz Date: Fri, 2 Aug 2024 06:13:52 +0000 (+0200) Subject: hypr: tweak startup X-Git-Tag: v0.2~160 X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=93185ed1f612e18dd06aa151890c61530add2aca;p=dotfiles.git hypr: tweak startup --- diff --git a/config/hypr/hypridle.conf b/config/hypr/hypridle.conf index f4e719d6..bdd3275a 100644 --- a/config/hypr/hypridle.conf +++ b/config/hypr/hypridle.conf @@ -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. } diff --git a/config/hypr/hyprland.conf b/config/hypr/hyprland.conf index f3c6d245..60de2efa 100644 --- a/config/hypr/hyprland.conf +++ b/config/hypr/hyprland.conf @@ -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 diff --git a/config/hypr/scripts/startup.sh b/config/hypr/scripts/startup.sh index 28a2d4aa..db7acfe0 100755 --- a/config/hypr/scripts/startup.sh +++ b/config/hypr/scripts/startup.sh @@ -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