@@ -385,13 +385,18 @@ if __name__ == "__main__":
385
385
### Linux install
386
386
``` bash
387
387
388
+ # for audio primarily
388
389
sudo apt-get install espeak
389
390
sudo apt-get install portaudio19-dev python3-pyaudio
390
391
sudo apt-get install alsa-base alsa-utils
391
392
sudo apt-get install libcairo2-dev
392
393
sudo apt-get install libgirepository1.0-dev
393
394
sudo apt-get install ffmpeg
394
395
396
+ # for triggers
397
+ sudo apt install inotify-tools
398
+
399
+
395
400
# And if you don't have ollama installed, use this:
396
401
curl -fsSL https://ollama.com/install.sh | sh
397
402
@@ -414,11 +419,17 @@ pip install npcsh[all]
414
419
415
420
# ## Mac install
416
421
` ` ` bash
422
+ # mainly for audio
417
423
brew install portaudio
418
424
brew install ffmpeg
425
+ brew install pygobject3
426
+
427
+ # for triggers
428
+ brew install ...
429
+
430
+
419
431
brew install ollama
420
432
brew services start ollama
421
- brew install pygobject3
422
433
ollama pull llama3.2
423
434
ollama pull llava:7b
424
435
ollama pull nomic-embed-text
@@ -992,13 +1003,30 @@ npc ots -f test_data/catfight.PNG
992
1003
# ## Plan : Schedule tasks to be run at regular intervals (under construction)
993
1004
Use the /plan macro to schedule tasks to be run at regular intervals.
994
1005
` ` ` npcsh
995
- npcsh> /plan run a rag search on the files in the current directory every 5 minutes
1006
+ npcsh> /plan run a rag search for ' moonbeam ' on the files in the current directory every 5 minutes
996
1007
` ` `
997
1008
1009
+ ` ` ` npcsh
1010
+ npcsh> /plan record the cpu usage every 5 minutes
1011
+ ` ` `
1012
+
1013
+ ` ` ` npcsh
1014
+ npcsh> /plan record the apps that are using the most ram every 5 minutes
1015
+ ` ` `
1016
+
1017
+
1018
+
1019
+
998
1020
` ` ` bash
999
1021
npc plan -f 30m -t ' task'
1000
1022
` ` `
1001
1023
1024
+ Plan will use platform-specific scheduling tools. In particular, it uses crontab on Linux and launchd on macOS and Schedule Tasks on Windows.
1025
+
1026
+ Implementations have been provided for Mac and Windows but only has been tested as of 3/23/2025 on Linux.
1027
+
1028
+
1029
+
1002
1030
# ## Plonk : Computer Control
1003
1031
Use the /plonk macro to allow the LLM to control your computer.
1004
1032
` ` ` npcsh
@@ -1284,6 +1312,18 @@ npcsh> /spool model=llama3.3
1284
1312
npc spool -n npc.npc
1285
1313
```
1286
1314
1315
+ ### Trigger
1316
+ Use the /trigger macro to execute specific actionss based on certain conditions.
1317
+
1318
+ ```npcsh
1319
+ npcsh> /trigger watch for new PDF downloads in the ~/Downloads directory and move them
1320
+ to the ~/Documents/PDFs directory . Ensure that the directory exists or create it if it does not.
1321
+ ```
1322
+
1323
+ On Linux, trigger makes use of inotify-tools to watch for file system events. On macOS, it uses fswatch, and on Windows, it uses Watch-Command.
1324
+
1325
+
1326
+
1287
1327
1288
1328
1289
1329
### Vixynt: Image Generation
0 commit comments