diff options
| author | Tslil Clingman <hiato1@gmail.com> | 2015-02-18 11:11:36 +0200 |
|---|---|---|
| committer | Tslil Clingman <hiato1@gmail.com> | 2015-02-18 11:11:36 +0200 |
| commit | f56c05fb1d874ebf02fe20bfe3e51e084f5a8ba3 (patch) | |
| tree | 28b3f1a7db40773ef6e623d9e44fa76c5ec08f36 /ratdm | |
| parent | d683f90aacdd77f9736a85bb1c508c826fba092c (diff) | |
Reworked dmenu interaction for uniform interface in ratpoison and surf
Diffstat (limited to 'ratdm')
| -rwxr-xr-x | ratdm | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 "$@" |
