From e8ba78c518ac501d4de4275607748cb55394407f Mon Sep 17 00:00:00 2001 From: zetef Date: Mon, 15 Jul 2024 20:14:25 +0300 Subject: [PATCH 1/3] Fix sb-volume (toggle mute, scroll volume change) (#1411) the current wpctl version does not support @DEFAULT_AUDIO_SINK@, but works with @DEFAULT_SINK@ quick fix --- .local/bin/statusbar/sb-volume | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/statusbar/sb-volume b/.local/bin/statusbar/sb-volume index e66dea77..f9d406bb 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." ;; From b4b462029cca2b2066e6065495cf407d107739a1 Mon Sep 17 00:00:00 2001 From: Visrut Date: Mon, 15 Jul 2024 22:45:55 +0530 Subject: [PATCH 2/3] shortcuts: zathura full screen mode shortcuts should work as before (#1396) * shortcuts work in full-screen mode * update wal template --- .config/wal/templates/zathurarc | 10 ++++++++++ .config/zathura/zathurarc | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/.config/wal/templates/zathurarc b/.config/wal/templates/zathurarc index 8f0b16fa..66527a8c 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 452e1168..de92e4de 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 From 22141ca7543e98c21ec721acaa3f9f4ff42157bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20AKY=C3=9CZ?= Date: Mon, 15 Jul 2024 20:18:02 +0300 Subject: [PATCH 3/3] [texclear] - minimize | streamline (#1390) --- .local/bin/texclear | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.local/bin/texclear b/.local/bin/texclear index 4cdb02e2..6ad3c12e 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"