]> git.rmz.io Git - dotfiles.git/commitdiff
dwb: add script to update github.css
authorSamir Benmendil <samir.benmendil@gmail.com>
Wed, 24 Sep 2014 14:58:27 +0000 (15:58 +0100)
committerSamir Benmendil <samir.benmendil@gmail.com>
Wed, 24 Sep 2014 14:58:27 +0000 (15:58 +0100)
dwb/userstyles/update-github [new file with mode: 0755]

diff --git a/dwb/userstyles/update-github b/dwb/userstyles/update-github
new file mode 100755 (executable)
index 0000000..9728a6f
--- /dev/null
@@ -0,0 +1,12 @@
+#! /bin/bash
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+out="$DIR/github.com.css"
+theme="wombat"
+
+wget "https://github.com/StylishThemes/GitHub-Dark/raw/master/github-dark.css" \
+     "https://github.com/StylishThemes/GitHub-Dark/raw/master/themes/src/pygments-${theme}.css" \
+     -O "$out"
+
+sed '/@-moz-document/d;/^}/d' -i "$out"