Theme changer: Wait for hyprpaper socket to be available
This commit is contained in:
parent
302f344ee6
commit
01d584b925
1 changed files with 3 additions and 0 deletions
|
@ -178,6 +178,9 @@ function set_betterdiscord_theme {
|
||||||
function set_desktop_wallpaper_theme {
|
function set_desktop_wallpaper_theme {
|
||||||
if ! pgrep -u "$USER" hyprpaper > /dev/null; then
|
if ! pgrep -u "$USER" hyprpaper > /dev/null; then
|
||||||
hyprctl dispatch exec hyprpaper > /dev/null
|
hyprctl dispatch exec hyprpaper > /dev/null
|
||||||
|
while ! hyprctl hyprpaper listloaded &> /dev/null; do
|
||||||
|
sleep 0.25
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hyprctl hyprpaper preload "$wallpaper"
|
hyprctl hyprpaper preload "$wallpaper"
|
||||||
|
|
Loading…
Reference in a new issue