diff --git a/.config/doom/config.el b/.config/doom/config.el index 99b122b..6daeae3 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -225,6 +225,7 @@ Version 2019-11-04 2021-02-16" time-stamp-end "$") :hook before-save) +(setq image-file-name-regexps "/preview/") ;(add-to-list 'image-file-name-regexps "/preview/") ;;;; ORG diff --git a/.config/doom/snippets/plantuml-mode/__ b/.config/doom/snippets/plantuml-mode/__ index d27bed5..0472920 100644 --- a/.config/doom/snippets/plantuml-mode/__ +++ b/.config/doom/snippets/plantuml-mode/__ @@ -3,7 +3,10 @@ # -- @startuml hide empty description -!theme bluegray +'!theme bluegray 'organigram +'!theme sandstone +'!theme blueprint 'class +'!theme reddress-lightblue 'class 'top to bottom direction $0 @enduml \ No newline at end of file diff --git a/.local/bin/scripts/bak b/.local/bin/scripts/bak index d024b6b..20ebe3a 100755 --- a/.local/bin/scripts/bak +++ b/.local/bin/scripts/bak @@ -2,6 +2,7 @@ # Rename a file with a backup suffix or revert it # Add -a to act on multiple files, # otherwise the second arg is used as suffix rather than the default "bak". +# TODO no sudo for symlinks if test "$1" = "-a"; then shift for arg; do "$0" "$arg"; done diff --git a/.local/bin/scripts/dif b/.local/bin/scripts/dif index 710e2b2..ee4784a 100755 --- a/.local/bin/scripts/dif +++ b/.local/bin/scripts/dif @@ -1,5 +1,6 @@ #!/bin/bash -e # interactive diff with pagination and nice coloring +# TODO diff sqlite repos if file --brief --mime "$1" "$2" | grep --quiet audio then ff() { ffprobe -loglevel warning -print_format default=noprint_wrappers=1 -show_format -pretty "$@"; } $(test $(tput cols) -gt 120 && echo "diff --color=always --side-by-side" || echo "diff-color") --report-identical-files --label="$1" --label="$2" <(ff "$1") <(ff "$2") diff --git a/.local/bin/scripts/focus b/.local/bin/scripts/focus index 3e56235..f57db9e 100755 --- a/.local/bin/scripts/focus +++ b/.local/bin/scripts/focus @@ -2,7 +2,8 @@ # launch my focus playlist or find a matching playlist or song files # depends: mp mpc # env: MUSIC -PLAYLISTS="$MUSIC/Playlists" +# args: either a playlist file name, or a list of terms which all have to match +PLAYLISTS="${PLAYLISTS:-$MUSIC/Playlists}" mpc -q clear if test -z "$1" then mp -q "$PLAYLISTS/focus.m3u" diff --git a/.local/bin/scripts/git-get b/.local/bin/scripts/git-get index bd10175..5c188c2 100755 --- a/.local/bin/scripts/git-get +++ b/.local/bin/scripts/git-get @@ -3,6 +3,7 @@ # ARGS see git-repo, all arguments beyond the first three are forwarded to git-clone remote=$(git-repo "$@") echo "Cloning $remote" +test $1 = https && shift case $# in (1) dir=$(basename ${remote%.git});; (3) test "$3" != "$(git config --get user.name)" && diff --git a/.local/bin/scripts/help b/.local/bin/scripts/help index e8193cc..50963e0 100755 --- a/.local/bin/scripts/help +++ b/.local/bin/scripts/help @@ -2,6 +2,7 @@ # open info-page, man-page or command help # depends: unbuffer # optdepends: highlight(dotfiles) +# TODO show tldr page paginate="${PAGER:-less} +Gg" test "$1" = "-d" && browse=1 && shift diff --git a/.local/bin/scripts/transparent b/.local/bin/scripts/transparent index 19ce66a..0267838 100755 --- a/.local/bin/scripts/transparent +++ b/.local/bin/scripts/transparent @@ -1,6 +1,7 @@ #!/bin/sh -ex # Turn white (or another color) into transparent for the given images -# TODO https://safe.duckduckgo.com/?q=imagemagick+color+to+alpha&ia=web https://stackoverflow.com/questions/26408022/imagemagick-color-to-alpha-like-the-gimp/27194202#27194202 +# TODO https://safe.duckduckgo.com/?q=imagemagick+color+to+alpha&ia=web +# https://stackoverflow.com/questions/26408022/imagemagick-color-to-alpha-like-the-gimp/27194202#27194202 case $1 in (-*) color=${1#-};; esac for arg do extension="-transparent.${arg##*.}" diff --git a/.local/bin/scripts/vnctype b/.local/bin/scripts/vnctype index 20ca806..5e38109 100755 --- a/.local/bin/scripts/vnctype +++ b/.local/bin/scripts/vnctype @@ -1,6 +1,7 @@ #!/bin/sh -e # Type in NoVNC with german layout -xdotool search --onlyvisible --classname Navigator windowactivate -#setxkbmap de +xdotool search --onlyvisible --classname Navigator windowactivate # Activate Firefox +setxkbmap de +sleep 0.1 xdotool type --clearmodifiers "$@" -#update-keyboard-layout >/dev/null +update-keyboard-layout >/dev/null