summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/sway-run18
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/sway-run b/bin/sway-run
new file mode 100755
index 0000000..1299058
--- /dev/null
+++ b/bin/sway-run
@@ -0,0 +1,18 @@
+#!/bin/sh
+export XKB_DEFAULT_OPTIONS=caps:escape
+export XDG_DESTOP_DIR="$HOME"
+export XDG_DOWNLOAD_DIR="$HOME/downloads"
+export XDG_DOCUMENTS_DIR="$HOME/documents"
+export XDG_MUSIC_DIR="$HOME/music"
+export XDG_PICTURES_DIR="$HOME/pictures"
+export XDG_VIDEOS_DIR="$HOME/videos"
+export XDG_CURRENT_DIR=sway
+
+if [ -z "$XDG_RUNTIME_DIR" ]
+then
+ mkdir -p /tmp/runtime/michael
+ chmod 700 /tmp/runtime/michael
+ export XDG_RUNTIME_DIR=/tmp/runtime/michael
+fi
+
+exec dbus-run-session sway