From 67edb7e33aa98ef8ff86aab43ae9ef154e9605d6 Mon Sep 17 00:00:00 2001 From: Ahwx Date: Wed, 29 Apr 2026 00:09:19 +0200 Subject: [PATCH] feat: adds autostart for `sway` to zshrc --- modules/home/zsh.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/modules/home/zsh.nix b/modules/home/zsh.nix index 83c57cf..45cc284 100644 --- a/modules/home/zsh.nix +++ b/modules/home/zsh.nix @@ -209,9 +209,15 @@ # alias imv="nsxiv" # alias sxiv="nsxiv" # fi - function preexec { - print -Pn "\e]0;$\{(q)1}\e\\" + # function preexec { + # print -Pn "\e]0;$\{(q)1}\e\\" + # } + + startwm() { + dbus-run-session sway } + + if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then startwm; fi ''; zsh-abbr = {