aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/ToggleWaybarTime.sh
diff options
context:
space:
mode:
authorDon Williams <don.e.williams@gmail.com>2026-08-09 03:05:36 -0400
committerPinapelz <yukais@pinapelz.com>2026-08-29 21:41:34 -0700
commitf1694b519cd73d1bf2b2424ed893489cd1a8d8b3 (patch)
treeb8e2bd4e54c7b06142508c9e60090a0882c38ebc /config/hypr/scripts/ToggleWaybarTime.sh
parent1f754ef8cfc24cb29b18ba1bf905fb73e56e8d2e (diff)
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 <don.e.williams@gmail.com> 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
Diffstat (limited to 'config/hypr/scripts/ToggleWaybarTime.sh')
-rwxr-xr-xconfig/hypr/scripts/ToggleWaybarTime.sh6
1 files changed, 4 insertions, 2 deletions
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
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage