-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.bash_aliases.mpv
58 lines (48 loc) · 2.25 KB
/
.bash_aliases.mpv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# vim: ft=bash noet:
! declare 2>&1 | grep -wq ^colors= && [ $BASH_VERSINFO -ge 4 ] && source $initDir/.colors
test "$debug" -gt 0 && echo "=> Running $bold${colors[blue]}$(basename ${BASH_SOURCE[0]})$normal ..."
mpv="command mpv"
# alias mpv="LANG=en_US.utf8 $mpv $mpvDefaultOptions"
mpvnoconfig="mpv --no-config"
alias mpvnoconfig="$mpvnoconfig"
mplayer="command mplayer"
alias mplayer="LANG=en_US.utf8 $mplayer $mplayerDefaultOptions"
mplayernoconfig="mplayer --noconfig=user"
alias mplayernoconfig="$mplayernoconfig"
alias mpvh="mpv --profile=hid"
alias mpvid="mpv --profile=identify"
alias mpvwebcam="$mpv --profile=webcam"
alias mpvYouTubeLIVE='mpv --profile=youtube-live'
alias mpvBEST='mpv --profile=best'
alias mpvFHD='mpv --profile=fhd'
alias mpvHD='mpv --profile=hd'
alias mpvHQ='mpv --profile=hq'
alias mpvFSD='mpv --profile=fsd'
alias mpvSD='mpv --profile=sd'
alias mpvLD='mpv --profile=ld'
alias mpvVLD='mpv --profile=vld'
alias mpvFASTER='mpv --profile=for_slow_hardware'
alias mpvOK.ru='mpv --profile=ok.ru'
alias mpvFreeBoxTV='mpv --profile=freebox-rtsp'
videoExtensions=avi,mp2,mp3,mp4,mkv,mpg,mov
alias mpvfirst='mpv $(\ls -1 -t '*.{$videoExtensions}{,.part}' 2>/dev/null | tail -1)'
alias mpvlast='mpv $(\ls -1 -t '*.{$videoExtensions}{,.part}' 2>/dev/null | head -1)'
alias lslastvideo='echo $(\ls -1 -t '*.{$videoExtensions}{,.part}' 2>/dev/null | head -1)'
alias mpvPlaylistFileBEST='mpvPlaylistFile --profile=best'
alias mpvPlaylistFileFHD='mpvPlaylistFile --profile=fhd'
alias mpvPlaylistFileHD='mpvPlaylistFile --profile=hd'
alias mpvPlaylistFileHQ='mpvPlaylistFile --profile=hq'
alias mpvPlaylistFileFSD='mpvPlaylistFile --profile=fsd'
alias mpvPlaylistFileSD='mpvPlaylistFile --profile=sd'
alias mpvPlaylistFileLD='mpvPlaylistFile --profile=ld'
alias mpvPlaylistFileVLD='mpvPlaylistFile --profile=vld'
alias mpvFrench="mpv --profile=french"
alias mpvEnglish="mpv --profile=english"
alias mpvGerman="mpv --alang=deu --slang=deu"
alias mpvSpanish="mpv --alang=spa --slang=spa"
alias mpvMiniConf="mpv --profile=miniconf"
alias mpvDebug="mpv --profile=debug"
alias youtube-dl="LANG=C.UTF-8 command youtube-dl"
alias yt-dl="LANG=C.UTF-8 command youtube-dl"
set +x
test "$debug" -gt 0 && echo "=> END of $bold${colors[blue]}$(basename ${BASH_SOURCE[0]})$normal"