Dotfiles/desktopenvs/hyprlua/hypr/monitorhandler.sh

11 lines
450 B
Bash

#!/bin/bash
# Restore previously set wallpapers on all monitors via swww's state cache.
# swww daemon must already be running; this re-applies the last wallpaper after
# a restart or monitor hotplug without re-running wallpaper-picker.
swww restore
# Launch the Eww bar(s). Resolves this script's real path first so the call
# works regardless of the cwd or how the script was invoked (symlink-safe).
"$(dirname "$(readlink -f "$0")")/ewwstart.sh"