tsmall fixes - scripts - random scripts HTML git clone git://parazyd.org/scripts.git DIR Log DIR Files DIR Refs --- DIR commit 9480a6661d33eee0c6fe9d753fd18d12ec6ccca0 DIR parent 63de9db030cedb8585044e8856b03bf5a3e228b4 HTML Author: parazyd <parazyd@dyne.org> Date: Fri, 9 Sep 2016 21:29:56 +0200 small fixes Diffstat: M dmenuwindows | 3 ++- M dn | 3 +++ M xkcd.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) --- DIR diff --git a/dmenuwindows b/dmenuwindows t@@ -7,7 +7,8 @@ normfg="#939393" normbg="#000000" selbg="#800000" selfg="#ffffff" -font="Terminus:size=9" +#font="Terminus:size=9" +font="Tamsyn:pixelsize=12:antialias=true:autohint=true" height=$(wmctrl -l | wc -l) if [[ $height -gt 30 ]]; then DIR diff --git a/dn b/dn t@@ -36,6 +36,9 @@ case $1 in goog|g) stopd chattr off && echo "nameserver 8.8.8.8 # google" > /etc/resolv.conf && chattr on;; + me) + stopd + chattr off && echo "nameserver `ip route get 8.8.8.8 | awk '{print $NF; exit}'`" > /etc/resolv.conf && chattr on;; *) echo "current set as: `awk '{print $4}' /etc/resolv.conf`" echo "usage: `basename $0` {home|out}" DIR diff --git a/xkcd.py b/xkcd.py t@@ -7,4 +7,4 @@ import urllib, json, random latest = 1710 num = str(random.randint(1,latest)) info = json.load(urllib.urlopen("http://www.xkcd.com/" + num + "/info.0.json")) -print info['img'] +print (info['img'])