Compare commits
No commits in common. "edafaf3c144cb36ba5ea8e49846218ad0d5a2522" and "c42079235f411077b0c27fe6b94f3ea94b83dd78" have entirely different histories.
edafaf3c14
...
c42079235f
3 changed files with 4 additions and 16 deletions
|
@ -4,8 +4,8 @@
|
||||||
domain = "forge.katzen.cafe";
|
domain = "forge.katzen.cafe";
|
||||||
owner = "schrottkatze";
|
owner = "schrottkatze";
|
||||||
repo = "typst-configs";
|
repo = "typst-configs";
|
||||||
rev = "9a5bd5256ace2a56de51b89793f191b4eecce1dc"; #:REV:- rev = "%REV%";-:#
|
rev = "7e184eecd8c6f87c08246a0bb105867423bd4fbf"; #:REV:- rev = "%REV%";-:#
|
||||||
sha256 = "sha256-E+5fJULNxM0XcbimuENqIJC24ZwPRMSHnG97ncBtEGw="; #:SHA:- sha256 = "%SHA%";-:#
|
sha256 = "sha256-Lv5/DxBiG7EUgcOHPL8aqztJ97s+78TXXENB7lb1olM="; #:SHA:- sha256 = "%SHA%";-:#
|
||||||
};
|
};
|
||||||
flow = pkgs.fetchFromGitHub {
|
flow = pkgs.fetchFromGitHub {
|
||||||
owner = "MultisampledNight";
|
owner = "MultisampledNight";
|
||||||
|
|
|
@ -25,10 +25,3 @@ alias zsh = echo $"(ansi red)no, fuck that shit!";
|
||||||
alias fish = echo $"(ansi red)no, fuck that shit!";
|
alias fish = echo $"(ansi red)no, fuck that shit!";
|
||||||
|
|
||||||
alias px = pulsemixer;
|
alias px = pulsemixer;
|
||||||
|
|
||||||
# uni
|
|
||||||
alias gun = cd ~/Docs/uni;
|
|
||||||
alias guni = cd ~/Docs/uni/info1;
|
|
||||||
alias gunids = cd ~/Docs/uni/design;
|
|
||||||
alias gunida = cd ~/Docs/uni/dramaturgie;
|
|
||||||
alias gunm = cd ~/Docs/uni/mathe1-3;
|
|
||||||
|
|
|
@ -38,13 +38,8 @@ def glog [
|
||||||
def typed [
|
def typed [
|
||||||
name: string
|
name: string
|
||||||
] {
|
] {
|
||||||
const DEFAULT_TYPST_FILE = "#import \"@local/typst-configs:0.1.0\": generic, sf;\n#show: generic.with();"
|
touch $"($name).typ"
|
||||||
if not ($"($name).typ" | path exists) and not ($"($name).pdf" | path exists) {
|
|
||||||
$DEFAULT_TYPST_FILE | save $"($name).typ"
|
|
||||||
typst compile $"($name).typ"
|
typst compile $"($name).typ"
|
||||||
} else if ($"($name).pdf" | path exists) {
|
|
||||||
typst compile $"($name).typ"
|
|
||||||
}
|
|
||||||
mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf-x11 '($name).pdf' && break; done" $"while inotifywait -e modify '($name).pdf' ; do pkill -HUP mupdf; done"
|
mprocs --names Editor,Viewer,Notify $"hx '($name).typ'" $"while true; do mupdf-x11 '($name).pdf' && break; done" $"while inotifywait -e modify '($name).pdf' ; do pkill -HUP mupdf; done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue