This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
#convert a Markdown file to an html file with the same name | |
MFILE=$1 | |
HFILE="${MFILE%.*}.html" | |
STYLE="$HOME/Templates/style.css" | |
if [ "$2" ]; then | |
>&2 echo "Error: Too many arguments" | |
exit 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#A screen capture wrapper. | |
#externally depends on maim, xdotool and xrandr | |
#This script expects one argument from the values ["win", "sel", "all"], | |
#$./screenshot win #captures the current window | |
#$./screenshot sel #captures a user defined rectangle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
#copy pixel color to clipboard | |
grabc | head -n 1 -c -1 | xclip -selection clipboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
#turn stdin into speech | |
gtts-cli -f - | ffplay -i - -nodisp -autoexit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
#stream audio and video from lofi hip hop radio | |
url='https://youtu.be/5qap5aO4i9A' | |
quality=92 | |
buffer=4096 | |
title='lofi hip hop radio' | |
youtube-dl -f $quality --buffer-size $buffer -o - "$url" |\ | |
ffplay -window_title "$title" -i - |