auto start hyprland in tty2 on allegro
This commit is contained in:
parent
4730bf5984
commit
b93258bfea
1 changed files with 7 additions and 4 deletions
11
fish.nix
11
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue