dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 72245c20d82706d9b84cef3521e859f8fd544d2c
parent 4e57a52b496c4f3754b7349add645a07978bb628
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Mon, 15 Feb 2021 10:24:14 +0100

pipe-viewer: update for new version

Diffstat:
Mpipe-viewer/pipe-viewer.conf | 209++++++++++++++++++++++++++++++++++++++++++-------------------------------------
1 file changed, 111 insertions(+), 98 deletions(-)

diff --git a/pipe-viewer/pipe-viewer.conf b/pipe-viewer/pipe-viewer.conf @@ -1,103 +1,116 @@ #!/usr/bin/perl -# CLI Pipe Viewer 0.0.5 - configuration file +# CLI Pipe Viewer 0.0.6 - configuration file our $CONFIG = { - api_host => "auto", - auto_captions => 0, - autoplay_mode => 0, - cache_dir => "$ENV{HOME}/.cache/pipe-viewer", - colors => 1, - comments_order => "top", - confirm => 0, - convert_cmd => "ffmpeg -i *IN* *OUT*", - convert_to => undef, - cookie_file => undef, - copy_caption => 0, - custom_layout => 0, - custom_layout_format => [ - { align => "right", color => "bold", text => "*NO*.", width => 3 }, - { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" }, - { align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" }, - { align => "right", color => "green", text => "*AGE_SHORT*", width => 3 }, - { align => "right", color => "green", text => "*VIEWS_SHORT*", width => 5 }, - { align => "right", color => "blue", text => "*TIME*", width => 8 }, - ], - dash => 1, - date => undef, - debug => 0, - download_and_play => 0, - download_with_wget => 1, - downloads_dir => ".", - env_proxy => 1, - fat32safe => 0, - ffmpeg_cmd => "/usr/local/bin/ffmpeg", - fullscreen => 0, - get_captions => 1, - get_term_width => 1, - hfr => 1, - highlight_color => "bold", - highlight_watched => 1, - history => 0, - history_file => "$ENV{HOME}/.config/pipe-viewer/cli-history.txt", - history_limit => 100000, - http_proxy => undef, - ignore_av1 => 0, - interactive => 1, - keep_original_video => 0, - m4a_audio => 1, - maxResults => 20, - merge_into_mkv => 1, - merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", - merge_with_captions => 1, - order => undef, - page => 1, - prefer_av1 => 0, - prefer_mp4 => 0, - region => undef, - remember_watched => 0, - remove_played_file => 0, - resolution => "best", - results_fixed_width => 0, - results_with_colors => 0, - results_with_details => 0, - show_video_info => 1, - skip_if_exists => 1, - skip_watched => 0, - split_videos => 1, - srt_languages => ["en", "es"], - subscriptions_order => "relevance", - thousand_separator => ",", - timeout => undef, - user_agent => undef, - video_filename_format => "*FTITLE* - *ID*.*FORMAT*", - video_player_selected => "mpv", - video_players => { - mpv => { - arg => "--really-quiet --volume=50 --force-media-title=*TITLE* --no-ytdl *VIDEO*", - audio => "--audio-file=*AUDIO*", - cmd => "/usr/local/bin/mpv", - fs => "--fullscreen", - novideo => "--no-video --no-audio-display", - srt => "--sub-file=*SUB*", - }, - vlc => { - arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*", - audio => "--input-slave=*AUDIO*", - cmd => "vlc", - fs => "--fullscreen", - novideo => "--intf=dummy --novideo", - srt => "--sub-file=*SUB*", - }, - }, - videoCaption => undef, - videoDefinition => undef, - videoDimension => undef, - videoDuration => undef, - videoLicense => undef, - watched_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt", - wget_cmd => "/usr/local/bin/wget", - youtube_video_url => "https://www.youtube.com/watch?v=%s", - ytdl => 1, - ytdl_cmd => "/usr/local/bin/youtube-dl", + api_host => "auto", + auto_captions => 0, + autoplay_mode => 0, + cache_dir => "$ENV{HOME}/.cache/pipe-viewer", + colors => 1, + comments_order => "top", + confirm => 0, + convert_cmd => "ffmpeg -i *IN* *OUT*", + convert_to => undef, + cookie_file => undef, + copy_caption => 0, + custom_channel_layout_format => [ + { align => "right", color => "bold", text => "*NO*.", width => 3 }, + { align => "left", color => "bold blue", text => "*AUTHOR*", width => "55%" }, + { align => "right", color => "green", text => "*VIDEOS* videos", width => 14 }, + { + align => "right", + color => "green", + text => "*SUBS_SHORT* subs", + width => 10, + }, + ], + custom_layout_format => [ + { align => "right", color => "bold", text => "*NO*.", width => 3 }, + { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" }, + { align => "left", color => "yellow", text => "*AUTHOR*", width => "15%" }, + { align => "right", color => "green", text => "*AGE_SHORT*", width => 3 }, + { align => "right", color => "green", text => "*VIEWS_SHORT*", width => 5 }, + { align => "right", color => "blue", text => "*TIME*", width => 8 }, + ], + custom_playlist_layout_format => [ + { align => "right", color => "bold", text => "*NO*.", width => 3 }, + { align => "left", color => "bold blue", text => "*TITLE*", width => "55%" }, + { align => "right", color => "green", text => "*ITEMS* videos", width => 14 }, + { align => "left", color => "magenta", text => "*AUTHOR*", width => "20%" }, + ], + dash => 1, + date => undef, + debug => 0, + download_and_play => 0, + download_with_wget => 1, + downloads_dir => ".", + env_proxy => 1, + fat32safe => 0, + ffmpeg_cmd => "/usr/local/bin/ffmpeg", + fullscreen => 0, + get_captions => 1, + get_term_width => 1, + hfr => 1, + highlight_color => "bold", + highlight_watched => 1, + history => 0, + history_file => "$ENV{HOME}/.config/pipe-viewer/cli-history.txt", + history_limit => 100000, + http_proxy => undef, + ignore_av1 => 0, + interactive => 1, + keep_original_video => 0, + m4a_audio => 1, + maxResults => 20, + merge_into_mkv => 1, + merge_into_mkv_args => "-loglevel warning -c:s srt -c:v copy -c:a copy -disposition:s forced", + merge_with_captions => 1, + order => undef, + page => 1, + prefer_av1 => 0, + prefer_mp4 => 0, + region => undef, + remember_watched => 0, + remove_played_file => 0, + resolution => "best", + show_video_info => 1, + skip_if_exists => 1, + skip_watched => 0, + split_videos => 1, + srt_languages => ["en", "es"], + subscriptions_order => "relevance", + thousand_separator => ",", + timeout => undef, + user_agent => undef, + video_filename_format => "*FTITLE* - *ID*.*FORMAT*", + video_player_selected => "mpv", + video_players => { + mpv => { + arg => "--really-quiet --volume=50 --force-media-title=*TITLE* --no-ytdl *VIDEO*", + audio => "--audio-file=*AUDIO*", + cmd => "/usr/local/bin/mpv", + fs => "--fullscreen", + novideo => "--no-video --no-audio-display", + srt => "--sub-file=*SUB*", + }, + vlc => { + arg => "--quiet --play-and-exit --no-video-title-show --input-title-format=*TITLE* *VIDEO*", + audio => "--input-slave=*AUDIO*", + cmd => "vlc", + fs => "--fullscreen", + novideo => "--intf=dummy --novideo", + srt => "--sub-file=*SUB*", + }, + }, + videoCaption => undef, + videoDefinition => undef, + videoDimension => undef, + videoDuration => undef, + videoLicense => undef, + watched_file => "$ENV{HOME}/.config/pipe-viewer/watched.txt", + wget_cmd => "/usr/local/bin/wget", + youtube_video_url => "https://www.youtube.com/watch?v=%s", + ytdl => 1, + ytdl_cmd => "/usr/local/bin/youtube-dl", }