summaryrefslogtreecommitdiff
path: root/ratdm
blob: bacbef5d58468f2abeda6cd061b2c3a7d643e301 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env sh

font="DejaVu Sans Mono:size=20"
nb='grey10'
nf='grey'
sb=grey
sf='black'

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/2))
x=$(($width/4))
y=$(($height/3))

dmenu -p "Select >" -l 16 -m $s -x $x -y $y -w $w -sb $sb -sf $sf -nb $nb -nf $nf -fn "$font" -i "$@"