From 258b031b6870cb99be185437c838381f4f3547a9 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 22 Sep 2025 21:46:46 -0300 Subject: [PATCH] refactor(home/hyprland): disable tty1 autostart (greetd should handle it nicely) --- .../desktop/hyprland/autostart-tty1.nix | 19 ------------------- .../features/desktop/hyprland/default.nix | 1 - 2 files changed, 20 deletions(-) delete mode 100644 home/gabriel/features/desktop/hyprland/autostart-tty1.nix diff --git a/home/gabriel/features/desktop/hyprland/autostart-tty1.nix b/home/gabriel/features/desktop/hyprland/autostart-tty1.nix deleted file mode 100644 index 06cc0ad5..00000000 --- a/home/gabriel/features/desktop/hyprland/autostart-tty1.nix +++ /dev/null @@ -1,19 +0,0 @@ -{lib, config, ...}: let - hyprland = lib.getExe config.wayland.windowManager.hyprland.package; -in { - programs.zsh.loginExtra = lib.mkBefore '' - if [[ "$(tty)" == /dev/tty1 ]]; then - exec ${hyprland} &> /dev/null - fi - ''; - programs.fish.loginShellInit = lib.mkBefore '' - if test (tty) = /dev/tty1 - exec ${hyprland} &> /dev/null - end - ''; - programs.bash.profileExtra = lib.mkBefore '' - if [[ "$(tty)" == /dev/tty1 ]]; then - exec ${hyprland} &> /dev/null - fi - ''; -} diff --git a/home/gabriel/features/desktop/hyprland/default.nix b/home/gabriel/features/desktop/hyprland/default.nix index a296115a..e8906a43 100644 --- a/home/gabriel/features/desktop/hyprland/default.nix +++ b/home/gabriel/features/desktop/hyprland/default.nix @@ -26,7 +26,6 @@ in { ../common ../common/wayland-wm - ./autostart-tty1.nix ./basic-binds.nix ./hyprbars.nix ./hyprlock.nix