config: little scripting adjustments

This commit is contained in:
xeruf 2021-10-22 14:14:25 +02:00
parent fbba5d21a5
commit 7127ffe29d
5 changed files with 6 additions and 2 deletions

View File

@ -38,3 +38,4 @@ x-scheme-handler/sgnl=signal-desktop.desktop
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

View File

@ -46,6 +46,7 @@ let g:firenvim_config = {
\
\ '.*docs\.google\.com.*': { 'priority': 9, 'takeover': 'never', },
\ '.*contacts\.google\.com.*': { 'priority': 9, 'takeover': 'never', },
\ '.*calendar\.google\.com.*': { 'priority': 9, 'takeover': 'empty', },
\ '.*notion\.so.*': { 'priority': 9, 'takeover': 'never', },
\ '.*cloud\.atomtoast\.xyz.*': { 'priority': 9, 'takeover': 'never', },
\ 'https://bigbluebutton.*': { 'priority': 9, 'takeover': 'never', },

View File

@ -17,7 +17,7 @@ tput setaf 4 && $elevate file -E "$last" | ( grep -v --color=never 'directory$'
case "$($elevate file --dereference --mime "$last")" in
*inode/directory*) tput sgr0 && $(test -x "$last" || echo "sudo") ls -l --color=always --human-readable --group-directories-first --file-type --dereference-command-line --all "$@" | less -XF;;
*binary) expr "$(file "$last")" : ".*compressed" >/dev/null && /usr/share/nvim/runtime/macros/less.sh "$@";;
*) $elevate bat --style header "$@" --pager='less -XF'
*) $elevate bat --style header "$@" $(test -n "$elevate" || echo "--pager='less -XF'")
tput setaf 3 && $elevate stat --format '%A size %sB, birth: %.10w mod %.10y' "$last"
;;
esac

View File

@ -8,7 +8,7 @@ do
then echo -n "Force delete git project $f?"
read answer
test "$answer" = "y" && $elevate rm -rf "$f"
else find "$f" -maxdepth 1 -type d -empty -printf "Removing empty %p\n" -delete
else find "$f" -maxdepth 4 -type d -empty -printf "Removing empty %p\n" -delete
test -e "$f" && echo -n "$f " >&2 && $elevate rm -rI "$f"
fi
else $elevate rm -i "$f"

View File

@ -47,6 +47,8 @@ and configuration for ~less~ and ~fzf~.
: mkdir -p ~/.local/state/mpd && systemctl --user enable --now mpd mpd-mpris
- bluetooth :: bluez bluez-utils pulseaudio-bluetooth
- tagging :: puddletag beets picard ffmpegthumbnailer
- sync :: syncthing
: systemctl enable --now syncthing
** Graphical
- x :: xorg-xserver xorg-xkill xorg-setxkbmap xorg-xinit xterm xclip xprintidle light
- music production :: lilypond lilypond-docs timidity++ chordpro-git musescore