~sircmpwn/dotfiles

d8e688d323ae9d5c8f96188cfa08a7b61f404042 — Drew DeVault a month ago 447a8d0
sway-run: don't set XDG_RUNTIME_DIR to /tmp
1 files changed, 4 insertions(+), 16 deletions(-)

M bin/sway-run
M bin/sway-run => bin/sway-run +4 -16
@@ 7,14 7,7 @@ export QT_IM_MODULE=ibus
export XKB_DEFAULT_OPTIONS=caps:escape
export GDK_BACKEND=wayland
export XDG_SESSION_TYPE=wayland

eval `ssh-agent`

if [ "$XDG_RUNTIME_DIR" == "" ]
then
	export XDG_RUNTIME_DIR=/tmp
fi

export XCURSOR_THEME=Adwaita
export XDG_DESKTOP_DIR="$HOME"
export XDG_DOWNLOAD_DIR="$HOME/downloads"
export XDG_DOCUMENTS_DIR="$HOME/documents"


@@ 22,18 15,13 @@ export XDG_MUSIC_DIR="$HOME/music"
export XDG_PICTURES_DIR="$HOME/pictures"
export XDG_VIDEOS_DIR="$HOME/videos"

rm -f ~/sway.log
eval `ssh-agent`

case $1 in
	debug)
		exec ~/sources/sway/build/sway/sway -d -Ddamage=rerender 2>~/sway.log
		;;
	blind)
		WLR_BACKENDS=headless,libinput \
		WLR_HEADLESS_OUTPUTS=3 \
		exec sway -d -Ddamage=rerender -c ~/.config/sway/blind 2>~/sway.log
		exec ~/sources/sway/build/sway/sway -d -Ddamage=rerender
		;;
	*)
		exec sway -d -Ddamage=rerender 2>~/sway.log
		exec dbus-run-session sway -d -Ddamage=rerender
		;;
esac