Change script location

This commit is contained in:
Thomas Dehaeze 2020-03-01 21:37:50 +01:00
parent 2a5979c3aa
commit f71c7e73e4

View File

@ -64,19 +64,19 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
** Notifications
#+BEGIN_SRC conf
notify-format "%n unread articles"
notify-program ~/scripts/newsboat-notify.sh
notify-program ~/.config/newsboat/scripts/newsboat-notify.sh
notify-always no
#+END_SRC
*** Notification Script
:PROPERTIES:
:header-args: :tangle ~/scripts/newsboat-notify.sh
:header-args: :tangle ~/.config/newsboat/scripts/newsboat-notify.sh
:header-args+: :comments both :mkdirp yes
:header-args+: :shebang "#!/usr/bin/env bash"
:END:
#+begin_src bash
dunstify -replace=38492 "Newsbeuter " "$1"
dunstify -replace=38492 "Newsboat " "$1"
#+end_src
** Bindings
@ -123,10 +123,10 @@ https://newsboat.org/releases/2.12/docs/newsboat.html
# 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 "~/scripts/download-video.sh %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
macro a set browser "~/scripts/download-audio.sh %u" ; open-in-browser ; set browser "qutebrowser %u"
macro a set browser "~/bin/yt-audio %u" ; open-in-browser ; set browser "qutebrowser %u"
# Open Video with MPV
macro v set browser "setsid nohup mpv %u &> /dev/null &" ; open-in-browser ; set browser "qutebrowser %u"