diff --git a/.xdg_set_env.sh b/.xdg_set_env.sh new file mode 100755 index 0000000..b1fb69d --- /dev/null +++ b/.xdg_set_env.sh @@ -0,0 +1,6 @@ +XDG_USER_DIR_FILE="$HOME/.config/user-dirs.dirs" + +if [ -f "$XDG_USER_DIR_FILE" ]; then + . "$XDG_USER_DIR_FILE" + export XDG_PICTURES_DIR="$XDG_PICTURES_DIR" +fi diff --git a/.xprofile b/.xprofile index 562e674..cea2ccf 100644 --- a/.xprofile +++ b/.xprofile @@ -2,6 +2,7 @@ [ -f ~/.Xresources ] && xrdb -merge ~/.Xresources [ -f ~/.setpath.sh ] && . ~/.setpath.sh [ -f ~/.set_compose_key.sh ] && . ~/.set_compose_key.sh +[ -f ~/.xdg_set_env.sh ] && . ~/.xdg_set_env.sh hash xcompmgr 2>/dev/null && xcompmgr & hash xscreensaver 2>/dev/null && xscreensaver -no-splash & diff --git a/bin/sway b/bin/sway index 214e949..a3595eb 100755 --- a/bin/sway +++ b/bin/sway @@ -9,5 +9,6 @@ if [ -f "$COMPOSE_KEY_FILE" ]; then COMPOSE_KEY=$(cat "$COMPOSE_KEY_FILE") export XKB_DEFAULT_OPTIONS="compose:$COMPOSE_KEY" fi +[ -f ~/.xdg_set_env.sh ] && . ~/.xdg_set_env.sh /usr/bin/sway $*