commit eca21d15bc97b229c0e6bec048ffc51788edf55f
parent 14fe34943a0b592dd19c2f635672df060762579c
Author: AndrewLockVI <andrew@laack.co>
Date: Thu, 13 Feb 2025 21:01:31 -0600
Added script for auto-tex/md compilation to replace md preview and vimtex.
Diffstat:
4 files changed, 23 insertions(+), 2 deletions(-)
diff --git a/compile.sh b/compile.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+# Auto-compilation for tex/md files to pdf using entr.
+
+inputFile=$1
+outputFile=$2
+
+# compile right at the start
+pandoc $1 -o $2
+
+# open pdf viewer, non blocking
+zathura $2 &
+
+# watch for changes, recompile
+echo $1 | entr pandoc $1 -o $2
diff --git a/dmenu.sh b/dmenu.sh
@@ -7,4 +7,3 @@ border="#6272a4"
prompt="Open"
dmenu_run -nb "$background" -nf "$foreground" -sb "$highlight" -sf "$foreground" -p "$prompt"
-
diff --git a/install.sh b/install.sh
@@ -135,6 +135,13 @@ doas apk add grim
doas apk add make
doas apk add g++
+doas apk add cmake
+
+# control brightness of (laptop) screen
+sudo apk add brightnessctl
+
+# watch file, allows tex compilation without vimtex
+sudo apk add entr
# tailscale
doas apk add tailscale
diff --git a/mpv.sh b/mpv.sh
@@ -1,2 +1,2 @@
#!/bin/ash
-mpv $(wl-paste)$ && exit
+mpv --force-window=immediate $(wl-paste)$ && exit