1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

chore: switch to sway. finally my tearing works again.

This commit is contained in:
oddlama 2025-02-01 18:19:59 +01:00
parent 7e32b6d4d9
commit ca512e9375
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
9 changed files with 279 additions and 99 deletions

View file

@ -63,8 +63,8 @@ lib.optionalAttrs (!minimal) {
# Autostart hyprland if on tty1 (once, don't restart after logout)
programs.zsh.initExtra = lib.mkOrder 9999 ''
if [[ -t 0 && "$(tty || true)" == /dev/tty1 && -z "$DISPLAY" && -z "$WAYLAND_DISPLAY" ]] && uwsm check may-start; then
echo "Login shell detected. Starting Hyprland..."
uwsm start -S -F Hyprland
echo "Login shell detected. Starting sway..."
uwsm start -S -F sway
fi
'';
};