update configs (sorry)
This commit is contained in:
parent
8c1192a148
commit
514a358deb
6 changed files with 26 additions and 8 deletions
2
aliases
2
aliases
|
@ -57,7 +57,7 @@ alias -g .......='../../../../../..'
|
||||||
alias -g ........='../../../../../../..'
|
alias -g ........='../../../../../../..'
|
||||||
# Hackish tweaks
|
# Hackish tweaks
|
||||||
alias steam-wine="WINEDEBUG=-all wine $WINEPREFIX/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-dwrite -no-cef-sandbox &"
|
alias steam-wine="WINEDEBUG=-all wine $WINEPREFIX/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-dwrite -no-cef-sandbox &"
|
||||||
alias minecraft='java -jar $HOME/.minecraft/launcher.jar'
|
alias minecraft='prismlauncher'
|
||||||
alias rot13="tr '[A-Za-z]' '[N-ZA-Mn-za-m]'"
|
alias rot13="tr '[A-Za-z]' '[N-ZA-Mn-za-m]'"
|
||||||
alias shuffle='mpv --shuffle --display-tags= --no-audio-display'
|
alias shuffle='mpv --shuffle --display-tags= --no-audio-display'
|
||||||
alias steam="LD_PRELOAD='/usr/\$LIB/libstdc++.so.6 /usr/\$LIB/libgcc_s.so.1 /usr/\$LIB/libxcb.so.1 /usr/\$LIB/libgpg-error.so' /usr/bin/steam"
|
alias steam="LD_PRELOAD='/usr/\$LIB/libstdc++.so.6 /usr/\$LIB/libgcc_s.so.1 /usr/\$LIB/libxcb.so.1 /usr/\$LIB/libgpg-error.so' /usr/bin/steam"
|
||||||
|
|
|
@ -15,4 +15,6 @@ if [ "$1" = "-l" ]; then
|
||||||
quality=360
|
quality=360
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mpv --ytdl-format="bestvideo[height<=?$quality]+bestaudio/best" "$@" 2>&1 | grep 'ERROR:' | notify_err
|
# https://github.com/mpv-player/mpv/issues/4241
|
||||||
|
#mpv --ytdl-format="bestvideo[height<=?$quality]+bestaudio/best" "$@" 2>&1 | grep 'ERROR:' | notify_err
|
||||||
|
mpv --ytdl-format="bestvideo[height<=?$quality][fps<=?30][vcodec!=?vp9]+bestaudio/best[height<=?$quality]" "$@" 2>&1 | grep 'ERROR:' | notify_err
|
||||||
|
|
|
@ -1,11 +1,15 @@
|
||||||
#!/usr/bin/perl
|
#!/usr/bin/perl
|
||||||
|
|
||||||
# CLI Pipe Viewer 0.2.1 - configuration file
|
# CLI Pipe Viewer 0.4.5 - configuration file
|
||||||
|
|
||||||
|
use utf8;
|
||||||
|
|
||||||
our $CONFIG = {
|
our $CONFIG = {
|
||||||
api_host => "auto",
|
api_host => "auto",
|
||||||
|
audio_quality => "best",
|
||||||
auto_captions => 0,
|
auto_captions => 0,
|
||||||
autoplay_mode => 0,
|
autoplay_mode => 0,
|
||||||
|
bypass_age_gate_native => 0,
|
||||||
bypass_age_gate_with_proxy => 0,
|
bypass_age_gate_with_proxy => 0,
|
||||||
cache_dir => "$ENV{HOME}/.cache/pipe-viewer",
|
cache_dir => "$ENV{HOME}/.cache/pipe-viewer",
|
||||||
colors => 1,
|
colors => 1,
|
||||||
|
@ -49,10 +53,12 @@ our $CONFIG = {
|
||||||
downloads_dir => ".",
|
downloads_dir => ".",
|
||||||
env_proxy => 1,
|
env_proxy => 1,
|
||||||
fat32safe => 0,
|
fat32safe => 0,
|
||||||
|
features => [],
|
||||||
ffmpeg_cmd => "/usr/bin/ffmpeg",
|
ffmpeg_cmd => "/usr/bin/ffmpeg",
|
||||||
force_fallback => 0,
|
force_fallback => 0,
|
||||||
fullscreen => 0,
|
fullscreen => 0,
|
||||||
get_captions => 1,
|
get_captions => 1,
|
||||||
|
get_subscriptions_in_parallel => 0,
|
||||||
get_term_width => 1,
|
get_term_width => 1,
|
||||||
hfr => 1,
|
hfr => 1,
|
||||||
highlight_color => "bold",
|
highlight_color => "bold",
|
||||||
|
@ -111,14 +117,12 @@ our $CONFIG = {
|
||||||
srt => "--sub-file=*SUB*",
|
srt => "--sub-file=*SUB*",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
videoCaption => undef,
|
|
||||||
videoDefinition => undef,
|
|
||||||
videoDimension => undef,
|
|
||||||
videoDuration => undef,
|
videoDuration => undef,
|
||||||
videoLicense => undef,
|
|
||||||
watch_history => 1,
|
watch_history => 1,
|
||||||
watch_history_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt",
|
watch_history_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt",
|
||||||
wget_cmd => "/usr/bin/wget",
|
wget_cmd => "/usr/bin/wget",
|
||||||
|
youtube_channel_url => "https://www.youtube.com/channel/%s",
|
||||||
|
youtube_playlist_url => "https://www.youtube.com/playlist?list=%s",
|
||||||
youtube_video_url => "https://www.youtube.com/watch?v=%s",
|
youtube_video_url => "https://www.youtube.com/watch?v=%s",
|
||||||
ytdl => 1,
|
ytdl => 1,
|
||||||
ytdl_cmd => "/usr/bin/yt-dlp",
|
ytdl_cmd => "/usr/bin/yt-dlp",
|
||||||
|
|
|
@ -11,5 +11,5 @@
|
||||||
|
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
top.location.hostname = "nitter.fdn.fr";
|
top.location.hostname = "nitter.privacydev.net";
|
||||||
})();
|
})();
|
||||||
|
|
6
vimrc
6
vimrc
|
@ -71,6 +71,12 @@ if has("unix") || has("mac")
|
||||||
Plugin 'tcbbd/detectindent'
|
Plugin 'tcbbd/detectindent'
|
||||||
let g:detectindent_preferred_indent=4
|
let g:detectindent_preferred_indent=4
|
||||||
let g:detectindent_autodetect=1
|
let g:detectindent_autodetect=1
|
||||||
|
|
||||||
|
"[Allow writing of unwritable file with sudo, until neovim#1716 is fixed]"
|
||||||
|
if has('nvim')
|
||||||
|
Plugin 'lambdalisue/suda.vim'
|
||||||
|
let g:suda_smart_edit = 1
|
||||||
|
endif
|
||||||
call vundle#end()
|
call vundle#end()
|
||||||
endif
|
endif
|
||||||
" Allow backspacing over everything in insert mode.
|
" Allow backspacing over everything in insert mode.
|
||||||
|
|
6
zshrc
6
zshrc
|
@ -20,6 +20,12 @@ export PATH="$PATH:$RC_PATH/bin:~/bin:/opt/cuda/bin:~/.cargo/bin:~/go/bin"
|
||||||
# Prevent golang from littering $HOME and force it to follow XDG
|
# Prevent golang from littering $HOME and force it to follow XDG
|
||||||
export GOPATH="$HOME/.local/share/go"
|
export GOPATH="$HOME/.local/share/go"
|
||||||
|
|
||||||
|
# Use all cores when building with cmake (using number of physical cores)
|
||||||
|
# https://unix.stackexchange.com/a/377945/248368
|
||||||
|
# TODO Check if we should use virtual cores count instead
|
||||||
|
cores="$(cat /proc/cpuinfo | grep -c "cpu cores")"
|
||||||
|
export CMAKE_BUILD_PARALLEL_LEVEL="$cores"
|
||||||
|
|
||||||
# Add ruby gems to path
|
# Add ruby gems to path
|
||||||
if which ruby >/dev/null && which gem >/dev/null; then
|
if which ruby >/dev/null && which gem >/dev/null; then
|
||||||
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
|
PATH="$(ruby -r rubygems -e 'puts Gem.user_dir')/bin:$PATH"
|
||||||
|
|
Loading…
Reference in a new issue