summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2024-07-15 13:20:34 -0400
committerLuke Smith <luke@lukesmith.xyz>2024-07-15 13:20:34 -0400
commitcf38cd5ba813741e8ea61c72b30b8c983a3d0abb (patch)
treeae462aa2fc90853edd3987b2fdd04c8bff66e91d
parent82ddcd87ecd9e614f4ae58e8403dd93720570a62 (diff)
parent22141ca7543e98c21ec721acaa3f9f4ff42157bd (diff)
downloadeibhear-cf38cd5ba813741e8ea61c72b30b8c983a3d0abb.tar.gz
eibhear-cf38cd5ba813741e8ea61c72b30b8c983a3d0abb.tar.zst
eibhear-cf38cd5ba813741e8ea61c72b30b8c983a3d0abb.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
-rw-r--r--.config/wal/templates/zathurarc10
-rw-r--r--.config/zathura/zathurarc10
-rwxr-xr-x.local/bin/statusbar/sb-volume6
-rwxr-xr-x.local/bin/texclear13
4 files changed, 26 insertions, 13 deletions
diff --git a/.config/wal/templates/zathurarc b/.config/wal/templates/zathurarc
index 8f0b16f..66527a8 100644
--- a/.config/wal/templates/zathurarc
+++ b/.config/wal/templates/zathurarc
@@ -13,6 +13,16 @@ map J zoom out
map i recolor
map p print
map g goto top
+map [fullscreen] u scroll half-up
+map [fullscreen] d scroll half-down
+map [fullscreen] D toggle_page_mode
+map [fullscreen] r reload
+map [fullscreen] R rotate
+map [fullscreen] K zoom in
+map [fullscreen] J zoom out
+map [fullscreen] i recolor
+map [fullscreen] p print
+map [fullscreen] g goto top
set default-bg "{background}"
set default-fg "{foreground}"
diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc
index 452e116..de92e4d 100644
--- a/.config/zathura/zathurarc
+++ b/.config/zathura/zathurarc
@@ -13,3 +13,13 @@ map J zoom out
map i recolor
map p print
map g goto top
+map [fullscreen] u scroll half-up
+map [fullscreen] d scroll half-down
+map [fullscreen] D toggle_page_mode
+map [fullscreen] r reload
+map [fullscreen] R rotate
+map [fullscreen] K zoom in
+map [fullscreen] J zoom out
+map [fullscreen] i recolor
+map [fullscreen] p print
+map [fullscreen] g goto top
diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume
index e66dea7..f9d406b 100755
--- a/.local/bin/statusbar/sb-volume
+++ b/.local/bin/statusbar/sb-volume
@@ -4,9 +4,9 @@
case $BLOCK_BUTTON in
1) setsid -w -f "$TERMINAL" -e pulsemixer; pkill -RTMIN+10 "${STATUSBAR:-dwmblocks}" ;;
- 2) wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle ;;
- 4) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%+ ;;
- 5) wpctl set-volume @DEFAULT_AUDIO_SINK@ 1%- ;;
+ 2) wpctl set-mute @DEFAULT_SINK@ toggle ;;
+ 4) wpctl set-volume @DEFAULT_SINK@ 1%+ ;;
+ 5) wpctl set-volume @DEFAULT_SINK@ 1%- ;;
3) notify-send "📢 Volume module" "\- Shows volume 🔊, 🔇 if muted.
- Middle click to mute.
- Scroll to change." ;;
diff --git a/.local/bin/texclear b/.local/bin/texclear
index 4cdb02e..6ad3c12 100755
--- a/.local/bin/texclear
+++ b/.local/bin/texclear
@@ -3,14 +3,7 @@
# Clears the build files of a LaTeX/XeLaTeX build.
# I have vim run this file whenever I exit a .tex file.
-case "$1" in
- *.tex)
- file=$(readlink -f "$1")
- dir=$(dirname "$file")
- base="${file%.*}"
- find "$dir" -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\\.(4tc|xref|tmp|pyc|pyg|pyo|fls|vrb|fdb_latexmk|bak|swp|aux|log|synctex\\(busy\\)|lof|lot|maf|idx|mtc|mtc0|nav|out|snm|toc|bcf|run\\.xml|synctex\\.gz|blg|bbl)" -delete
- rm -rdf "$dir/_minted-$(basename -- "$base")"
- ;;
- *) printf "Give .tex file as argument.\\n" ;;
-esac
+[ "${1##*.}" = "tex" ] && {
+ find "$(dirname "${1}")" -regex '.*\(_minted.*\|.*\.\(4tc\|xref\|tmp\|pyc\|pyg\|pyo\|fls\|vrb\|fdb_latexmk\|bak\|swp\|aux\|log\|synctex\(busy\)\|lof\|lot\|maf\|idx\|mtc\|mtc0\|nav\|out\|snm\|toc\|bcf\|run\.xml\|synctex\.gz\|blg\|bbl\)\)' -delete
+} || printf "Provide a .tex file.\n"