update youtube-dl scripts
This commit is contained in:
parent
0db8735eed
commit
570420e81d
@ -690,7 +690,7 @@ http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html
|
|||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
if [ $TMUX ]; then
|
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
|
else
|
||||||
cd ~/Downloads/;
|
cd ~/Downloads/;
|
||||||
setsid nohup youtube-dl --add-metadata -xic -f bestaudio/best $1 &> /dev/null &
|
setsid nohup youtube-dl --add-metadata -xic -f bestaudio/best $1 &> /dev/null &
|
||||||
@ -706,7 +706,7 @@ fi
|
|||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
if [ $TMUX ]; then
|
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
|
else
|
||||||
cd ~/Downloads/;
|
cd ~/Downloads/;
|
||||||
setsid nohup youtube-dl --add-metadata -ic $1 &> /dev/null &
|
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.
|
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.
|
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.
|
It seems the color is due to this part of the script. Should then source this file somehow.
|
||||||
|
|
||||||
#+begin_src bash
|
#+begin_src bash
|
||||||
|
@ -21,10 +21,10 @@ https://wiki.archlinux.org/index.php/Newsboat
|
|||||||
https://newsboat.org/releases/2.12/docs/newsboat.html
|
https://newsboat.org/releases/2.12/docs/newsboat.html
|
||||||
|
|
||||||
* Config
|
* Config
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/newsboat/config
|
:header-args: :tangle ~/.config/newsboat/config
|
||||||
:header-args+: :comments both :mkdirp yes
|
:header-args+: :comments both :mkdirp yes
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
** Reload configuration
|
** Reload configuration
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
@ -122,7 +122,6 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
|
|||||||
macro , open-in-browser
|
macro , open-in-browser
|
||||||
|
|
||||||
# Download Video with Youtube-DL
|
# 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"
|
macro t set browser "~/bin/yt-video %u" ; open-in-browser ; set browser "qutebrowser %u"
|
||||||
|
|
||||||
# Download Audio with Youtube-DL
|
# Download Audio with Youtube-DL
|
||||||
@ -162,10 +161,10 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Colors
|
* Colors
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/newsboat/colors
|
:header-args: :tangle ~/.config/newsboat/colors
|
||||||
:header-args+: :comments both :mkdirp yes
|
:header-args+: :comments both :mkdirp yes
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
highlight feedlist "^ *[0-9]+ *N " cyan cyan
|
highlight feedlist "^ *[0-9]+ *N " cyan cyan
|
||||||
@ -194,10 +193,10 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* URLS
|
* URLS
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/newsboat/urls
|
:header-args: :tangle ~/.config/newsboat/urls
|
||||||
:header-args+: :comments both :mkdirp yes
|
:header-args+: :comments both :mkdirp yes
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
** NEWSFEEDS
|
** NEWSFEEDS
|
||||||
*** Linux
|
*** Linux
|
||||||
|
@ -103,7 +103,6 @@
|
|||||||
** Snippnets and autocompletion
|
** Snippnets and autocompletion
|
||||||
#+begin_src vimrc
|
#+begin_src vimrc
|
||||||
Plug 'SirVer/ultisnips' " The ultimate snippet solution for Vim
|
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
|
Plug 'honza/vim-snippets' " Vim-snipmate default snippets
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
@ -1274,7 +1273,7 @@ nnoremap <leader>st :Grepper -tool rg -query TODO<CR>
|
|||||||
let g:which_key_map.s.t = 'search-todos'
|
let g:which_key_map.s.t = 'search-todos'
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** TODO - GIT
|
** GIT
|
||||||
#+begin_src vimrc
|
#+begin_src vimrc
|
||||||
let g:which_key_map.g = { 'name' : '+git' }
|
let g:which_key_map.g = { 'name' : '+git' }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user