aboutsummaryrefslogtreecommitdiffstats
path: root/bin/startsway
blob: 3dc12b83f84336ee4d13fdd33976fca064712cdf (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 -c "$config" > "$HOME/.log/sway.log" 2>&1