Compare commits

..

No commits in common. "9056b4f4742e6326e32a405565fc4d7fe388f4d8" and "d74eef021f6ab900c0d8a0650cc7fdcb690d81fc" have entirely different histories.

8 changed files with 13 additions and 30 deletions

View file

@ -371,10 +371,6 @@ alias fc='fossil commit -v'
fdf() {
fossil diff "$@" | clr
}
fuu() {
rm .fslckout
fossil open *.fossil --keep
}
alias gdiff='git diff --word-diff=color --word-diff-regex=. --no-index'
@ -460,17 +456,15 @@ updateDeps() {
esac
shift 2
done
echo name "'$name'" depth "'$depth'" pattern "'$oldversion'" version "'$version'" >&2
find -maxdepth $depth -not \( -name "*forks" -prune \) -type f -name $name |
while read f
do highlight $f
sed -i "s/\($pattern\)\($oldversion\)/\1${version:-\2}/gw /dev/stdout" $f
done
echo name "'$name'" depth "'$depth'" pattern "'$oldversion'" version "'$version'"
find -maxdepth $depth -not \( -name "*forks" -prune \) -type f -name $name | while read f
do highlight $f
sed -i "s/\($pattern\)\($oldversion\)/\1${version:-\2}/gw /dev/stdout" $f
done
}
alias updateKotlin="updateDeps build.gradle.kts 'kotlin(\"jvm\") version \"' --version"
alias updateGradle='updateDeps gradle-wrapper.properties "services.gradle.org\/distributions\/gradle-" --version'
alias updateUtils="updateDeps build.gradle.kts '"'"com.github.Xerus2000.util", ".*", "'" --pattern '[^\"]\+' --version"
updateKarma() { rpl "karma-runner.github.io/[^/]\+/" "karma-runner.github.io/$1/"; }
# Kill all shell background processes
alias killbg='kill ${${(v)jobstates##*:*:}%=*}'

View file

@ -38,7 +38,7 @@ alias fixmime='sudo rm /usr/share/mime/packages/kde.xml && sudo update-mime-data
theme_save="$XDG_CACHE_HOME/theme"
#theme_default="$(d=$(date +%H) && test $d -gt 7 && test $d -lt 19 && echo light || echo dark)"
theme_default="dark"
themeswitch() {
theme() {
theme="$1"
if test "$2" = "kde"
then kcmshell5 kcm_lookandfeel
@ -72,4 +72,4 @@ themeswitch() {
}
export THEME=$(cat "$theme_save" 2> /dev/null)
export THEME=${THEME:-$theme_default}
themeswitch $THEME
theme $THEME

View file

@ -1,7 +1,5 @@
#!/bin/sh
#!/bin/sh -e
# Suspend screen until enter is pressed
xset dpms force off
swaymsg "output * dpms off"
read
xset dpms force on
swaymsg "output * dpms on"

View file

@ -1,3 +1,3 @@
#!/bin/sh -ex
# Set exec flag on all files that should be executable
find -maxdepth 4 -name "*.sh" -o -path '*/githooks/*' "$@" -exec chmod -v +x {} +
find -maxdepth 4 -name "*.sh" "$@" -exec chmod -v +x {} +

View file

@ -1,9 +1,6 @@
#!/bin/sh
# Upload website to iridion
if test $# -eq 0
then echo "$0 site [index.html] [USER]"
else
# TODO: derive from id
site=$1
shift
scp -r "$@" "iridion:/home/${2:-$USER}/web/$site/public_html$(test "$#" -gt 1 || echo '/index.html')"
fi
scp -r "$@" "iridion:web/$site/public_html$(test "$#" -gt 1 || echo '/index.html')"

View file

@ -1,6 +0,0 @@
#!/bin/sh
# Lists the keys for each given song
for arg
do echo -n "$arg: "
keyfinder-cli "$arg"
done

View file

@ -1,6 +1,6 @@
#!/bin/sh
# [M]edia [P]lay
# Add matchings songs to mpd queue, playing external files through symlinking and recursively resolving playlists
# Play given files on mpd, playing external files through symlinking and recursively resolving playlists
# depends: xargs realpath mpc
# env: MUSIC
# TODO auto-convert unknown types with ffmpeg to flac rather than linking (wav, opus, ...)

View file

@ -28,7 +28,7 @@ case $command in
(fix) sed -i 's/.*\/\(musi[kc]\|janek\)/../g' "$@";;
(cd) dir="${2:-cd}"
mkdir "$dir"
cat "$1" | python2 -c "import sys, urllib as ul; [sys.stdout.write(ul.unquote_plus(l)) for l in sys.stdin]" | sed '=' | sed -r 's/^[0-9]$/0\0/' | sed -r "N; s/(.*)\n(.*\/[0-9 ]*(.*))/'\2'\n'$dir\/\1 \3'/" | xargs -L 2 cp;;
cat "$1" | python -c "import sys, urllib as ul; [sys.stdout.write(ul.unquote_plus(l)) for l in sys.stdin]" | sed '=' | sed -r 's/^[0-9]$/0\0/' | sed -r "N; s/(.*)\n(.*\/[0-9 ]*(.*))/'\2'\n'$dir\/\1 \3'/" | xargs -L 2 cp;;
(*) echo "Unknown subcommand '$1' - Possible subcommands:
update - update file paths for moved songs in a playlist
edit - open playlist in default editor