fix(rars): make it tile on launch
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
662809f7ac
commit
c5afea7251
1 changed files with 11 additions and 2 deletions
|
@ -1,4 +1,6 @@
|
||||||
{
|
{
|
||||||
|
config,
|
||||||
|
writeShellApplication,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
jre,
|
jre,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
@ -19,10 +21,17 @@ stdenvNoCC.mkDerivation rec {
|
||||||
fetchSubmodules = true;
|
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";
|
name = "RARS";
|
||||||
desktopName = "RARS";
|
desktopName = "RARS";
|
||||||
exec = name;
|
exec = "${execScript}/bin/execScript";
|
||||||
icon = name;
|
icon = name;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue