dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit c0563fff769b9195d72f3057f871c02b7a51778b
parent 0dbf155857f36a27b161d1ab2972546f9366b3c7
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Wed, 15 Jan 2020 08:35:30 +0100

Save temporary xdg-open files in open subdir

Diffstat:
M.local/bin/linkhandler | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler @@ -83,6 +83,7 @@ handle_url() { "mpv") nohup mpv -quiet "$url" >/dev/null 2>&1 & ;; "xdg-open") + mkdir -p open && cd open f="$(curl -s --write-out "%{filename_effective}\n" -OL "$url")" nohup xdg-open "$f" >/dev/null 2>&1 & ;; "youtube-dl")