From b3854d6d0af5a4be2a76d9194737093d978fef80 Mon Sep 17 00:00:00 2001 From: qvalentin Date: Fri, 19 Nov 2021 16:25:54 +0100 Subject: [PATCH] ugly fix for vs code and zathura --- .config/xmonad | 2 +- .doom.d/config.el | 2 +- .doom.d/custom.el | 2 ++ .scripts/changebg | 3 +++ .scripts/compile_latex | 11 +++++++++++ .scripts/vscSynctex.sh | 4 ++++ .scripts/zaSynctex.sh | 4 ++++ .scripts/zathuraStarter.sh | 3 +++ 8 files changed, 29 insertions(+), 2 deletions(-) create mode 100755 .scripts/compile_latex create mode 100755 .scripts/vscSynctex.sh create mode 100755 .scripts/zaSynctex.sh create mode 100755 .scripts/zathuraStarter.sh diff --git a/.config/xmonad b/.config/xmonad index 4d947ab..1ec06a9 160000 --- a/.config/xmonad +++ b/.config/xmonad @@ -1 +1 @@ -Subproject commit 4d947ab1a3907e42bf51ded588ac088007b19cfe +Subproject commit 1ec06a92bae4bbc74c5fb8ab7d8dc82c9d16f40d diff --git a/.doom.d/config.el b/.doom.d/config.el index 91c0acf..ec4aa8f 100644 --- a/.doom.d/config.el +++ b/.doom.d/config.el @@ -25,7 +25,7 @@ ;; There are two ways to load a theme. Both assume the theme is installed and ;; available. You can either set `doom-theme' or manually load a theme with the ;; `load-theme' function. This is the default: -(setq doom-theme 'doom-gruvbox) +(setq doom-theme 'doom-henna) ;; If you use `org' and don't want your org files in the default location below, ;; change `org-directory'. It must be set before org loads! diff --git a/.doom.d/custom.el b/.doom.d/custom.el index 9534eff..cf67dea 100644 --- a/.doom.d/custom.el +++ b/.doom.d/custom.el @@ -5,6 +5,8 @@ ;; If there is more than one, they won't work right. '(ansi-color-names-vector ["#282828" "#fb4934" "#b8bb26" "#fabd2f" "#83a598" "#cc241d" "#8ec07c" "#ebdbb2"]) + '(custom-safe-themes + '("6c531d6c3dbc344045af7829a3a20a09929e6c41d7a7278963f7d3215139f6a7" default)) '(exwm-floating-border-color "#504945") '(fci-rule-color "#7c6f64") '(highlight-tail-colors ((("#363627" "#363627") . 0) (("#323730" "#323730") . 20))) diff --git a/.scripts/changebg b/.scripts/changebg index 13b32f0..d75fe66 100755 --- a/.scripts/changebg +++ b/.scripts/changebg @@ -44,8 +44,11 @@ xrdb -merge ~/.Xresources #emacsclient -e '(my-load-xresources)' + xmobar_change killall xmobar xmonad --restart +zathura-pywal + betterlockscreen -u $PATH_TO_IMG & diff --git a/.scripts/compile_latex b/.scripts/compile_latex new file mode 100755 index 0000000..e23ccc5 --- /dev/null +++ b/.scripts/compile_latex @@ -0,0 +1,11 @@ +#!/bin/bash + +DOCUMENT_NAME=$1 + +# The actual script +pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex" >/dev/null 2>&1 +makeglossaries $DOCUMENT_NAME >/dev/null 2>&1 +pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex" >/dev/null 2>&1 +biber "$DOCUMENT_NAME" +pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex" >/dev/null 2>&1 +pdflatex --synctex=1 --interaction=nonstopmode --shell-escape "$DOCUMENT_NAME.tex" diff --git a/.scripts/vscSynctex.sh b/.scripts/vscSynctex.sh new file mode 100755 index 0000000..f22fd03 --- /dev/null +++ b/.scripts/vscSynctex.sh @@ -0,0 +1,4 @@ +while read line < ~/myfifo; do + echo $line + vscodium --verbose --reuse-window -g $line +done diff --git a/.scripts/zaSynctex.sh b/.scripts/zaSynctex.sh new file mode 100755 index 0000000..7784dcf --- /dev/null +++ b/.scripts/zaSynctex.sh @@ -0,0 +1,4 @@ +#!/bin/bash +param=$(echo "$1" | sed 's/\/\.\//\//') +echo "$param" >> ~/myfifo +#exec bash -c "vscodium --verbose --reuse-window -g '$param' >> ~/test.txt" diff --git a/.scripts/zathuraStarter.sh b/.scripts/zathuraStarter.sh new file mode 100755 index 0000000..54c7915 --- /dev/null +++ b/.scripts/zathuraStarter.sh @@ -0,0 +1,3 @@ +#!/bin/bash +zaSynctex.sh & +zathura "$@"