1
0
Fork 0

Update hstr settings & logic

This commit is contained in:
Starbeamrainbowlabs 2017-08-28 11:02:26 +01:00
parent f7c411ed04
commit 0f6e35ae78
3 changed files with 11 additions and 3 deletions

View File

@ -31,9 +31,14 @@ HOST_COLOUR="${HC}${FYEL}"
# Whether we should disable hh integration or not.
# Useful if we're on a machine that doesn't have it installed.
NO_HH=true;
NO_HH=false;
# Whether we should force-enable hh. Needed on some systems
# because sometimes support is not detected correctly. Use
# with extreme caution!
FORCE_HH=false;
which hh 1>/dev/null 2>&1;
if [[ "$?" -ne "0" ]]; then
NO_HH=true;
FORCE_HH=false;
fi

View File

@ -152,10 +152,12 @@ fi
source ~/bin/commacd.sh
if [[ ! ${NO_HH} ]]; then
if [ ${NO_HH} != "true" ]; then
# hh / hstr configuration (https://github.com/dvorka/hstr/)
export HH_CONFIG=hicolor # get more colors
if [[ $- =~ .*i.* ]]; then bind '"\C-r": "\C-a hh \C-j"'; fi
if [[ $- =~ .*i.* ]] || [ "${FORCE_HH}" == "true" ]; then
bind '"\C-r": "\C-a hh \C-j"';
fi
fi
# dh_make configuration

View File

@ -1,5 +1,6 @@
youtube-dl -f 'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo/bestaudio' "https://www.youtube.com/watch?v=Hp0cdTXv5Js&feature=youtu.be"
youtube-dl -F "https://www.youtube.com/watch?v=Hp0cdTXv5Js&feature=youtu.be"
xinput --set-prop 12 "libinput Accel Speed" 0.6
find . -iname "*.md" -print0 | xargs -0 -I {} sh -c 'cat "{}" | wc -w' | awk '{s+=$1} END {printf "%.0f", s}'
find . -iname "*.JPG" -or -iname "*.png" | sed 's/^/\\"/g; s/$/\\"/g' | paste -d\ - - - - - - | xargs -I {} -n 1 bash -c 'echo montage -geometry 800x600+10+10 -tile 3x2 {} tiles/$RANDOM.jpeg' | sh
ffmpeg -framerate 0.5 -pattern_type sequence -s 1080x720 -start_number 1 -i frame%d.jpeg -vcodec mpeg4 out.mp4