bin: lots of comments
This commit is contained in:
parent
5d9efe2ce6
commit
55b50e747e
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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)" &&
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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##*.}"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue