summaryrefslogtreecommitdiff
path: root/ar
diff options
context:
space:
mode:
Diffstat (limited to 'ar')
-rw-r--r--ar/.config/newsboat/config2
-rw-r--r--ar/.config/pipe-viewer/pipe-viewer.conf143
-rw-r--r--ar/.config/shell/aliasrc6
-rw-r--r--ar/.config/shell/bm-dirs1
-rw-r--r--ar/.config/shell/bm-files1
-rw-r--r--ar/.config/youtube-viewer/youtube-viewer.conf141
6 files changed, 147 insertions, 147 deletions
diff --git a/ar/.config/newsboat/config b/ar/.config/newsboat/config
index a718b41..94e30fa 100644
--- a/ar/.config/newsboat/config
+++ b/ar/.config/newsboat/config
@@ -37,7 +37,7 @@ macro v set browser "setsid -f mpv" ; open-in-browser ; set browser linkhandler
macro V set browser "qndl -v" ; open-in-browser ; set browser linkhandler ; -- "Download a video file via qndl"
macro w set browser "firefox" ; open-in-browser ; set browser linkhandler ; -- "Open url in browser"
macro y set browser "echo %u | xclip -r -sel c" ; open-in-browser ; set browser linkhandler ; -- "Copy url to clipboard"
-macro Y set browser "youtube-viewer ; --comments=%u" ; open-in-browser ; set browser linkhandler -- "Open youtube comments via youtube-viewer"
+macro Y set browser "pipe-viewer ; --comments=%u" ; open-in-browser ; set browser linkhandler -- "Open youtube comments via youtube-viewer"
color listnormal cyan default
color listfocus black yellow standout bold
diff --git a/ar/.config/pipe-viewer/pipe-viewer.conf b/ar/.config/pipe-viewer/pipe-viewer.conf
new file mode 100644
index 0000000..8b73cf2
--- /dev/null
+++ b/ar/.config/pipe-viewer/pipe-viewer.conf
@@ -0,0 +1,143 @@
+#!/usr/bin/perl
+
+# CLI Pipe Viewer 0.5.4 - configuration file
+
+use utf8;
+
+our $CONFIG = {
+ api_host => "auto",
+ audio_quality => "best",
+ auto_captions => 0,
+ autoplay_mode => 0,
+ bypass_age_gate_native => 0,
+ bypass_age_gate_with_proxy => 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 => "magenta", 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_in_subdir => 0,
+ download_in_subdir_format => "*AUTHOR*",
+ download_with_wget => 1,
+ download_with_ytdl => 1,
+ downloads_dir => ".",
+ env_proxy => 1,
+ fat32safe => 0,
+ features => [],
+ ffmpeg_cmd => "/usr/bin/ffmpeg",
+ force_fallback => 0,
+ fullscreen => 0,
+ get_captions => 1,
+ get_subscriptions_in_parallel => 0,
+ get_term_width => 1,
+ hfr => 1,
+ highlight_color => "bold",
+ highlight_watched => 1,
+ history => 0,
+ history_file => "$ENV{HOME}/.local/share/history/pipe_viewer/history.txt",
+ history_limit => 100000,
+ http_proxy => undef,
+ ignore_av1 => 0,
+ ignored_projections => [],
+ interactive => 1,
+ keep_original_video => 0,
+ local_playlist_limit => -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_invidious => 0,
+ prefer_m4a => 0,
+ prefer_mp4 => 0,
+ region => undef,
+ remove_played_file => 0,
+ resolution => "best",
+ saved_channels_file => "$ENV{HOME}/.local/share/pipe-viewer/users.txt",
+ set_mtime => 1,
+ show_video_info => 1,
+ skip_if_exists => 1,
+ skip_watched => 0,
+ split_videos => 1,
+ srt_languages => ["en", "es"],
+ subscribed_channels_file => "$ENV{HOME}/.local/share/pipe-viewer/subscribed_channels.txt",
+ subscription_results => "uploads",
+ subscriptions_lifetime => 600,
+ subscriptions_limit => 10000,
+ thousand_separator => ",",
+ timeout => undef,
+ user_agent => undef,
+ video_filename_format => "*TITLE* - *ID*.*FORMAT*",
+ video_player_selected => "mpv",
+ video_players => {
+ mpv => {
+ arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*",
+ audio => "--audio-file=*AUDIO*",
+ cmd => "/usr/bin/mpv",
+ fs => "--fullscreen",
+ novideo => "--no-video",
+ srt => "--sub-file=*SUB*",
+ },
+ mpvraw => {
+ arg => "--ytdl-raw-options-append=\"format-sort=ext,res:*RESOLUTION*\" *URL*",
+ cmd => "mpv",
+ fs => "--fullscreen",
+ novideo => "--no-video",
+ 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*",
+ },
+ },
+ videoDuration => undef,
+ watch_history => 1,
+ watch_history_file => "$ENV{HOME}/.local/share/history/pipe-viewer/watched.txt",
+ 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",
+ ytdl => 1,
+ ytdl_cmd => "/usr/bin/yt-dlp",
+ ytdlp_comments => 1,
+ ytdlp_max_comments => 10,
+ ytdlp_max_replies => 3,
+}
diff --git a/ar/.config/shell/aliasrc b/ar/.config/shell/aliasrc
index 0a58ad3..0a757d7 100644
--- a/ar/.config/shell/aliasrc
+++ b/ar/.config/shell/aliasrc
@@ -311,6 +311,9 @@ command -v pacman > /dev/null 2>&1 && {
# pass
alias potp='pass otp totp-secret'
+# pipe-viewer
+alias yt='pipe-viewer'
+
# ps
ialias ps='ps auxf'
alias psj='ps aux | grep "[j]ava"'
@@ -456,9 +459,6 @@ ialias wget --hsts-file="${XDG_CACHE_HOME:-${HOME}/.cache}/wget-hsts"
# xrandr
alias xauto='xrandr --auto'
-# youtube-viewer
-alias yt='youtube-viewer'
-
# zathura
alias za='zathura'
diff --git a/ar/.config/shell/bm-dirs b/ar/.config/shell/bm-dirs
index 9da1143..263290c 100644
--- a/ar/.config/shell/bm-dirs
+++ b/ar/.config/shell/bm-dirs
@@ -37,7 +37,6 @@ cts ${XDG_CONFIG_HOME:-${HOME}/.config}/TheSiahxyz/lua/thesiahxyz
cvc ${XDG_CONFIG_HOME:-${HOME}/.config}/vim
cvp ${XDG_CONFIG_HOME:-${HOME}/.config}/openvpn
cxc ${XDG_CONFIG_HOME:-${HOME}/.config}/x11
-cyv ${XDG_CONFIG_HOME:-${HOME}/.config}/youtube-viewer
czc ${XDG_CONFIG_HOME:-${HOME}/.config}/zsh
dot ${XDG_DOTFILES_DIR:-${HOME}/.dotfiles}
Esm /etc/samba
diff --git a/ar/.config/shell/bm-files b/ar/.config/shell/bm-files
index 9e1f337..6abcb01 100644
--- a/ar/.config/shell/bm-files
+++ b/ar/.config/shell/bm-files
@@ -43,7 +43,6 @@ vvw ${XDG_DATA_HOME:-${HOME}/.local/share}/vimwiki
vxc ${XDG_CONFIG_HOME:-${HOME}/.config}/x11/xinitrc # X11 config
vxp ${XDG_CONFIG_HOME:-${HOME}/.config}/x11/xprofile # Start up - X11 profile
vxr ${XDG_CONFIG_HOME:-${HOME}/.config}/x11/xresources # Colors, themes and variables for X11
-vya ${XDG_CONFIG_HOME:-${HOME}/.config}/youtube-viewer/api.json # API config for youtube-viewer
vza ${XDG_CONFIG_HOME:-${HOME}/.config}/shell/aliasrc # Aliases used by zsh (and potentially other shells)
vzc ${ZDOTDIR:-${XDG_CONFIG_HOME:-${HOME}/.config}/zsh}/.zshrc # Zsh config
vzk ${ZDOTDIR:-${XDG_CONFIG_HOME:-${HOME}/.config}/zsh}/keymaps.zsh # Zsh keymaps
diff --git a/ar/.config/youtube-viewer/youtube-viewer.conf b/ar/.config/youtube-viewer/youtube-viewer.conf
deleted file mode 100644
index f7af0ee..0000000
--- a/ar/.config/youtube-viewer/youtube-viewer.conf
+++ /dev/null
@@ -1,141 +0,0 @@
-#!/usr/bin/perl
-
-# YouTube Viewer 3.11.4 - configuration file
-
-use utf8;
-
-our $CONFIG = {
- audio_quality => "best",
- auto_captions => 0,
- autolike_watched => 0,
- autoplay_mode => 0,
- bypass_age_gate_native => 0,
- bypass_age_gate_with_proxy => 0,
- cache_dir => "$ENV{HOME}/.cache/youtube-viewer",
- colors => 1,
- comments_order => "time",
- 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 => "*TITLE*", width => "55%" },
- { align => "right", color => "yellow", text => "*AGE_SHORT*", width => 3 },
- {
- align => "right",
- color => "magenta",
- 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 => "magenta", 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_segmented => 1,
- debug => 0,
- download_and_play => 0,
- download_in_subdir => 0,
- download_in_subdir_format => "*AUTHOR*",
- download_with_wget => 1,
- download_with_ytdl => 1,
- downloads_dir => ".",
- env_proxy => 1,
- fat32safe => 0,
- ffmpeg_cmd => "/usr/bin/ffmpeg",
- force_fallback => 0,
- fullscreen => 0,
- get_captions => 1,
- get_term_width => 1,
- hfr => 1,
- highlight_color => "bold",
- highlight_watched => 1,
- history => 1,
- history_file => "$ENV{HOME}/.local/share/history/youtube_viewer_history.txt",
- history_limit => 100000,
- hl => "en_US",
- http_proxy => undef,
- ignore_av1 => 0,
- ignored_projections => [],
- interactive => 1,
- keep_original_video => 0,
- 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_m4a => 0,
- prefer_mp4 => 0,
- publishedAfter => undef,
- publishedBefore => undef,
- regionCode => undef,
- remove_played_file => 0,
- resolution => "best",
- safeSearch => undef,
- saved_videos_file => "$ENV{HOME}/.config/youtube-viewer/playlists/saved_videos.txt",
- set_mtime => 1,
- show_video_info => 1,
- skip_if_exists => 1,
- skip_watched => 0,
- split_videos => 1,
- srt_languages => ["en", "es"],
- subscription_videos_per_channel => 20,
- subscriptions_order => "relevance",
- thousand_separator => ",",
- timeout => undef,
- user_agent => undef,
- video_filename_format => "*FTITLE* - *ID*.*FORMAT*",
- video_min_seconds => 0,
- video_player_selected => "mpv",
- video_players => {
- mpv => {
- arg => "--really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*",
- audio => "--audio-file=*AUDIO*",
- cmd => "/usr/bin/mpv",
- fs => "--fullscreen",
- novideo => "--no-video",
- 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,
- videoSyndicated => undef,
- watch_history => 1,
- watch_history_file => "$ENV{HOME}/.local/share/history/youtube_viewer_watched_history.txt",
- wget_cmd => "/usr/bin/wget",
- youtube_users_file => "$ENV{HOME}/.config/youtube-viewer/youtube_users.txt",
- youtube_video_url => "https://www.youtube.com/watch?v=%s",
- ytdl => 1,
- ytdl_cmd => "/usr/bin/yt-dlp",
-}