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/DarkLight.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config/hypr/scripts/DarkLight.sh') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index fa62ebc2..913099fc 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -174,9 +174,8 @@ set_waybar_style() { theme="$1" waybar_styles="${XDG_CONFIG_HOME:-$HOME/.config}/waybar/style" waybar_style_link="${XDG_CONFIG_HOME:-$HOME/.config}/waybar/style.css" - style_prefix="\\[${theme}\\].*\\.css$" - style_file=$(find -L "$waybar_styles" -maxdepth 1 -type f -regex ".*$style_prefix" | shuf -n 1) + style_file=$(find -L "$waybar_styles" -maxdepth 1 -type f \( -iname "${theme}-*.css" -o -iname "${theme}_*.css" -o -iname "[${theme}]*.css" -o -iname "${theme}*.css" \) | shuf -n 1) if [ -n "$style_file" ]; then ln -sf "$style_file" "$waybar_style_link" -- cgit v1.2.3