diff options
author | rafa_99 <raroma09@gmail.com> | 2022-06-26 17:13:15 +0100 |
---|---|---|
committer | rafa_99 <raroma09@gmail.com> | 2022-06-26 17:13:15 +0100 |
commit | 89927f632f4bab177b954da94ef92bc9e846eb2f (patch) | |
tree | 94116f7573724c45d01d544756fe480752666f89 | |
parent | 63c817fb59ba627e68729f20216da0ea5f74200b (diff) |
Some script updates
-rw-r--r-- | INSTALL/arch-install | 1 | ||||
-rw-r--r-- | INSTALL/gentoo-install | 1 | ||||
-rwxr-xr-x | scripts/.local/bin/compiler | 5 | ||||
-rwxr-xr-x | scripts/.local/bin/yt | 2 |
4 files changed, 4 insertions, 5 deletions
diff --git a/INSTALL/arch-install b/INSTALL/arch-install index 72201d2..6d73a07 100644 --- a/INSTALL/arch-install +++ b/INSTALL/arch-install @@ -23,6 +23,7 @@ sudo pacman --needed -Syu stow opendoas pamixer zsh ncmpcpp xwallpaper newsboat mkdir -p ~/Documents/PDF ~/Documents/Text ~/Documents/Disks ~/Documents/Archives ~/Documents/VMs ~/Downloads ~/Games/WINEPREFIX ~/Pictures/Screenshots ~/Pictures/GIMP ~/Videos/Recordings ~/Code ~/.config/git ~/.config/wallpaper ~/.local/share/gnupg ~/.local/share/pass # Setting folder permissions +chmod 600 ~/.local/share/gnupg/* chmod 700 ~/.local/share/gnupg doas sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >>/etc/profile.d/jre.sh' diff --git a/INSTALL/gentoo-install b/INSTALL/gentoo-install index fc184b1..7bf2261 100644 --- a/INSTALL/gentoo-install +++ b/INSTALL/gentoo-install @@ -39,6 +39,7 @@ else mkdir -p ~/Documents/PDF ~/Documents/Text ~/Documents/Disks ~/Documents/Archives ~/Documents/VMs ~/Downloads ~/Games/WINEPREFIX ~/Pictures/Screenshots ~/Pictures/GIMP ~/Videos/Recordings ~/Code ~/.config/git ~/.config/wallpaper ~/.local/share/gnupg ~/.local/share/pass # Setting folder permissions + chmod 600 ~/.local/share/gnupg/* chmod 700 ~/.local/share/gnupg doas sh -c 'echo "export _JAVA_AWT_WM_NONREPARENTING=1" >>/etc/profile.d/jre.sh' diff --git a/scripts/.local/bin/compiler b/scripts/.local/bin/compiler index 0d5945a..b784caa 100755 --- a/scripts/.local/bin/compiler +++ b/scripts/.local/bin/compiler @@ -28,10 +28,7 @@ else --variable graphics --variable 'geometry:margin=1in' -V 'mathfont:Symbola' ;; HTML) - pandoc "$FILE" --to html4 --from markdown+autolink_bare_uris+tex_math_single_backslash \ - --output "$BASE".html --email-obfuscation none --self-contained --standalone --section-divs \ - --template ~/.local/src/templates/default.html --no-highlight --variable highlightjs=1 \ - --variable 'theme:bootstrap' --mathjax + pandoc "$FILE" --to html --output "$BASE".html ;; Beamer) pandoc "$FILE" --to beamer --from markdown+autolink_bare_uris+tex_math_single_backslash --output "$BASE".pdf \ diff --git a/scripts/.local/bin/yt b/scripts/.local/bin/yt index d4ced52..1e99d4b 100755 --- a/scripts/.local/bin/yt +++ b/scripts/.local/bin/yt @@ -4,6 +4,6 @@ QUERY=$(: | dmenu -i -p "Search:") if [ "$QUERY" != "" ]; then VIDEO=$(queryt -s "$QUERY" -f "i t" | dmenu -i -l 10 -p "Video:" | awk '{print $1}') if [ "$VIDEO" != "" ]; then - mpv --no-config --script-opts=ytdl_hook-ytdl_path=yt-dlp --msg-level=all=no,ytdl_hook=trace "https://www.youtube.com/watch?v=$VIDEO" + mpv --no-config --ytdl-format=best[height"<="1080] --script-opts=ytdl_hook-ytdl_path=yt-dlp --msg-level=all=no,ytdl_hook=trace "https://www.youtube.com/watch?v=$VIDEO" fi fi |