diff options
| author | Don Williams <don.e.williams@gmail.com> | 2026-08-09 03:05:36 -0400 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-08-29 21:41:34 -0700 |
| commit | f1694b519cd73d1bf2b2424ed893489cd1a8d8b3 (patch) | |
| tree | b8e2bd4e54c7b06142508c9e60090a0882c38ebc /config/hypr/scripts/DarkLight.sh | |
| parent | 1f754ef8cfc24cb29b18ba1bf905fb73e56e8d2e (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/DarkLight.sh')
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 3 |
1 files changed, 1 insertions, 2 deletions
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" |
