tRename thingmenu launcher - scripts - various script and utils
(HTM) git clone git://z3bra.org/scripts
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) commit 86a2b7c3fb6d6edca56de2b4ba3bc9d3f8c1b7b2
(DIR) parent b2f4c41b206183ba8c337c733bd2bb02c9895c14
(HTM) Author: z3bra <willy@mailoo.org>
Date: Wed, 26 Mar 2014 19:38:04 +0100
Rename thingmenu launcher
Diffstat:
A menu | 19 +++++++++++++++++++
D menu.sh | 19 -------------------
2 files changed, 19 insertions(+), 19 deletions(-)
---
(DIR) diff --git a/menu b/menu
t@@ -0,0 +1,19 @@
+#!/bin/sh
+X=1790
+Y=820
+
+if which xdpyinfo >/dev/null; 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 - 10`
+
+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" 2> /dev/null
(DIR) diff --git a/menu.sh b/menu.sh
t@@ -1,19 +0,0 @@
-#!/bin/sh
-X=1790
-Y=820
-
-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"