Skip to content

Instantly share code, notes, and snippets.

@johalun
Created August 1, 2019 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johalun/bcae2df7174cf3b367af5d6258fa3b45 to your computer and use it in GitHub Desktop.
Save johalun/bcae2df7174cf3b367af5d6258fa3b45 to your computer and use it in GitHub Desktop.
Sway
if ( ! $?XDG_RUNTIME_DIR ) then
setenv XDG_RUNTIME_DIR /tmp/${uid}-runtime-dir
if ( ! -d "$XDG_RUNTIME_DIR" ) then
mkdir "$XDG_RUNTIME_DIR"
chmod 0700 "$XDG_RUNTIME_DIR"
endif
endif
# XKB For Sway:
setenv XKB_DEFAULT_RULES evdev
setenv XKB_DEFAULT_LAYOUT us,us
setenv XKB_DEFAULT_OPTIONS caps:ctrl_modifier,shift:both_capslock_cancel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment