From 765a051346b721a68fdf8f002fac4d565ebd32e4 Mon Sep 17 00:00:00 2001 From: Sweetbread Date: Tue, 23 Apr 2024 11:48:43 +0300 Subject: [PATCH] [zsh]: Autorun hyprland on startup --- home-manager/zsh.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home-manager/zsh.nix b/home-manager/zsh.nix index 7ce1349..4d27576 100644 --- a/home-manager/zsh.nix +++ b/home-manager/zsh.nix @@ -25,6 +25,12 @@ ff = "fastfetch"; }; + initExtra = '' + if [ -z "''${WAYLAND_DISPLAY}" ] && [ "''${XDG_VTNR}" -eq 1 ]; then + dbus-run-session Hyprland + fi + ''; + history.size = 10000; history.path = "${config.xdg.dataHome}/zsh/history";