summaryrefslogtreecommitdiff
path: root/ratdm
diff options
context:
space:
mode:
Diffstat (limited to 'ratdm')
-rwxr-xr-xratdm11
1 files changed, 11 insertions, 0 deletions
diff --git a/ratdm b/ratdm
new file mode 100755
index 0000000..19ea8f2
--- /dev/null
+++ b/ratdm
@@ -0,0 +1,11 @@
+#!/usr/bin/env sh
+
+font="-*-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))
+
+dmenu -p "Select >" -l 16 -s $s -x $w -y $h -w $w -sb '#0B0' -sf black -nb '#000' -fn $font -i -p foo "$@"