#!/usr/bin/env bash export XKB_DEFAULT_LAYOUT=us,de export XKB_DEFAULT_OPTIONS=grp:alt_shift_toggle,caps:escape export CLUTTER_BACKEND=wayland export QT_QPA_PLATFORM=wayland-egl export QT_WAYLAND_FORCE_DPI=physical export SDL_VIDEODRIVER=wayland export BEMENU_BACKEND=wayland # crashes sway on reload: # export MOZ_ENABLE_WAYLAND=1 export RUST_BACKTRACE=full 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