From 7dabd6a822443e4053a671d06644bd280717a7dc Mon Sep 17 00:00:00 2001 From: Suleyman Farajli Date: Tue, 28 Oct 2025 13:36:40 +0400 Subject: fix(swall): reload compositor when clearing the wallpaper and use xdg directories --- scripts/gui/swall | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'scripts/gui/swall') diff --git a/scripts/gui/swall b/scripts/gui/swall index 8e5ffb6..b180381 100755 --- a/scripts/gui/swall +++ b/scripts/gui/swall @@ -19,21 +19,14 @@ exit 0 check_program "xwallpaper" if [ "${#}" = 0 ]; then - #FIXME: use XDG_CONFIG - input="${HOME}/.config/wallpapers" + input="${XDG_DATA_HOME:-$HOME/.local/share}/wallpapers" elif [ "${#}" != 1 ] && [ "${#}" != 2 ]; then invalid_use fi while getopts "hcd:" option; do case "${option}" in - c) - #FIXME: use `run` function - killall picom - xwallpaper --clear - picom & - exit 0 - ;; + c) run --reload-compositor "xwallpaper --clear" ;; d) input="${OPTARG}" ;; -- cgit v1.2.3