config: script adjustments
This commit is contained in:
parent
659f5f0200
commit
75316b70c2
|
@ -115,6 +115,14 @@ matches:
|
||||||
params:
|
params:
|
||||||
cmd: "pass information/phone"
|
cmd: "pass information/phone"
|
||||||
|
|
||||||
|
- trigger: ":adt"
|
||||||
|
replace: "{{output}}"
|
||||||
|
vars:
|
||||||
|
- name: output
|
||||||
|
type: shell
|
||||||
|
params:
|
||||||
|
cmd: "pass information/address-bt"
|
||||||
|
|
||||||
- trigger: ":add"
|
- trigger: ":add"
|
||||||
replace: "{{output}}"
|
replace: "{{output}}"
|
||||||
vars:
|
vars:
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
},
|
},
|
||||||
"main": {
|
"main": {
|
||||||
"lang": "auto",
|
"lang": "auto",
|
||||||
"lastfolder": "/home/janek/data/music/Electronic/TheFatRat",
|
"lastfolder": "/home/janek/data/music/Mixes",
|
||||||
"maximized": false
|
"maximized": false
|
||||||
},
|
},
|
||||||
"playlist": {
|
"playlist": {
|
||||||
|
@ -43,7 +43,7 @@
|
||||||
"fontsize": 10,
|
"fontsize": 10,
|
||||||
"rowsize": 43,
|
"rowsize": 43,
|
||||||
"sort_fields": [
|
"sort_fields": [
|
||||||
"title"
|
"__filename"
|
||||||
],
|
],
|
||||||
"sort_reverse": false
|
"sort_reverse": false
|
||||||
},
|
},
|
||||||
|
@ -118,7 +118,7 @@
|
||||||
"$num(%track%,2) %title%",
|
"$num(%track%,2) %title%",
|
||||||
"%title%"
|
"%title%"
|
||||||
],
|
],
|
||||||
"index": 0
|
"index": 3
|
||||||
},
|
},
|
||||||
"functions": {
|
"functions": {
|
||||||
"last_used": "regex"
|
"last_used": "regex"
|
||||||
|
@ -133,4 +133,4 @@
|
||||||
"Artist splitting"
|
"Artist splitting"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -187,9 +187,8 @@ sshl() {
|
||||||
lemonade server -allow 127.0.0.1 &
|
lemonade server -allow 127.0.0.1 &
|
||||||
file="/var/tmp/ssh-$1"
|
file="/var/tmp/ssh-$1"
|
||||||
if test ! -e "$file"; then
|
if test ! -e "$file"; then
|
||||||
ssh-copy-id -i "$(ssh -G "$1" | grep "^identityfile " | head -1 | cut -d " " -f2- | sed "s|^~|$HOME|")" "$1" &&
|
ssh-copy-id -i "$(ssh -G "$1" | grep "^identityfile " | head -1 | cut -d " " -f2- | sed "s|^~|$HOME|")" "$1" && touch "$file"
|
||||||
kitty +kitten ssh -R 2489:127.0.0.1:2489 "$@" &&
|
TERM=xterm-256color kitty +kitten ssh -R 2489:127.0.0.1:2489 "$@"
|
||||||
touch "$file"
|
|
||||||
else ssh "$@"
|
else ssh "$@"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
@ -101,8 +101,8 @@ done
|
||||||
|
|
||||||
if test "$timg"; then
|
if test "$timg"; then
|
||||||
$inspect || $elevate timg $(test "$timga" && echo "-V") --rotate=exif -g $(tput cols)x$(expr $(tput lines) / 2) \
|
$inspect || $elevate timg $(test "$timga" && echo "-V") --rotate=exif -g $(tput cols)x$(expr $(tput lines) / 2) \
|
||||||
$(test $# -gt 1 && grid=$(expr $(tput cols) / \( 30 - $# \& $# \< 20 \| 10 \)) &&
|
$(test $# -gt 1 && grid=$(expr $(tput cols) / \( 30 - $# \& $# \< 25 \| 5 \)) &&
|
||||||
echo "-t0.2 --center --title --grid=$((grid*3 < $# ? $#/3 + 1 : grid < $# ? grid : $#))x2") \
|
echo "-t0.2 --center $(test $# -lt 30 && echo "--title") --grid=$((grid < $# ? grid : $#))x2") \
|
||||||
"${timg[@]}" "${timga[@]}" 2>/dev/null
|
"${timg[@]}" "${timga[@]}" 2>/dev/null
|
||||||
if $inspect || test $# -lt 15; then
|
if $inspect || test $# -lt 15; then
|
||||||
tput setaf 6
|
tput setaf 6
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# check domains from input files via checkdomain, 10 domains at once
|
||||||
|
tmp=/tmp/checkdomain
|
||||||
|
mkdir -p $tmp
|
||||||
|
prefix="$tmp/split$(date +%s)"
|
||||||
|
sh -c "printf '%s\n' {$(paste -s -d, domains)}.{$(paste -s -d, tlds)}" | split -l 10 - "$prefix"
|
||||||
|
find "$tmp" -path "$prefix*" -exec sh -c 'xdg-open "https://www.checkdomain.net/en/domains/search/?domain=$(paste -s -d, {})"' \;
|
|
@ -8,7 +8,9 @@ listconf() {
|
||||||
find "${XDG_CONFIG_HOME:-$HOME/.config}" /etc /var/lib/postgres /var/lib/pleroma/static/instance \
|
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 -o -name plugged \) -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" \
|
! -iname "*.markdown" -a ! -iname "*.md" -a ! -iname "*.org" \
|
||||||
-type f -readable -exec grep -lI '' {} + 2>/dev/null; } | dedup
|
-type f -readable -exec grep -lI '' {} + 2>/dev/null;
|
||||||
|
find /boot -name "*.c*";
|
||||||
|
} | dedup
|
||||||
}
|
}
|
||||||
|
|
||||||
conf_cache_dir="${XDG_CACHE_HOME:-$HOME/.cache}/edconf"
|
conf_cache_dir="${XDG_CACHE_HOME:-$HOME/.cache}/edconf"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
# open info-page, man-page or command help
|
# open info-page, man-page or command help
|
||||||
paginate="${PAGER:-less} +Gg"
|
paginate="${PAGER:-less} +Gg"
|
||||||
test "$1" = "-d" && browse=1 && shift
|
test "$1" = "-d" && browse=1 && shift
|
||||||
|
# TODO resolve aliases
|
||||||
case $1 in
|
case $1 in
|
||||||
(zsh|zmv) # https://unix.stackexchange.com/questions/19290/zmv-for-zsh-dry-runs-and-man-pages
|
(zsh|zmv) # https://unix.stackexchange.com/questions/19290/zmv-for-zsh-dry-runs-and-man-pages
|
||||||
for last; do true; done
|
for last; do true; done
|
||||||
|
@ -9,7 +10,7 @@ case $1 in
|
||||||
info --vi-keys "$(test "$last" != zsh && echo "--index-search=$last")" zsh ||
|
info --vi-keys "$(test "$last" != zsh && echo "--index-search=$last")" zsh ||
|
||||||
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
||||||
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
|
(vlc) unbuffer vlc --full-help "${@:2}" | $paginate;;
|
||||||
(gh|chordpro|bat|reflector) unbuffer "$@" --help | $paginate;;
|
(gh|chordpro|bat|pdfjam|reflector) unbuffer "$@" --help | $paginate;;
|
||||||
(plantuml) unbuffer "$@" -help | $paginate;;
|
(plantuml) unbuffer "$@" -help | $paginate;;
|
||||||
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;;
|
(caddy|stretchly|go) "$1" help "${@:2}" | $paginate;;
|
||||||
(kdeconnect*) kdeconnect-cli --help-all "${@:2}" | $paginate;;
|
(kdeconnect*) kdeconnect-cli --help-all "${@:2}" | $paginate;;
|
||||||
|
|
Loading…
Reference in New Issue