Swayscript: Restart wallpaper video only if was running.

This commit is contained in:
Dmitry Voronin 2025-01-02 06:39:15 +03:00
parent efa7095392
commit f5e877b668
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -4,8 +4,7 @@ function reload() {
re() {
# Sway.
swaymsg reload
pkill mpvpaper
wallpaper-video
pkill mpvpaper && wallpaper-video
# Waybar.
pkill waybar