tMenu fits to every screen - scripts - various script and utils
 (HTM) git clone git://z3bra.org/scripts
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) commit aee2a38fe1df0c8947aacfe12a7f40209a15f72b
 (DIR) parent 5752ad6c29a72b62dce8463308069026b4390546
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Wed, 19 Mar 2014 13:24:51 +0100
       
       Menu fits to every screen
       
       Diffstat:
         M menu.sh                             |      27 +++++++++++++++++----------
       
       1 file changed, 17 insertions(+), 10 deletions(-)
       ---
 (DIR) diff --git a/menu.sh b/menu.sh
       t@@ -1,12 +1,19 @@
        #!/bin/sh
       +X=1790
       +Y=820
        
       -thingmenu \
       -"tmnl" "urxvt" \
       -" --- " "true" \
       -"mail" "urxvt -e mail" \
       -"www" "dwb" \
       -"instagram" "~/bin/instagram" \
       -"    ---    " "true" \
       -"restart" "pkill 2bwm;2bwm" \
       -"quit" "pkill xclock" \
       -"off" "poweroff"
       +if which xdpyinfo; then
       +    dimensions=`xdpyinfo -ext XINERAMA | grep 'head #0' | sed 's/^  head #//p'`
       +
       +    IFS=' :x@,' read i w h x y <<< "$dimensions"
       +fi
       +
       +X=`expr ${w} - 120 - 10`
       +Y=`expr ${h} - 240 - 20`
       +
       +thingmenu -x -s -g 120x120+${X}+${Y} \
       +    "pop a terminal"    "urxvt" \
       +    "browse the web"    "surf || dwb" \
       +    "view a pdf"        "mupdf || zathura" \
       +    "play a game"       "steam" \
       +    "restart 2bwm"      "pkill 2bwm; 2bwm"