From cd173146e98e9acb5c5cb4eea861019cc796932e Mon Sep 17 00:00:00 2001 From: defanor Date: Wed, 13 Dec 2017 17:32:02 +0300 Subject: Add pancake configuration --- .config/pancake/config.yaml | 68 +++++++++++++++++++++++++++++++ .config/pancake/unclutter/duckduckgo.xsl | 24 +++++++++++ .config/pancake/unclutter/hacker-news.xsl | 33 +++++++++++++++ .config/pancake/unclutter/lobsters.xsl | 20 +++++++++ 4 files changed, 145 insertions(+) create mode 100644 .config/pancake/config.yaml create mode 100644 .config/pancake/unclutter/duckduckgo.xsl create mode 100644 .config/pancake/unclutter/hacker-news.xsl create mode 100644 .config/pancake/unclutter/lobsters.xsl (limited to '.config/pancake') diff --git a/.config/pancake/config.yaml b/.config/pancake/config.yaml new file mode 100644 index 0000000..33d01ec --- /dev/null +++ b/.config/pancake/config.yaml @@ -0,0 +1,68 @@ +externalViewers: + ogg: xdg-open "${FILE}" + xspf: xdg-open "${FILE}" + jpg: xdg-open "${FILE}" + cabal: emacsclient -n "${FILE}" + jpeg: xdg-open "${FILE}" + gif: xdg-open "${FILE}" + hs: emacsclient -n "${FILE}" + mp3: xdg-open "${FILE}" + el: emacsclient -n "${FILE}" + idr: emacsclient -n "${FILE}" + mpeg: xdg-open "${FILE}" + svg: xdg-open "${FILE}" + pdf: xdg-open "${FILE}" + scm: emacsclient -n "${FILE}" + webm: xdg-open "${FILE}" + h: emacsclient -n "${FILE}" + wav: xdg-open "${FILE}" + mkv: xdg-open "${FILE}" + c: emacsclient -n "${FILE}" + m3u: xdg-open "${FILE}" + ogv: xdg-open "${FILE}" + mp4: xdg-open "${FILE}" + png: xdg-open "${FILE}" +indentDivs: false +commands: + gopher: ! 'curl "${URI}" -w " + + -pancake- + + "' + ssh: ! 'scp "${URI_REGNAME}:${URI_PATH}" /dev/stdout && echo -e '' + + -pancake-''' + web-archive: ! 'curl --compressed -4 -L -w " + + -pancake- + + uri: %{url_effective} + + type: %{content_type} + + " "$(curl "https://archive.org/wayback/available${URI_QUERY}" | jq -r ''.archived_snapshots.closest.url'')"' +referenceDigits: 'rstwfpxcvaqzdgb' +shortcuts: + g: https://m.gutenberg.org/ebooks/search.mobile/?query= + ddg: https://duckduckgo.com/lite/?q= + wt: https://en.m.wiktionary.org/w/index.php?search= + wa: web-archive:///?url= + wp: https://en.m.wikipedia.org/wiki/Special:Search?search= + gp: gopher://gopherpedia.com:70/7/lookup? + vs: gopher://gopher.floodgap.com/7/v2/vs? + xiph: http://dir.xiph.org/search?search= +unclutter: + hacker-news: ^https://news\.ycombinator\.com/((news|show|ask).*)?$ + duckduckgo: ^https://duckduckgo.com/lite/\?q= + lobsters: ^https://lobste.rs/((page|recent|newest).*)?$ +defaultCommand: ! 'curl --compressed -4 -L -w " + + -pancake- + + uri: %{url_effective} + + type: %{content_type} + + " "${URI}"' +historyDepth: 100 +paginate: true diff --git a/.config/pancake/unclutter/duckduckgo.xsl b/.config/pancake/unclutter/duckduckgo.xsl new file mode 100644 index 0000000..7db8766 --- /dev/null +++ b/.config/pancake/unclutter/duckduckgo.xsl @@ -0,0 +1,24 @@ + + + + + + + DuckDuckGo + + +
+
+ + + +
+ +
+ +
+
+ + +
+
diff --git a/.config/pancake/unclutter/hacker-news.xsl b/.config/pancake/unclutter/hacker-news.xsl new file mode 100644 index 0000000..0e1fb63 --- /dev/null +++ b/.config/pancake/unclutter/hacker-news.xsl @@ -0,0 +1,33 @@ + + + + + + + Hacker News + + + + + +
+
+ + + +
+
+ +
+ + | + + + +
+
+
+ + +
+
diff --git a/.config/pancake/unclutter/lobsters.xsl b/.config/pancake/unclutter/lobsters.xsl new file mode 100644 index 0000000..69a85a1 --- /dev/null +++ b/.config/pancake/unclutter/lobsters.xsl @@ -0,0 +1,20 @@ + + + + + + + Lobsters + +

+ +
+ + | + +

+
+ + +
+
-- cgit v1.2.3