From 10c7de51688d4c1e22da7e9e7127a0e61d7cf08e Mon Sep 17 00:00:00 2001 From: Don Williams Date: Fri, 7 Aug 2026 09:46:22 -0400 Subject: Trimed startup time for waybar Signed-off-by: Don Williams On branch development Your branch is up to date with 'origin/development'. Changes to be committed: modified: CHANGELOG.md modified: config/hypr/configs/Startup_Apps.conf modified: config/hypr/scripts/WaybarStartup.sh --- config/hypr/configs/Startup_Apps.conf | 2 +- config/hypr/scripts/WaybarStartup.sh | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'config') diff --git a/config/hypr/configs/Startup_Apps.conf b/config/hypr/configs/Startup_Apps.conf index e83c414c..2516db34 100644 --- a/config/hypr/configs/Startup_Apps.conf +++ b/config/hypr/configs/Startup_Apps.conf @@ -13,7 +13,7 @@ $livewallpaper="" $wallDIR = $HOME/Pictures/wallpapers # change path manually here if needed ### wallpaper stuff ### -exec-once = sh -c 'sleep 2; $HOME/.config/hypr/scripts/WallpaperDaemon.sh; $HOME/.config/hypr/scripts/ApplyThemeMode.sh; $HOME/.config/hypr/scripts/WaybarStartup.sh' +exec-once = sh -c 'sleep 2; $HOME/.config/hypr/scripts/WallpaperDaemon.sh & $HOME/.config/hypr/scripts/ApplyThemeMode.sh & $HOME/.config/hypr/scripts/WaybarStartup.sh' #exec-once = mpvpaper '*' -o "load-scripts=no no-audio --loop" $livewallpaper # wallpaper random #exec-once = $SwwwRandom $wallDIR # random wallpaper switcher every 30 minutes diff --git a/config/hypr/scripts/WaybarStartup.sh b/config/hypr/scripts/WaybarStartup.sh index 575a7a2b..8cd36efb 100755 --- a/config/hypr/scripts/WaybarStartup.sh +++ b/config/hypr/scripts/WaybarStartup.sh @@ -16,7 +16,7 @@ is_waybar_running() { pgrep -x "waybar" >/dev/null 2>&1 || pgrep -x '\.waybar-wrapped' >/dev/null 2>&1 } wait_for_waybar() { - for _ in $(seq 1 30); do + for _ in $(seq 1 80); do is_waybar_running && return 0 sleep 0.1 done @@ -115,11 +115,9 @@ start_waybar_via_systemd() { } main() { - # Allow key startup services to settle before launching Waybar. - sleep 1 wait_for_wayland || true sync_portal_env - start_portal_services || true + # Portal services are already started by PortalHyprland.sh; no need to wait here. ensure_wallust_waybar_colors || true is_waybar_running && exit 0 -- cgit v1.2.3