Fix the vibe coding hallucinations from swayosd theming

This commit is contained in:
David Heinemeier Hansson
2025-07-23 11:53:04 -04:00
parent c36d76bb1c
commit 98f848d4a0
3 changed files with 7 additions and 8 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
cp -f ~/.config/swayosd/config.toml ~/.config/swayosd/config.toml.back 2>/dev/null cp -f ~/.config/swayosd/config.toml ~/.config/swayosd/config.toml.bak 2>/dev/null
cp -f ~/.local/share/omarchy/config/walker/config.toml ~/.config/swayosd 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 if cmp -s ~/.config/swayosd/config.toml.bak ~/.config/swayosd/config.toml; then
rm ~/.config/swayosd//config.toml.bak rm ~/.config/swayosd//config.toml.bak
@ -10,4 +10,4 @@ else
fi fi
pkill swayosd-server pkill swayosd-server
uwsm app -- swayosd-server --gapplication-service & setsid uwsm app -- swayosd-server &>/dev/null &

View File

@ -35,12 +35,11 @@ fi
# Trigger alacritty config reload # Trigger alacritty config reload
touch "$HOME/.config/alacritty/alacritty.toml" touch "$HOME/.config/alacritty/alacritty.toml"
# Trigger btop config reload
pkill -SIGUSR2 btop
# Restart components to apply new theme # Restart components to apply new theme
pkill -SIGUSR2 btop
pkill -SIGUSR2 waybar pkill -SIGUSR2 waybar
pkill -SIGUSR2 swayosd-server pkill swayosd-server
setsid uwsm app -- swayosd-server &>/dev/null &
makoctl reload makoctl reload
hyprctl reload hyprctl reload

View File

@ -1,4 +1,4 @@
echo "Adding SwayOSD" echo "Adding SwayOSD theming"
if [[ ! -d ~/.config/swayosd ]]; then if [[ ! -d ~/.config/swayosd ]]; then
mkdir -p ~/.config/swayosd mkdir -p ~/.config/swayosd