aboutsummaryrefslogtreecommitdiffstats
path: root/bin/startsway
blob: 70366e0f7a8b5461678bf163c29a020b387c066a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env bash

export XKB_DEFAULT_LAYOUT=us,de
export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle,caps:escape

mkdir -p "$HOME/.log"
config="$HOME/.config/sway/config"

if [ -f "$HOME/.config/sway/$(hostname)" ]; then
  config="$HOME/.config/sway/$(hostname)"
fi
/usr/bin/sway -V -c "$config" > "$HOME/.log/sway.log" 2>&1