diff options
| author | Akshay Nair <phenax5@gmail.com> | 2020-12-21 18:52:51 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2020-12-21 18:52:51 +0530 |
| commit | f1cf59ce2df9204f818cfd038538a2a31a5c2262 (patch) | |
| tree | 35b0a21501615b7551514262b96e9d8113375cbc /config/qutebrowser/userscripts/nodemon | |
| parent | 6ff5a17adcf1ed72cd2f1c7bff606bdd3352b3bb (diff) | |
| download | nixos-config-f1cf59ce2df9204f818cfd038538a2a31a5c2262.tar.gz nixos-config-f1cf59ce2df9204f818cfd038538a2a31a5c2262.zip | |
Adds qutebrowser config
Diffstat (limited to '')
| -rwxr-xr-x | config/qutebrowser/userscripts/nodemon | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/config/qutebrowser/userscripts/nodemon b/config/qutebrowser/userscripts/nodemon new file mode 100755 index 0000000..99da415 --- /dev/null +++ b/config/qutebrowser/userscripts/nodemon @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +WATCH_DIR="$1"; +EXTENSIONS="${2:-"js,html,css"}"; + +nodemon --exec "echo 'reload' >> $QUTE_FIFO" -e $EXTENSIONS -w "$WATCH_DIR" & + +~/scripts/notify.sh "[$PID] Watching $WATCH_DIR for $EXTENSIONS..."; + +disown; + |
