mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 23:12:32 +01:00
16 lines
490 B
Django/Jinja
16 lines
490 B
Django/Jinja
# Autostart sway when user login on tty1
|
|
|
|
set -x XDG_CURRENT_DESKTOP 'sway' # xdg-desktop-portal
|
|
set -x MOZ_ENABLE_WAYLAND 1
|
|
set -x KITTY_ENABLE_WAYLAND 1
|
|
set -x QT_QPA_PLATFORM 'wayland-egl'
|
|
set -x BROWSER 'firefox'
|
|
|
|
set TTY1 (tty)
|
|
|
|
if test -z "$DISPLAY"; and test $TTY1 = "/dev/tty1"
|
|
# Debug
|
|
# exec {% if not ansible_service_mgr == "systemd" %}dbus-run-session {% endif %} sway -d 2> ~/sway.log
|
|
exec{% if not ansible_service_mgr == "systemd" %} dbus-run-session{% endif %} sway
|
|
end
|