]> git.friedersdorff.com Git - max/dotfiles.git/blobdiff - bash/.bash_profile
Set keyboard layout on magnesium
[max/dotfiles.git] / bash / .bash_profile
index c7bcf264884b3a6bb61898b65e49211912213e46..31f6bb55685d37d85ae191b2e3c89706bedcf8a7 100644 (file)
@@ -13,6 +13,32 @@ if [ -f /etc/bash_completion ]; then
   . /etc/bash_completion
 fi
 
+export PATH="$HOME/.cargo/bin:$PATH"
+
+if test -z "${XDG_RUNTIME_DIR}"; then
+  export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
+  if ! test -d "${XDG_RUNTIME_DIR}"; then
+    mkdir "${XDG_RUNTIME_DIR}"
+    chmod 0700 "${XDG_RUNTIME_DIR}"
+  fi
+fi
 
+export QT_QPA_PLATFORM=wayland-egl
 
-export PATH="$HOME/.cargo/bin:$PATH"
+if [ -f ~/.config/sway/config.base ]; then
+  cat ~/.config/sway/config.base ~/.config/sway/config.${HOSTNAME} > ~/.config/sway/config
+fi
+
+if [ -f ~/.Xresources ]; then
+  cat ~/.Xresources > ~/.Xdefaults
+  if [ -f ~/.Xresources.$HOSTNAME ]; then
+    cat ~/.Xresources.$HOSTNAME >> ~/.Xdefaults
+  fi
+fi
+
+
+if [ $HOSTNAME = "magnesium" ]; then
+  export XKB_DEFAULT_LAYOUT=us
+  export XKB_DEFAULT_VARIANT=colemak
+  export XKB_DEFAULT_OPTIONS=caps:ctrl_modifier
+fi