Musomisia -- keyboard-centric tools for Linux desktop users
Mcgr  provides hot-key access for
- launching applications
- focusing running applications
- window layout management.
|||originally abbreviated for "MetaCity Go to or Run", now works with other window managers as well|
Once run, the
mcgr script accepts the followig commands through the
goto-or-run <WM_CLASS> <commandline>
If a window with a matching
WM_CLASS is found, it receives the focus. If
the window is not on the current workspace, the correct workspace is activated
first. If a matching window already has focus, the next window with the same
WM_CLASS is focused instead. Multiple successive calls with the same
WM_CLASS loop over all matching windows.
If no window with a matching
WM_CLASS is found, the command line is run
echo "goto-or-run Firefox firefox -P profilename" >>/tmp/mcgr.fifo
In GNOME key bindings use e.g.:
sh -c "[ -p /tmp/mcgr.fifo ] && echo Firefox firefox -P profilename >>/tmp/mcgr.fifo"