diff options
author | mynacol | 2021-02-05 22:37:05 +0100 |
---|---|---|
committer | mynacol | 2021-02-05 22:37:05 +0100 |
commit | 64bc5aa66a0d435dcdd11338947a9c0210c2909f (patch) | |
tree | b72222458e65af8924ae73a15ebff116c95b9c50 | |
parent | f573240b78df5b9bd35af314fd510ed9fd39faf6 (diff) | |
download | aur-64bc5aa66a0d435dcdd11338947a9c0210c2909f.tar.gz |
Fix problems produced by bash "strict mode"
-rwxr-xr-x | dark-theme.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dark-theme.sh b/dark-theme.sh index 8a4486cc5799..906c94160c6c 100755 --- a/dark-theme.sh +++ b/dark-theme.sh @@ -65,11 +65,13 @@ f="$HOME/.config/Code - OSS/User/settings.json" jq ".[\"workbench.colorTheme\"]=\"${UI_VSCODE}\"" "$f" | sponge "$f" # set background +# properly supply arguments separated by spaces +IFS=$' \n\t' if [[ "$XDG_SESSION_TYPE" == "x11" ]]; then feh --no-fehbg --bg-center ${BG_X11} elif [[ -n "$SWAYSOCK" ]]; then - killall -q swaybg - swaybg --mode center "$BG_SWAY" & + killall -q swaybg || true + swaybg --mode center $BG_SWAY & else echo "No supported window manager." echo "Not setting background" |