summaryrefslogtreecommitdiff
path: root/scripts/mcmenu
blob: 73a8ae480339cd0a684f49086ac441caea0e62f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#! /bin/sh

# 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' \
     ':' \
     'close:'