Change from swaybg to skwd-wall

Nicer picker and support for movie bgs
This commit is contained in:
David Heinemeier Hansson
2026-05-11 15:27:43 -04:00
committed by Ryan Hughes
parent 15658cc622
commit da822f6ffb
12 changed files with 151 additions and 11 deletions
+1
View File
@@ -18,6 +18,7 @@ if [[ -f $FIRST_RUN_MODE ]]; then
bash "$OMARCHY_PATH/install/first-run/gnome-theme.sh"
bash "$OMARCHY_PATH/install/first-run/gdk-scale.sh"
bash "$OMARCHY_PATH/install/first-run/swayosd.sh"
bash "$OMARCHY_PATH/install/first-run/skwd-wall.sh"
bash "$OMARCHY_PATH/install/first-run/gtk-primary-paste.sh"
bash "$OMARCHY_PATH/install/first-run/elephant.sh"
omarchy-hook-install post-update "$OMARCHY_PATH/install/first-run/install-voxtype.hook"
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
# omarchy:summary=Restart Skwd-wall wallpaper daemon
systemctl --user restart skwd-daemon.service 2>/dev/null || true
+3 -6
View File
@@ -12,9 +12,7 @@ mapfile -d '' -t BACKGROUNDS < <(find -L "$USER_BACKGROUNDS_PATH" "$THEME_BACKGR
TOTAL=${#BACKGROUNDS[@]}
if (( TOTAL == 0 )); then
notify-send "No background was found for theme" -t 2000
pkill -x swaybg
setsid uwsm-app -- swaybg --color '#000000' >/dev/null 2>&1 &
omarchy-notification-send "No background was found for theme" -t 2000
else
# Get current background from symlink
if [[ -L $CURRENT_BACKGROUND_LINK ]]; then
@@ -45,7 +43,6 @@ else
# Set new background symlink
ln -nsf "$NEW_BACKGROUND" "$CURRENT_BACKGROUND_LINK"
# Relaunch swaybg
pkill -x swaybg
setsid uwsm-app -- swaybg -i "$CURRENT_BACKGROUND_LINK" -m fill >/dev/null 2>&1 &
# Apply the new background through Skwd-wall
skwd wall apply "{\"type\":\"static\",\"path\":\"$CURRENT_BACKGROUND_LINK\"}" >/dev/null
fi
+2 -3
View File
@@ -20,6 +20,5 @@ fi
# Create symlink to the new background
ln -nsf "$BACKGROUND" "$CURRENT_BACKGROUND_LINK"
# Kill existing swaybg and start new one
pkill -x swaybg
setsid uwsm-app -- swaybg -i "$CURRENT_BACKGROUND_LINK" -m fill >/dev/null 2>&1 &
# Apply the new background through Skwd-wall
skwd wall apply "{\"type\":\"static\",\"path\":\"$CURRENT_BACKGROUND_LINK\"}" >/dev/null
+1
View File
@@ -68,6 +68,7 @@ omarchy-theme-set-browser
omarchy-theme-set-vscode
omarchy-theme-set-obsidian
omarchy-theme-set-keyboard
omarchy-theme-set-skwd-wall
# Call hook on theme set
omarchy-hook theme-set "$THEME_NAME" >/dev/null
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
# omarchy:summary=Refresh Skwd-wall after an Omarchy theme change
# omarchy:hidden=true
THEME_COLORS="$HOME/.config/omarchy/current/theme/skwd-wall-colors.json"
SKWD_COLORS="$HOME/.cache/skwd-wall/colors.json"
if [[ -f $THEME_COLORS ]]; then
mkdir -p "$(dirname "$SKWD_COLORS")"
cp "$THEME_COLORS" "$SKWD_COLORS"
fi
skwd wall cache_rebuild >/dev/null