commit 9480a6661d33eee0c6fe9d753fd18d12ec6ccca0
parent 63de9db030cedb8585044e8856b03bf5a3e228b4
Author: parazyd <parazyd@dyne.org>
Date: Fri, 9 Sep 2016 21:29:56 +0200
small fixes
Diffstat:
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/dmenuwindows b/dmenuwindows
@@ -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
diff --git a/dn b/dn
@@ -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}"
diff --git a/xkcd.py b/xkcd.py
@@ -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'])