From d8b9f3106942fe47635df682f79b7fb8051c8e8e Mon Sep 17 00:00:00 2001 From: Rosa Date: Sun, 18 Jan 2026 16:00:37 -0500 Subject: finally cursors --- user/home/default.nix | 2 +- user/home/zsh.nix | 16 ---------------- user/home/zsh/default.nix | 17 +++++++++++++++++ user/home/zsh/zlogin.zsh | 4 ++++ 4 files changed, 22 insertions(+), 17 deletions(-) delete mode 100644 user/home/zsh.nix create mode 100644 user/home/zsh/default.nix create mode 100644 user/home/zsh/zlogin.zsh (limited to 'user/home') diff --git a/user/home/default.nix b/user/home/default.nix index 6caaa6c..35e38dc 100644 --- a/user/home/default.nix +++ b/user/home/default.nix @@ -10,7 +10,7 @@ ./kakoune ./ssh.nix ./vencord - ./zsh.nix + ./zsh ]; home = { diff --git a/user/home/zsh.nix b/user/home/zsh.nix deleted file mode 100644 index c19b147..0000000 --- a/user/home/zsh.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ config, ... }: -{ - programs.direnv.enable = true; - programs.zsh = { - enable = true; - autocd = true; - autosuggestion.enable = true; - defaultKeymap = "viins"; - history.ignoreAllDups = true; - initContent = '' - PS1="%F{1}%n %B%5~%b %F{8}%# %f" - ''; - - syntaxHighlighting.enable = true; - }; -} diff --git a/user/home/zsh/default.nix b/user/home/zsh/default.nix new file mode 100644 index 0000000..ffc8977 --- /dev/null +++ b/user/home/zsh/default.nix @@ -0,0 +1,17 @@ +{ config, ... }: +{ + programs.direnv.enable = true; + programs.zsh = { + enable = true; + autocd = true; + autosuggestion.enable = true; + defaultKeymap = "viins"; + history.ignoreAllDups = true; + initContent = '' + PS1="%F{1}%n %B%5~%b %F{8}%# %f" + ''; + + loginExtra = if (config.desktop.windowManager == "sway") then builtins.readFile ./zlogin.zsh else ""; + syntaxHighlighting.enable = true; + }; +} diff --git a/user/home/zsh/zlogin.zsh b/user/home/zsh/zlogin.zsh new file mode 100644 index 0000000..94ce47c --- /dev/null +++ b/user/home/zsh/zlogin.zsh @@ -0,0 +1,4 @@ +if [[ "$(tty)" == "/dev/tty1" ]]; then + export XCURSOR_THEME="catppuccin-mocha-dark-cursors" + exec sway +fi -- cgit v1.3.1