From 98f848d4a031fb5ff84dec0130259785ee917f2d Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 23 Jul 2025 11:53:04 -0400 Subject: [PATCH] Fix the vibe coding hallucinations from swayosd theming --- bin/omarchy-refresh-swayosd | 6 +++--- bin/omarchy-theme-set | 7 +++---- migrations/1753224615.sh | 2 +- 3 files changed, 7 insertions(+), 8 deletions(-) diff --git a/bin/omarchy-refresh-swayosd b/bin/omarchy-refresh-swayosd index c0ef9d6..04e2e26 100755 --- a/bin/omarchy-refresh-swayosd +++ b/bin/omarchy-refresh-swayosd @@ -1,7 +1,7 @@ #!/bin/bash -cp -f ~/.config/swayosd/config.toml ~/.config/swayosd/config.toml.back 2>/dev/null -cp -f ~/.local/share/omarchy/config/walker/config.toml ~/.config/swayosd 2>/dev/null +cp -f ~/.config/swayosd/config.toml ~/.config/swayosd/config.toml.bak 2>/dev/null +cp -f ~/.local/share/omarchy/config/swayosd/config.toml ~/.config/swayosd 3>/dev/null if cmp -s ~/.config/swayosd/config.toml.bak ~/.config/swayosd/config.toml; then rm ~/.config/swayosd//config.toml.bak @@ -10,4 +10,4 @@ else fi pkill swayosd-server -uwsm app -- swayosd-server --gapplication-service & +setsid uwsm app -- swayosd-server &>/dev/null & diff --git a/bin/omarchy-theme-set b/bin/omarchy-theme-set index 3c6b4ed..3766c20 100755 --- a/bin/omarchy-theme-set +++ b/bin/omarchy-theme-set @@ -35,12 +35,11 @@ fi # Trigger alacritty config reload touch "$HOME/.config/alacritty/alacritty.toml" -# Trigger btop config reload -pkill -SIGUSR2 btop - # Restart components to apply new theme +pkill -SIGUSR2 btop pkill -SIGUSR2 waybar -pkill -SIGUSR2 swayosd-server +pkill swayosd-server +setsid uwsm app -- swayosd-server &>/dev/null & makoctl reload hyprctl reload diff --git a/migrations/1753224615.sh b/migrations/1753224615.sh index dc1b0ec..97dbb87 100755 --- a/migrations/1753224615.sh +++ b/migrations/1753224615.sh @@ -1,4 +1,4 @@ -echo "Adding SwayOSD" +echo "Adding SwayOSD theming" if [[ ! -d ~/.config/swayosd ]]; then mkdir -p ~/.config/swayosd