From fd1feec244c3d4db7bdb0cd566337b022b3905c7 Mon Sep 17 00:00:00 2001 From: oga Date: Thu, 14 May 2009 16:24:04 +0000 Subject: Add a new command (currently no default keybindings for it), grouponly[1-9]. This works like the group select binding, but hides all other groups. So, the people who've been complaining that they don't get "virtual desktops" in cwm may want to try this out in cwmrc (from memory, untested): --- #cwmrc # add new windows to the current group set sticky # automatically sticky windows. xclock for now. # to make more windows sticky use group_toggle to unset their group autogroup 0 xclock # make the group selection keys hide other groups, emulate virtual desktops bind CM-1 grouponly1 bind CM-2 grouponly2 bind CM-3 grouponly3 bind CM-4 grouponly4 bind CM-5 grouponly5 bind CM-6 grouponly6 bind CM-7 grouponly7 bind CM-8 grouponly8 bind CM-9 grouponly9 --- mostly by sthen, tweaks from me. ok todd@, "if it works i'm ok with it" okan@, ok sthen@ --- conf.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index ac4097f..dd4b597 100644 --- a/conf.c +++ b/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: conf.c,v 1.58 2009/05/04 19:13:33 okan Exp $ + * $Id: conf.c,v 1.59 2009/05/14 16:24:04 oga Exp $ */ #include "headers.h" @@ -272,6 +272,15 @@ struct { { "group7", kbfunc_client_group, 0, {.i = 7} }, { "group8", kbfunc_client_group, 0, {.i = 8} }, { "group9", kbfunc_client_group, 0, {.i = 9} }, + { "grouponly1", kbfunc_client_grouponly, 0, {.i = 1} }, + { "grouponly2", kbfunc_client_grouponly, 0, {.i = 2} }, + { "grouponly3", kbfunc_client_grouponly, 0, {.i = 3} }, + { "grouponly4", kbfunc_client_grouponly, 0, {.i = 4} }, + { "grouponly5", kbfunc_client_grouponly, 0, {.i = 5} }, + { "grouponly6", kbfunc_client_grouponly, 0, {.i = 6} }, + { "grouponly7", kbfunc_client_grouponly, 0, {.i = 7} }, + { "grouponly8", kbfunc_client_grouponly, 0, {.i = 8} }, + { "grouponly9", kbfunc_client_grouponly, 0, {.i = 9} }, { "nogroup", kbfunc_client_nogroup, 0, {0} }, { "cyclegroup", kbfunc_client_cyclegroup, 0, {.i = CWM_CYCLEGROUP} }, { "rcyclegroup", kbfunc_client_cyclegroup, 0, {.i = CWM_RCYCLEGROUP} }, -- cgit v1.2.3-2-gb3c3