added scripts
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../../script/hakase-lauch-or-focus-tui.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
{pkgs, ...}: let
|
||||||
|
hakase-launch-or-focus-tui = pkgs.writeShellScriptBin "omarchy-focus-wrapper" ''
|
||||||
|
# The Nix version of your script
|
||||||
|
APP_ID="org.omarchy.$(basename "$1")"
|
||||||
|
LAUNCH_COMMAND="omarchy-launch-tui $@"
|
||||||
|
|
||||||
|
exec omarchy-launch-or-focus "$APP_ID" "$LAUNCH_COMMAND"
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
environment.systemPackages = [
|
||||||
|
hakase-launch-or-focus-tui
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user