You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.7 KiB

Pipe-Viewer & Straw-Viewer - Search Youtube via Terminal - Linux CLI

  • tutorial video: Link

config for tmux


vim ~/.tmux.conf

bind-key -T copy-mode-vi 'u' send-keys -X copy-selection \; new-window -n youtube \; send-keys -t youtube 'pipe-viewer "$(tmux show-buffer)" && tmux kill-window' 'Enter'
bind-key -T copy-mode-vi 'U' send-keys -X copy-selection \; new-window -n youtube \; send-keys -t youtube 'straw-viewer "$(tmux show-buffer)" && tmux kill-window' 'Enter'

task-spooler configs for pipe-viewer


vim ~/.config/pipe-viewer/pipe-viewer.conf

video_player_selected => "tsp",
video_players         => {
                           tsp => {
                                    arg => "--ontop --no-border --force-window --autofit=500x280 --geometry=-15-53 --really-quiet --force-media-title=*TITLE* --no-ytdl *VIDEO*",
                                    audio => "--audio-file=*AUDIO*",
                                    cmd => "tsp mpv",
                                    fs => "--fullscreen",
                                    novideo => "--no-video",
                                    srt => "--sub-file=*SUB*",
                                  },

task-spooler configs for straw-viewer


vim ~/.config/straw-viewer/straw-viewer.conf

video_player_selected => "tsp",
video_players         => {
                           tsp => {
                                    arg => "--ontop --no-border --force-window --autofit=500x280 --geometry=-15-53 --really-quiet --title=*TITLE* --no-ytdl",
                                    audio => "--audio-file=*AUDIO*",
                                    cmd => "tsp mpv",
                                    fs => "--fullscreen",
                                    novideo => "--no-video",
                                    srt => "--sub-file=*SUB*",
                                  },

references

Contact

             _   _     _      _
  __ _  ___ | |_| |__ | | ___| |_ _   _
 / _` |/ _ \| __| '_ \| |/ _ \ __| | | |
| (_| | (_) | |_| |_) | |  __/ |_| |_| |
 \__, |\___/ \__|_.__/|_|\___|\__|\__,_|
 |___/