diff options
author | Michael Hunteman <michael@huntm.net> | 2023-08-27 17:31:07 -0500 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2023-08-27 17:31:07 -0500 |
commit | 4bb61ca9ddbd0647b96b0b28556c3c01b9ce514e (patch) | |
tree | c1919188bdd595e62107a1ccd6f80178bcdf1290 | |
parent | 5fc1dbfe70542e2bce097150667336a3954f65dc (diff) |
Add sway-run
-rwxr-xr-x | bin/sway-run | 18 |
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 |