pantheon/scripts/hyprland-tty-launch.nix
2025-02-27 17:12:01 +08:00

15 lines
393 B
Nix

{ config, lib, ... }:
{
options.services.hyprland-tty-launch.enable = lib.mkEnableOption "Enable launching Hyprland from TTY with UWSM";
config = lib.mkIf config.services.hyprland-tty-launch.enable {
environment.etc."profile.d/hyprland-tty-launch.sh".text = ''
#!/bin/$SHELL
if uwsm check may-start; then
exec uwsm start hyprland.desktop
fi
'';
};
}