slab: autostart Hyprland on tty1
This commit is contained in:
parent
9bd949604b
commit
1a2da79b8e
@ -1,4 +1,4 @@
|
||||
{ lib, pkgs, osConfig, ... }:
|
||||
{ lib, pkgs, osConfig, config, ... }:
|
||||
{
|
||||
imports = [
|
||||
../../home
|
||||
@ -10,6 +10,15 @@
|
||||
};
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
programs.zsh.initExtraFirst = let
|
||||
hyprland="${config.wayland.windowManager.hyprland.finalPackage}/bin/Hyprland";
|
||||
tty="${pkgs.coreutils}/bin/tty";
|
||||
in ''
|
||||
if [[ "$(${tty})" == "/dev/tty1" && -z "''${WAYLAND_DISPLAY:+x}" ]] ; then
|
||||
${hyprland}
|
||||
fi
|
||||
'';
|
||||
|
||||
wayland.windowManager.hyprland.settings = {
|
||||
monitor = ",preferred,auto,1.25";
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user