From b93258bfea26ac1880edd16e7578b80e53ae9715 Mon Sep 17 00:00:00 2001 From: Antoine Vaure Date: Mon, 21 Oct 2024 01:05:33 +0200 Subject: [PATCH] auto start hyprland in tty2 on allegro --- fish.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/fish.nix b/fish.nix index 7910e2a..8be34bb 100644 --- a/fish.nix +++ b/fish.nix @@ -1,13 +1,16 @@ -{ pkgs, ... }: +{ lib, pkgs, variant, ... }: { programs.fish = { enable = true; loginShellInit = '' set -gx fish_greeting - if test $(tty) = /dev/tty1 - Hyprland + '' + + (if variant == "allegro" then '' + source ${pkgs.nix}/etc/profile.d/nix.fish + if test $(tty) = /dev/tty2 + nixGLIntel Hyprland end - ''; + '' else ""); interactiveShellInit = '' # bind ctrl+s to fg