summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuleyman Farajli <suleyman@farajli.net>2025-10-28 13:36:40 +0400
committerSuleyman Farajli <suleyman@farajli.net>2025-10-28 13:36:40 +0400
commit7dabd6a822443e4053a671d06644bd280717a7dc (patch)
tree338aa73fea7a47f980b7614282557b8bd841ad8b
parentf810d8eb1d2ca76b4b756aa4a3326a0ada763d7a (diff)
fix(swall): reload compositor when clearing the wallpaper and use xdg directories
-rwxr-xr-xscripts/gui/swall11
1 files changed, 2 insertions, 9 deletions
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}" ;;