From f1694b519cd73d1bf2b2424ed893489cd1a8d8b3 Mon Sep 17 00:00:00 2001 From: Don Williams Date: Sun, 9 Aug 2026 03:05:36 -0400 Subject: Fix: waybar startup/restart in Fedora Conflicts with waybar.service when hyprland-uwsm session not selected Fixed startup config files Added gate check for AGS to remove errors when not installed 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/lua/startup.lua modified: config/hypr/lua/user_startup_helper.lua modified: config/hypr/scripts/DarkLight.sh modified: config/hypr/scripts/PortalHyprland.sh modified: config/hypr/scripts/Refresh.sh modified: config/hypr/scripts/ToggleWaybarTime.sh modified: config/hypr/scripts/WaybarStartup.sh modified: scripts/migrate-hypr-to-lua.sh --- config/hypr/scripts/ToggleWaybarTime.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'config/hypr/scripts/ToggleWaybarTime.sh') diff --git a/config/hypr/scripts/ToggleWaybarTime.sh b/config/hypr/scripts/ToggleWaybarTime.sh index 2273c3af..54eefb57 100755 --- a/config/hypr/scripts/ToggleWaybarTime.sh +++ b/config/hypr/scripts/ToggleWaybarTime.sh @@ -59,8 +59,10 @@ restart_waybar() { local manage_with_systemd=0 if command -v systemctl >/dev/null 2>&1; then - if systemctl --user --quiet is-active waybar.service 2>/dev/null || systemctl --user --quiet is-enabled waybar.service 2>/dev/null; then - manage_with_systemd=1 + if systemctl --user --quiet is-active graphical-session.target 2>/dev/null || systemctl --user --quiet is-active wayland-session@*.target 2>/dev/null; then + if systemctl --user --quiet is-active waybar.service 2>/dev/null || systemctl --user --quiet is-enabled waybar.service 2>/dev/null; then + manage_with_systemd=1 + fi fi fi -- cgit v1.2.3