diff --git a/.config/mimeapps.list b/.config/mimeapps.list index b142357..69f4a13 100644 --- a/.config/mimeapps.list +++ b/.config/mimeapps.list @@ -39,3 +39,4 @@ x-scheme-handler/signalcaptcha=signal.desktop x-scheme-handler/tg=userapp-Telegram Desktop-HJH4V0.desktop x-scheme-handler/etcher=balena-etcher-electron.desktop x-scheme-handler/jitsi-meet=Jitsi Meet.desktop +x-scheme-handler/org-protocol=org-protocol.desktop diff --git a/.local/bin/scripts/arg-test b/.local/bin/scripts/arg-test index 50e0c2f..8a20d9a 100755 --- a/.local/bin/scripts/arg-test +++ b/.local/bin/scripts/arg-test @@ -1,6 +1,6 @@ #!/bin/sh { echo "$# Args: $@" -echo "${@:-default}" | sed 's/\(\w\+\)/\1-w/g' +echo "${@:-default}" | sed 's/\w\+/\0-w/g' #echo "Last arg: ${@:$#}" } | tee /tmp/args$(date +%s) diff --git a/.local/bin/scripts/edconf b/.local/bin/scripts/edconf index ee63c8b..07c206c 100755 --- a/.local/bin/scripts/edconf +++ b/.local/bin/scripts/edconf @@ -6,7 +6,7 @@ listconf() { { cat "$conf_cache"; fd --hidden --type file --size -1m --max-depth 1 . ~; find "${XDG_CONFIG_HOME:-$HOME/.config}" /etc /var/lib/postgres /var/lib/pleroma/static/instance \ - -maxdepth 4 -follow \( -name Partitions -o -name mdn -o -name .git -o -name .local \) -prune -o \ + -maxdepth 4 -follow \( -name Partitions -o -name mdn -o -name .git -o -name .local -o -name plugged \) -prune -o \ ! -iname "*.markdown" -a ! -iname "*.md" -a ! -iname "*.org" \ -type f -readable -exec grep -lI '' {} + 2>/dev/null; } | dedup } diff --git a/.local/bin/scripts/focus b/.local/bin/scripts/focus index 4ef7a84..ff1f467 100755 --- a/.local/bin/scripts/focus +++ b/.local/bin/scripts/focus @@ -9,7 +9,7 @@ then mp -q "$PLAYLISTS/focus.m3u" else (find -L $PLAYLISTS -iname "focus-$1.m3u" -print0 | grep --null-data . || find -L $PLAYLISTS -iname "$1.m3u*" -print0 | grep --null-data . || - find -L $MUSIC -iname "*$1*" -prune -exec find {} -size +2M -type f -not -iregex ".*.\(jpe?g\|png\)" -print0 \; ) | + find -L $MUSIC $(echo "$@" | sed 's/\w\+/-iname *\0*/g') -prune -exec find {} -size +2M -type f -not -iregex ".*.\(jpe?g\|png\)" -print0 \; ) | xargs -0 mp -q fi mpc -q shuffle diff --git a/.local/bin/scripts/genssh b/.local/bin/scripts/genssh index 90a110b..8bd307a 100755 --- a/.local/bin/scripts/genssh +++ b/.local/bin/scripts/genssh @@ -14,4 +14,3 @@ if test "$OSTYPE" = "cygwin" then cat "$keys/$name.pub">/dev/clipboard else xclip -sel clip 2>/dev/null <"$keys/$name.pub" fi && echo "SSH Public key copied to clipboard" || return 0 - diff --git a/.local/bin/scripts/help b/.local/bin/scripts/help index aaf35e7..ed32d3f 100755 --- a/.local/bin/scripts/help +++ b/.local/bin/scripts/help @@ -11,7 +11,7 @@ case $1 in (vlc) unbuffer vlc --full-help "${@:2}" | $paginate;; (gh|chordpro) $@ --help | $paginate;; (caddy) $1 help ${@:2} | $paginate;; - (*) man "$@" || { info "$1" -w | grep -v "manpages" && pinfo "$@"; } || ( "$@" --help || "$@" -help ) 2>&1 | $paginate || which "$@";; + (*) man "$@" || { info "$1" -w | grep -v "manpages" && pinfo "$@"; } || { "$@" --help || "$@" -help; } 2>&1 | ${PAGER:-less} || which "$@";; esac docs="/usr/share/doc/$1" if test -d "$docs"; then diff --git a/.local/bin/scripts/lowercase b/.local/bin/scripts/lowercase new file mode 100755 index 0000000..ddcb37a --- /dev/null +++ b/.local/bin/scripts/lowercase @@ -0,0 +1,3 @@ +#!/bin/sh +# Lowercase given files +perl-rename 'y/A-Z /a-z-/' "$@"