summaryrefslogtreecommitdiff
path: root/ratdm
diff options
context:
space:
mode:
authorTslil Clingman <hiato1@gmail.com>2015-03-02 17:33:27 +0200
committerTslil Clingman <hiato1@gmail.com>2015-03-02 17:33:27 +0200
commit9d755293fbd9155108a70986d140ca061442b4a5 (patch)
treef104c797b71af2208d3ec92daa49e9796de48337 /ratdm
parentf56c05fb1d874ebf02fe20bfe3e51e084f5a8ba3 (diff)
wls now offers to autoconnect to known networks
Diffstat (limited to 'ratdm')
-rwxr-xr-xratdm10
1 files changed, 6 insertions, 4 deletions
diff --git a/ratdm b/ratdm
index 19ea8f2..916386d 100755
--- a/ratdm
+++ b/ratdm
@@ -1,11 +1,13 @@
#!/usr/bin/env sh
-font="-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*"
+font="DejaVu Sans Mono:size=13"
+#"-*-fixed-medium-*-*-*-12-*-*-*-*-*-*-*"
screen=$(ratpoison -c sdump | tr ',' '\n' | grep '1$')
width=$(echo $screen | cut -d ' ' -f 4)
height=$(echo $screen | cut -d ' ' -f 5)
s=$(echo $screen | cut -d ' ' -f 1)
-w=$(($width/3))
-h=$(($height/5*2))
+w=$width #$(($width/2))
+x=0 #$(($width/4))
+y=$(($height/3))
-dmenu -p "Select >" -l 16 -s $s -x $w -y $h -w $w -sb '#0B0' -sf black -nb '#000' -fn $font -i -p foo "$@"
+dmenu -p "Select >" -l 16 -s $s -x $x -y $y -w $w -sb '#0B0' -sf black -nb '#000' -fn "$font" -i -p foo "$@"