auto start hyprland in tty2 on allegro

This commit is contained in:
Antoine Vaure 2024-10-21 01:05:33 +02:00
parent 4730bf5984
commit b93258bfea

View file

@ -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