aboutsummaryrefslogtreecommitdiffstats
path: root/bin/startsway
blob: 582b77e3d139cc616946429cc0d548b528b39c5c (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

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 -dV -c "$config" > "$HOME/.log/sway.log" 2>&1