scripts

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit f2db78c707cb9e9e8b058e805080925defdf8bff
parent 7cc2080a0860f9743e9fa0f5266b87409f3b8b44
Author: AndrewLockVI <andrew@laack.co>
Date:   Sat, 15 Feb 2025 23:49:34 -0600

Fixed pdf opener, now allows for ... spaces (gross) in filenames

Diffstat:
Minstall.sh | 1+
Mzathura.sh | 4++--
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/install.sh b/install.sh @@ -169,3 +169,4 @@ doas apk add flameshot doas apk add xsetroot doas apk add xkill + diff --git a/zathura.sh b/zathura.sh @@ -10,8 +10,8 @@ highlight="#aaaaaa" prompt="Select a pdf:" dmenu_cmd="dmenu -nb \"$background\" -nf \"$foreground\" -sb \"$highlight\" -sf \"$foreground\" -p \"$prompt\"" -pdf=$(printf '%s\n' "${pdfs[@]}" | eval "$dmenu_cmd" "$@") +pdf=$(printf "%s\n" "$pdfs" | eval "$dmenu_cmd" "$@") if [ -n "$pdf" ]; then - zathura $pdf + zathura "$pdf" fi