mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 20:29:24 +00:00
Notify of changed theme
This commit is contained in:
@ -42,3 +42,12 @@ pkill swaync && setsid swaync
|
|||||||
# Set new background
|
# Set new background
|
||||||
ln -nsf $(find "$HOME/.config/omarchy/current/backgrounds/" -type f | head -n 1) "$HOME/.config/omarchy/current/background"
|
ln -nsf $(find "$HOME/.config/omarchy/current/backgrounds/" -type f | head -n 1) "$HOME/.config/omarchy/current/background"
|
||||||
pkill -x swaybg && setsid swaybg -i "$HOME/.config/omarchy/current/background" -m fill
|
pkill -x swaybg && setsid swaybg -i "$HOME/.config/omarchy/current/background" -m fill
|
||||||
|
|
||||||
|
# Wait for swaync to get started properly again
|
||||||
|
while ! pgrep -x swaync >/dev/null; do
|
||||||
|
sleep 0.05
|
||||||
|
done
|
||||||
|
sleep 0.5
|
||||||
|
|
||||||
|
# Notify of the new theme
|
||||||
|
notify-send "Theme changed to $NEW_THEME_NAME" -t 2000 -e
|
||||||
|
Reference in New Issue
Block a user