From 2b2f41df34fa71d5abc92284141e08d8d743f1e7 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Sat, 12 Sep 2015 22:36:11 +0200 Subject: 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. --- scripts/mcmenu | 18 +++++++++++++++--- 1 file 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:' -- cgit v1.2.3