blob: 6bf46a6d1015f529b22f4490e41da3ec5c82fef7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|