aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/home/scripts.nix.org
diff options
context:
space:
mode:
Diffstat (limited to 'macos.local/.flake/home/scripts.nix.org')
-rw-r--r--macos.local/.flake/home/scripts.nix.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/macos.local/.flake/home/scripts.nix.org b/macos.local/.flake/home/scripts.nix.org
new file mode 100644
index 0000000..6bf46a6
--- /dev/null
+++ b/macos.local/.flake/home/scripts.nix.org
@@ -0,0 +1,18 @@
+#+title: Custom Scripts
+
+#+begin_src nix
+ { config, pkgs, ... }:
+
+ {
+ home.file = {
+ ".local/bin/launcher" = {
+ text ''
+ #!/bin/sh
+ app="$(ls /Applications/ /Applications/Utilities/ /System/Applications/ /System/Applications/Utilities/ ~/Applications/ | grep '\.app$' | sed 's/\.app$//g' | choose -f "SauceCodePro Nerd Font" -s 15 -b ece0c9).app"
+ open -n "$HOME/Applications/$app" || open -n "/Applications/$app" || open -n "/System/Applications/Utilities/$app" || open -n "/System/Applications/$app" || open -n "/Applications/Utilities/$app"
+ '';
+ executable = true;
+ };
+ };
+ }
+#+end_src