script cleanup, addition of unicode file

This commit is contained in:
Luke Smith 2018-08-03 16:54:05 -04:00
parent be86d72beb
commit aee57c26f0
5 changed files with 1227 additions and 12 deletions

View file

@ -9,7 +9,6 @@ visual="${1:0:20}"..."${1: -7}"
else else
visual="$1" visual="$1"
fi fi
echo $visual
x=$(echo -e "mpv\nmpv (loop)\nwget\nfeh\nbrowser\nw3m\nmpv (float)" | dmenu -i -p "How should I open '$visual'?") x=$(echo -e "mpv\nmpv (loop)\nwget\nfeh\nbrowser\nw3m\nmpv (float)" | dmenu -i -p "How should I open '$visual'?")
case "$x" in case "$x" in

View file

@ -8,7 +8,8 @@ case $(echo -e "Screencast\nVideo only\nAudio only" | dmenu -i -p "Select record
Screencast) screencast ;; Screencast) screencast ;;
"Audio only") audio ;; "Audio only") audio ;;
"Video only") video ;; "Video only") video ;;
esac ;} esac
echo $! > ~/.larbs/.recordpid ;}
# If already running, will ask to end previous recording. # If already running, will ask to end previous recording.
@ -21,4 +22,4 @@ asktoend;
else else
asktype; asktype;
fi fi
echo $response echo "$response"

View file

@ -4,18 +4,17 @@
newvol="pkill -RTMIN+10 i3blocks" newvol="pkill -RTMIN+10 i3blocks"
# Uncomment if i3mpdupdate isn't running: # Uncomment if i3mpdupdate isn't running:
#newmpd="pkill -RTMIN+11 i3blocks"
case "$1" in case "$1" in
"up") pamixer --allow-boost -i "$2" ; $newvol ;; "up") pamixer --allow-boost -i "$2" ; $newvol ;;
"down") pamixer --allow-boost -d "$2" ; $newvol ;; "down") pamixer --allow-boost -d "$2" ; $newvol ;;
"mute") pamixer --allow-boost -t ; $newvol ;; "mute") pamixer --allow-boost -t ; $newvol ;;
"truemute") pamixer --allow-boost -m ; $newvol ;; "truemute") pamixer --allow-boost -m ; $newvol ;;
"toggle") mpc toggle ; $newmpd ;; "toggle") mpc toggle ;;
"pause") mpc pause ; $newmpd ; pauseallmpv ;; "pause") mpc pause ; pauseallmpv ;;
"forward") mpc seek +"$2" ; $newmpd ;; "forward") mpc seek +"$2" ;;
"back") mpc seek -"$2" ; $newmpd ;; "back") mpc seek -"$2" ;;
"next") mpc next ; $newmpd ;; "next") mpc next ;;
"prev") mpc prev ; $newmpd ;; "prev") mpc prev ;;
"replay") mpc seek 0% ; $newmpd ;; "replay") mpc seek 0% ;;
esac esac

View file

@ -9,4 +9,4 @@ file=$(readlink -f "$1")
dir=$(dirname "$file") dir=$(dirname "$file")
base="${file%.*}" base="${file%.*}"
find $dir -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\.(4tc|xref|tmp|pyc|pyo|fls|vrb|fdb_latexmk|bak|swp|aux|log|synctex\(busy\)|lof|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)" -delete find "$dir" -maxdepth 1 -type f -regextype gnu-awk -regex "^$base\.(4tc|xref|tmp|pyc|pyo|fls|vrb|fdb_latexmk|bak|swp|aux|log|synctex\(busy\)|lof|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)" -delete

1216
.scripts/unicode Normal file

File diff suppressed because it is too large Load diff