update youtube-dl scripts
This commit is contained in:
		@@ -690,7 +690,7 @@ http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
 | 
			
		||||
 | 
			
		||||
#+begin_src bash
 | 
			
		||||
if [ $TMUX ]; then
 | 
			
		||||
    tmux split -v -l 1 "cd ~/Downloads/ && youtube-dl --add-metadata -xic -f bestaudio/best $1" && tmux select-pane -U
 | 
			
		||||
    tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -xic -f bestaudio/best $1" && tmux select-pane -U
 | 
			
		||||
else
 | 
			
		||||
    cd ~/Downloads/;
 | 
			
		||||
    setsid nohup youtube-dl --add-metadata -xic -f bestaudio/best $1 &> /dev/null &
 | 
			
		||||
@@ -706,7 +706,7 @@ fi
 | 
			
		||||
 | 
			
		||||
#+begin_src bash
 | 
			
		||||
if [ $TMUX ]; then
 | 
			
		||||
    tmux split -v -l 1 "cd ~/Downloads/ && youtube-dl --add-metadata -ic $1" && tmux select-pane -U
 | 
			
		||||
    tmux split -v -l 5 "cd ~/Downloads/ && youtube-dl --add-metadata -ic $1" && tmux select-pane -U
 | 
			
		||||
else
 | 
			
		||||
    cd ~/Downloads/;
 | 
			
		||||
    setsid nohup youtube-dl --add-metadata -ic $1 &> /dev/null &
 | 
			
		||||
 
 | 
			
		||||
@@ -1427,8 +1427,6 @@ pdfpc is a great tool for showing pdf presentations. It support:
 | 
			
		||||
The idea would be to have a command that changes the theme of all the system.
 | 
			
		||||
 | 
			
		||||
There would be at least one light and one dark theme.
 | 
			
		||||
Applications that could change:
 | 
			
		||||
- [ ] terminal: https://github.com/khamer/base16-termite. TODO: this does not seems to work. Some is takken from config of termite, some from xresources. Also when reload the terminal is does not make the colors well: https://github.com/thestinger/termite/issues/273
 | 
			
		||||
It seems the color is due to this part of the script. Should then source this file somehow.
 | 
			
		||||
 | 
			
		||||
#+begin_src bash
 | 
			
		||||
 
 | 
			
		||||
@@ -21,10 +21,10 @@ https://wiki.archlinux.org/index.php/Newsboat
 | 
			
		||||
https://newsboat.org/releases/2.12/docs/newsboat.html
 | 
			
		||||
 | 
			
		||||
* Config
 | 
			
		||||
  :PROPERTIES:
 | 
			
		||||
  :header-args: :tangle ~/.config/newsboat/config
 | 
			
		||||
  :header-args+: :comments both :mkdirp yes
 | 
			
		||||
  :END:
 | 
			
		||||
:PROPERTIES:
 | 
			
		||||
:header-args: :tangle ~/.config/newsboat/config
 | 
			
		||||
:header-args+: :comments both :mkdirp yes
 | 
			
		||||
:END:
 | 
			
		||||
 | 
			
		||||
** Reload configuration
 | 
			
		||||
#+BEGIN_SRC conf
 | 
			
		||||
@@ -122,7 +122,6 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
 | 
			
		||||
  macro , open-in-browser
 | 
			
		||||
 | 
			
		||||
  # Download Video with Youtube-DL
 | 
			
		||||
  # TODO - Should write a script for that? Maybe open a tmux script if newsboat is in tmux pane?
 | 
			
		||||
  macro t set browser "~/bin/yt-video %u" ; open-in-browser ; set browser "qutebrowser %u"
 | 
			
		||||
 | 
			
		||||
  # Download Audio with Youtube-DL
 | 
			
		||||
@@ -162,10 +161,10 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
 | 
			
		||||
#+END_SRC
 | 
			
		||||
 | 
			
		||||
* Colors
 | 
			
		||||
  :PROPERTIES:
 | 
			
		||||
  :header-args: :tangle ~/.config/newsboat/colors
 | 
			
		||||
  :header-args+: :comments both :mkdirp yes
 | 
			
		||||
  :END:
 | 
			
		||||
:PROPERTIES:
 | 
			
		||||
:header-args: :tangle ~/.config/newsboat/colors
 | 
			
		||||
:header-args+: :comments both :mkdirp yes
 | 
			
		||||
:END:
 | 
			
		||||
 | 
			
		||||
#+BEGIN_SRC conf
 | 
			
		||||
  highlight feedlist    "^  *[0-9]+  *N  "                    cyan     cyan
 | 
			
		||||
@@ -194,10 +193,10 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
 | 
			
		||||
#+END_SRC
 | 
			
		||||
 | 
			
		||||
* URLS
 | 
			
		||||
  :PROPERTIES:
 | 
			
		||||
  :header-args: :tangle ~/.config/newsboat/urls
 | 
			
		||||
  :header-args+: :comments both :mkdirp yes
 | 
			
		||||
  :END:
 | 
			
		||||
:PROPERTIES:
 | 
			
		||||
:header-args: :tangle ~/.config/newsboat/urls
 | 
			
		||||
:header-args+: :comments both :mkdirp yes
 | 
			
		||||
:END:
 | 
			
		||||
 | 
			
		||||
** NEWSFEEDS
 | 
			
		||||
*** Linux
 | 
			
		||||
 
 | 
			
		||||
@@ -103,7 +103,6 @@
 | 
			
		||||
** Snippnets and autocompletion
 | 
			
		||||
#+begin_src vimrc
 | 
			
		||||
  Plug 'SirVer/ultisnips'   " The ultimate snippet solution for Vim
 | 
			
		||||
  " TODO Alternative https://github.com/Shougo/neosnippet.vim
 | 
			
		||||
  Plug 'honza/vim-snippets' " Vim-snipmate default snippets
 | 
			
		||||
#+end_src
 | 
			
		||||
 | 
			
		||||
@@ -1274,7 +1273,7 @@ nnoremap <leader>st :Grepper -tool rg -query TODO<CR>
 | 
			
		||||
let g:which_key_map.s.t = 'search-todos'
 | 
			
		||||
#+end_src
 | 
			
		||||
 | 
			
		||||
** TODO - GIT
 | 
			
		||||
** GIT
 | 
			
		||||
#+begin_src vimrc
 | 
			
		||||
let g:which_key_map.g = { 'name' : '+git' }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user