Compare commits

..

No commits in common. "5f55c4bbd250f6a00a5bf8e8bfbe45ff09ddfa84" and "9f0aae589aa974f925cda9e070379657992308c5" have entirely different histories.

11 changed files with 28 additions and 44 deletions

View file

@ -123,8 +123,8 @@ Version 2019-11-04 2021-02-16"
:desc "Markdown to Zulip" "mam" "gg4dip
:%s/<\\/?span ?[^ >]*>//g
:%s/\\n\\n<a id=.*<\\/a>\\n\\n//g
:%s/<\\(http[^ \\n]+\\)>/\\1/g "
;:%s/\\\\<\\([^ \\n]+\\)\\\\>/<\\1>/g "
:%s/<\\(http[^ \\n]+\\)>/\\1/g
:%s/\\\\<\\(.*\\)\\\\>/<\\1>/g "
;:%s/\\n *\\n /\\n /
;:%s/ / /g "
)

View file

@ -9,10 +9,6 @@ matches:
replace: |-
Best,
Janek
- trigger: ";greg"
replace: |-
Greetings from Germany,
Janek
- trigger: ";date"
replace: "{{mydate}}"
vars:

View file

@ -8,7 +8,6 @@
"/home/janek/.local/share/puddletag/actions/Artist splitting.action",
"/home/janek/.local/share/puddletag/actions/Genre Splitting.action",
"/home/janek/.local/share/puddletag/actions/Swap artists.action",
"/home/janek/.local/share/puddletag/actions/Genre Christian.action",
"/home/janek/.local/share/puddletag/actions/Genre House.action",
"/home/janek/.local/share/puddletag/actions/Genre Acoustic.action",
"/home/janek/.local/share/puddletag/actions/Genre Canto.action",
@ -18,7 +17,7 @@
},
"main": {
"lang": "auto",
"lastfolder": "/home/janek/data/4-media/music/Worship/Qobuz-commandes",
"lastfolder": "/home/janek/data/4-media/music/Electronic/Feint",
"maximized": false
},
"playlist": {
@ -45,7 +44,7 @@
"fontsize": 10,
"rowsize": 43,
"sort_fields": [
"album"
"title"
],
"sort_reverse": false
},
@ -132,8 +131,7 @@
"checked": [
"Standard",
"Artist splitting",
"Genre Splitting",
"Genre: Christian"
"Genre Splitting"
]
},
"quick_actions": {

View file

@ -22,7 +22,7 @@ yzf() {
sed "s/ /\t/g" |
fzf --nth=$pos --multi --history="${FZF_HISTDIR:-$XDG_STATE_HOME/fzf}/history-yzf$pos" \
--preview-window=60%,border-left \
--bind="alt-bspace:clear-query,double-click:execute(xdg-open 'https://archlinux.org/packages/{$pos}'),alt-enter:execute(xdg-open 'https://aur.archlinux.org/packages?K={$pos}&SB=p&SO=d&PP=100')" \
--bind="double-click:execute(xdg-open 'https://archlinux.org/packages/{$pos}'),alt-enter:execute(xdg-open 'https://aur.archlinux.org/packages?K={$pos}&SB=p&SO=d&PP=100')" \
"$@" | cut -f$pos | xargs
}

View file

@ -481,7 +481,7 @@ killJava() {
# Files {{{1
which exa >/dev/null &&
alias l='exa --icons --group-directories-first' &&
alias l='exa --icons' &&
alias ll='l --long --extended --git --all'
if which fd >/dev/null 2>&1

View file

@ -66,7 +66,7 @@ addalbum() {
formatsongs() {
(
find -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | formatin
find -maxdepth 1 -type d | formatin
find "$@" "$PWD" -type d | while read d;
do builtin cd "$d" && findsongs | formatin
done
@ -83,17 +83,13 @@ formatsongs() {
formatin() {
while read song; do
new="$(formatsong "$song")"
if test "$new" && test "$new" != "$song"
then mkdir -p "$(dirname "$new")" && mv -iv "$song" "$new"
fi
test "$new" && test "$new" != "$song" && mv -iv "$song" "$new"
done
}
# Normalize the given filename
formatsong() {
echo "$1" | sed -e '# First Entry for Qobuz folders
/^[A-z0-9_-]\+$/{s|_| |g;s|-|/|g};
s/\b\(ft\|Ft\|Feat\|featuring\)\([ .]\)/feat\2/;
echo "$1" | sed -e 's/\b\(ft\|Ft\|Feat\|featuring\)\([ .]\)/feat\2/;
s/\bfeat /feat. /;
s/)(/) (/g;
s/ [[(]\(Free Download\|Original Mix\|Original\|Full Stream\|NCS Release\)[])]//i;

View file

@ -42,7 +42,6 @@ fileinfo() {
# TODO do not grep bitrate but extract properly
#probe="$($elevate ffprobe "$arg" 2>&1)"
#echo $probe | grep -v -e '00:00:00.04' -e 'ansi' &&
$inspect ||
$elevate ffprobe -hide_banner "$arg" 2>&1 | grep "bitrate: ....\? " | sed 's/, start:[^,]\+,/,/' ||
$elevate stat --format "%U:%G %A %s $(
size="$($elevate unzip -l "$arg" 2>/dev/null | tail -1)" &&
@ -92,7 +91,7 @@ for arg; do
timg+=("$tmpfile");;
(*\ video/*)
suffix=_thumbs.jpg
mtn -q -i -t -W -r$(expr 5 - $# \& $# \< 4 \| 1) -D6 -b 0.6 -c $grid -w $(expr $(tput cols) '*' 20) \
mtn -q -i -t -W -r2 -D6 -b 0,6 -c $grid -w $(expr $(tput cols) '*' 20) \
-O "$prefix" -o "$suffix" "$arg" &&
timg -W "$prefix/$(basename "${arg%.*}")$suffix"
;;

View file

@ -7,21 +7,18 @@
# - host
# - target directory name (and further arguments to clone)
# In an existing repo, first arg is omitted
if test -d ".git" # TODO search upwards
test $# -eq 0 && echo "Usage: $0 [repo (omit if in repo)] [upstream owner] [own user] [url]" && exit 2
# TODO check from subdir
if test -d ".git"
then repo="$(basename "$PWD")"
git remote set-url origin "$(git-repo "${3:-github.com}" "$repo" "${2:-$(git config --get user.name)}" "${@:4}")"
else test $# -eq 0 && echo "Usage: $0 [repo (omit if in repo)] [upstream owner] [own user] [url]" && exit 2
repo="$1" && shift
if test "$#" -eq 0
then git-get "$repo"
else
git remote set-url origin "$(git-repo "${3:-github.com}" "$repo" "$2" "${@:4}")"
else repo="$1" && shift
test -d "$d1" && cd "$d1/0-forks"
if ! git-get "${3:-github.com}" "$repo" "${2:-$(git config --get user.name)}" "${@:4}"
then repo="$1-$repo"
git-get "${3:-github.com}" "$repo" "${2:-$(git config --get user.name)}" "${@:4}"
fi
fi
cd "$(basename "$(expr "$4" \| "$repo")")"
cd "$(expr "$4" \| "$repo")"
fi
user="${1:-$repo}"
git remote remove upstream 2>/dev/null || true

View file

@ -6,7 +6,6 @@ if test -e "$JOURNAL"; then
do read intention
done
jrnl intentions "$intention"
apprise $(pass service/apprise/intentions) -t 'janeks intention' -b "$intention"
sudo nft flush chain inet filter outall
sudo nft add rule inet filter outall meta hour "$(date +%H:%M)"-"$(date +%H:%M --date="${1:-10}min")" accept
#expr \( "$1" \> 40 \) \* 10 \| "$1"

View file

@ -1,7 +1,7 @@
#!/bin/sh
# TODO set brightness? light -S
# TODO set brightness
pkill electron
pkill --ignore-case discord
pkill discord
pkill signal
pkill aw-server
pkill aw-qt

View file

@ -1,6 +1,5 @@
#!/bin/sh -e
#!/bin/sh -ex
# Install syncthingtray with dependencies
pacman -Qq | grep '^syncthingtray' | xargs -r yay --noconfirm -R
suffix=$1
yay --noconfirm -Syy --nobatchinstall boost c++utilities$suffix qtforkawesome$suffix qtutilities$suffix
yay --noconfirm -Syyu --nobatchinstall c++utilities$suffix qtforkawesome$suffix qtutilities$suffix
yay --noconfirm -S syncthingtray$suffix