summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2015-09-12 22:36:11 +0200
committerMichael Cardell Widerkrantz <mc@hack.org>2015-09-12 22:36:11 +0200
commit2b2f41df34fa71d5abc92284141e08d8d743f1e7 (patch)
tree29276c94cc78db7a672b110b0c5dea78f3761135
parentddcb654ed1410f53f32a78f29a2e2f3585fb2493 (diff)
downloadmcwm-2b2f41df34fa71d5abc92284141e08d8d743f1e7.zip
Add menu option "list hidden" which calls the mcicon script and lists
all hidden windows in a 9menu. Select one and it's mapped. Lots of comments on the menu options.
-rwxr-xr-xscripts/mcmenu18
1 files changed, 15 insertions, 3 deletions
diff --git a/scripts/mcmenu b/scripts/mcmenu
index eae8d99..73a8ae4 100755
--- a/scripts/mcmenu
+++ b/scripts/mcmenu
@@ -1,11 +1,23 @@
#! /bin/sh
-exec 9menu -bg grey20 -fg grey80 -popup \
+
+# hide: gives you a new pointer and hides the window you click on.
+#
+# list hidden: Install mcicon somewhere in path so the "list hidden"
+# alternative work. It will then list any iconified windows in a
+# 9menu. Select one and it's mapped again.
+#
+# cpu: Change to the host you usally connect a lot to. Add more ssh
+# hosts as you wish.
+#
+# VGA On/Off: Makes X aware of external screen connected on VGA port.
+#
+# close: Closes the 9menu program.
+exec 9menu -bg grey20 -fg grey80 -font 9x15 -popup \
'hide:xdotool selectwindow windowminimize' \
+ 'list hidden:mcicon' \
'cpu:urxvt -e ssh cpu.example.org' \
':' \
'VGA On: xrandr --output VGA --on' \
'VGA Off: xrandr --output VGA --off' \
':' \
- 'HHKB: xkbcomp -I$HOME/conf/xkb $HOME/conf/xkb/hhkb.xkb $DISPLAY' \
- ':' \
'close:'