fix(rars): make it tile on launch
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-02-16 17:22:24 -05:00
parent 662809f7ac
commit c5afea7251

View file

@ -1,4 +1,6 @@
{
config,
writeShellApplication,
stdenvNoCC,
jre,
fetchFromGitHub,
@ -19,10 +21,17 @@ stdenvNoCC.mkDerivation rec {
fetchSubmodules = true;
};
desktopItem = makeDesktopItem {
desktopItem = let
hyprland = config.home-manager.users.${config.vars.mainUser}.wayland.windowManager.hyprland.finalPackage;
execScript = writeShellApplication {
name = "execScript";
runtimeInputs = [hyprland];
text = "(sleep 1; hyprctl dispatch togglefloating) & ${name}";
};
in makeDesktopItem {
name = "RARS";
desktopName = "RARS";
exec = name;
exec = "${execScript}/bin/execScript";
icon = name;
};