dot

packages and services management
Log | Files | Refs | README

commit e95a4a2899b41c912c7f64ab152e095657e52efd
parent f0535ea6d83638e20b87e06d588cead029705b50
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon,  2 Apr 2018 15:36:23 +0200

fix quark setup

Diffstat:
Dbin/rfc-cleanup | 6------
Mbin/xdg-open | 10++++++++--
Mrun/quark/run | 9++++-----
3 files changed, 12 insertions(+), 13 deletions(-)

diff --git a/bin/rfc-cleanup b/bin/rfc-cleanup @@ -1,6 +0,0 @@ -#!/usr/bin/awk -f - -BEGIN { RS = ""; ORS = "\n\n"; } -/\x0c/ { n = 2; } -n > 0 { n--; next; } - { print; } diff --git a/bin/xdg-open b/bin/xdg-open @@ -51,6 +51,9 @@ esac [ "$file" ] && mkdir -p "$(dirname "$file")" case "$1" in +(rfc://*) + exec xdg-abduco rfc "$host" + ;; (git://*) user="" case "$1" in @@ -82,20 +85,23 @@ case "$1" in ;; (http://*|https://*) case "$host" in - (*vimeo.com*|*youtube.com*|*youtu.be*|*openload.co*) + (*vimeo.com|*youtube.com|*youtu.be|*openload.co) mkdir -p "$HOME/lib/video/$host" cd "$HOME/lib/video/$host" file="$PWD/$(youtube-dl --get-filename "$1")" youtube-dl "$1" exec "$0" "$file" ;; - (*bandcamp.com*) + (*bandcamp.com) mkdir -p "$HOME/lib/music/$host" cd "$HOME/lib/music/$host" file="$PWD/$(youtube-dl --get-filename "$1")" youtube-dl "$1" exec "$0" "$file" ;; + (tools.ietf.org) + exec xdg-abduco rfc "$1" + ;; (*) if [ "$file" ] then diff --git a/run/quark/run b/run/quark/run @@ -1,11 +1,10 @@ #!/bin/sh -e path="$HOME/srv" -port="80" +port="8080" exec 2>&1 exec quark -l -h localhost -p "$port" -d "$path" \ - -v 'josuah.net josuah.net$ josuah.net '"$path" \ - -v 'cyberia.systems cyberia.systems$ cyberia.systems '"$path" \ - -v 'atelier-fu.fr atelier-fu\.fr$ atelier-fu.fr '"$path" - +-v 'josuah.net josuah\.net$ josuah.net' \ +-v 'cyberia.systems cyberia\.systems$ cyberia.systems' \ +-v 'atelier-fu.fr atelier-fu\.fr$ atelier-fu.fr'