From a94ee62680c284a5fa86ac1db9660e344f41bd2e Mon Sep 17 00:00:00 2001 From: RealAestan <15686636+RealAestan@users.noreply.github.com> Date: Mon, 3 Apr 2023 16:07:54 +0200 Subject: [PATCH 1/4] dmenuunicode: don't use variables in the printf format string (#1284) It works but the good practice is to use `printf "..%s.." "$foo"` see https://www.shellcheck.net/wiki/SC2059 --- .local/bin/dmenuunicode | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/dmenuunicode b/.local/bin/dmenuunicode index 704c809..dd12bc3 100755 --- a/.local/bin/dmenuunicode +++ b/.local/bin/dmenuunicode @@ -13,6 +13,6 @@ chosen=$(cut -d ';' -f1 ~/.local/share/larbs/chars/* | dmenu -i -l 30 | sed "s/ if [ -n "$1" ]; then xdotool type "$chosen" else - printf "$chosen" | xclip -selection clipboard + printf "%s" "$chosen" | xclip -selection clipboard notify-send "'$chosen' copied to clipboard." & fi From 5c92a1770f1a496cfa188632e2bf3d34bd325ad4 Mon Sep 17 00:00:00 2001 From: Mathieu Rollet Date: Wed, 12 Apr 2023 14:10:42 +0200 Subject: [PATCH 2/4] Set GOMODCACHE to comply with XDG (#1299) If GOMODCACHE is not set, it defaults to $GOPATH/pkg/mod cf. https://go.dev/ref/mod#environment-variables --- .config/shell/profile | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/shell/profile b/.config/shell/profile index e78f21e..5508943 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -39,6 +39,7 @@ export TMUX_TMPDIR="$XDG_RUNTIME_DIR" export ANDROID_SDK_HOME="$XDG_CONFIG_HOME/android" export CARGO_HOME="$XDG_DATA_HOME/cargo" export GOPATH="$XDG_DATA_HOME/go" +export GOMODCACHE="$XDG_CACHE_HOME/go/mod" export ANSIBLE_CONFIG="$XDG_CONFIG_HOME/ansible/ansible.cfg" export UNISON="$XDG_DATA_HOME/unison" export HISTFILE="$XDG_DATA_HOME/history" From d4ff2ebaf3e88efe20cae0d1e592fddfc433c96e Mon Sep 17 00:00:00 2001 From: snailed Date: Wed, 12 Apr 2023 12:11:29 +0000 Subject: [PATCH 3/4] fix shellcheck (#1301) Shellcheck wines when printf doesn't get an argument --- .local/bin/dmenuhandler | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/dmenuhandler b/.local/bin/dmenuhandler index 0b3c713..acfd71b 100755 --- a/.local/bin/dmenuhandler +++ b/.local/bin/dmenuhandler @@ -2,7 +2,7 @@ # Feed this script a link and it will give dmenu # some choice programs to use to open it. -feed="${1:-$(printf "%s" | dmenu -p 'Paste URL or file path')}" +feed="${1:-$(true | dmenu -p 'Paste URL or file path')}" case "$(printf "copy url\\nsxiv\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | dmenu -i -p "Open it with?")" in "copy url") echo "$feed" | xclip -selection clipboard ;; From c08949ebd2aeeec220b63da6a32542a0210bac38 Mon Sep 17 00:00:00 2001 From: anggatd <128944502+anggatd@users.noreply.github.com> Date: Thu, 20 Apr 2023 19:32:31 +0700 Subject: [PATCH 4/4] Change LibreOffice binaries to libreoffice (#1294) In the current update, the libreoffice package doesn't have any binary for libreoffice writer, calc, impress, draw, etc. So it's better to open all of the document using the 'libreoffice' binary as it can work in the old version of libreoffice as well as the new one. --- .config/lf/lfrc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 6017255..63418f6 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -45,12 +45,7 @@ cmd open ${{ video/*) setsid -f mpv $f -quiet >/dev/null 2>&1 ;; application/pdf|application/vnd.djvu|application/epub*) setsid -f zathura $fx >/dev/null 2>&1 ;; application/pgp-encrypted) $EDITOR $fx ;; - application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text) setsid -f lowriter $fx >/dev/null 2>&1 ;; - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/octet-stream|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template) setsid -f localc $fx >/dev/null 2>&1 ;; - application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint) setsid -f loimpress $fx >/dev/null 2>&1 ;; - application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template) setsid -f lodraw $fx >/dev/null 2>&1 ;; - application/vnd.oasis.opendocument.formula) setsid -f lomath $fx >/dev/null 2>&1 ;; - application/vnd.oasis.opendocument.database) setsid -f lobase $fx >/dev/null 2>&1 ;; + application/vnd.openxmlformats-officedocument.wordprocessingml.document|application/vnd.oasis.opendocument.text|application/vnd.openxmlformats-officedocument.spreadsheetml.sheet|application/octet-stream|application/vnd.oasis.opendocument.spreadsheet|application/vnd.oasis.opendocument.spreadsheet-template|application/vnd.openxmlformats-officedocument.presentationml.presentation|application/vnd.oasis.opendocument.presentation-template|application/vnd.oasis.opendocument.presentation|application/vnd.ms-powerpoint|application/vnd.oasis.opendocument.graphics|application/vnd.oasis.opendocument.graphics-template|application/vnd.oasis.opendocument.formula|application/vnd.oasis.opendocument.database) setsid -f libreoffice $fx >/dev/null 2>&1 ;; *) for f in $fx; do setsid -f $OPENER $f >/dev/null 2>&1; done;; esac }}