misc
This commit is contained in:
parent
6d54be5aeb
commit
f644a1ddc8
|
|
@ -46,7 +46,7 @@ demuxer-mkv-subtitle-preroll=yes
|
|||
# Use embedded fonts for SSA/ASS subs.
|
||||
embeddedfonts=yes
|
||||
# Backward compatibility for vsfilter fansubs.
|
||||
sub-ass-vsfilter-blur-compat=yes
|
||||
sub-ass-use-video-data=all
|
||||
# Search for external subs in these relative subdirectories.
|
||||
sub-file-paths-append=ass
|
||||
sub-file-paths-append=srt
|
||||
|
|
|
|||
|
|
@ -40,7 +40,8 @@ alias \
|
|||
alias \
|
||||
ga='git add' \
|
||||
gc='git commit' \
|
||||
gp='git push'
|
||||
gp='git push' \
|
||||
gC='git clone'
|
||||
|
||||
ec() {find ~/.config -type f | fzf | xargs -r $EDITOR ;}
|
||||
es() { cd ~/.local/bin; $EDITOR $(fzf) ;}
|
||||
|
|
|
|||
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
|
||||
if [ -t 0 ]; then
|
||||
filename="$(find ~/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | fzf)"
|
||||
filename="$(find ~/media/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | fzf)"
|
||||
else
|
||||
filename="$(find ~/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | dmenu -l 25)"
|
||||
filename="$(find ~/media/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | sort | dmenu -l 25)"
|
||||
fi
|
||||
|
||||
filepath="$(find ~/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)")"
|
||||
filepath="$(find ~/media/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)")"
|
||||
mpv "$(grep "$filename" <<< "$filepath")"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/env bash
|
||||
|
||||
mode=$(autorandr --current)
|
||||
if [[ $mode = 'hybrid' ]]; then
|
||||
if [[ $mode = 'hybridnew' ]]; then
|
||||
alacritty --config-file "$XDG_CONFIG_HOME/alacritty/docked.toml" $*
|
||||
else
|
||||
alacritty --config-file "$XDG_CONFIG_HOME/alacritty/normal.toml" $*
|
||||
|
|
|
|||
Loading…
Reference in New Issue