diff options
author | sthen | 2009-05-17 17:04:59 +0000 |
---|---|---|
committer | sthen | 2009-05-17 17:04:59 +0000 |
commit | 45b1bd6c4ea47f222e9473807ed7ae379d1abe06 (patch) | |
tree | 835dee4d53088109a42f931c360e8af7bdf5bf36 /conf.c | |
parent | 51a0c06ae5fd3c3c2698460f51dae1fb9af03310 (diff) | |
download | cwm-45b1bd6c4ea47f222e9473807ed7ae379d1abe06.tar.gz |
add a "movetogroup" function, which hides the current window from
display and moves it to another group. useful with the recently added
"grouponly" function, giving the ability to use groups as simple
virtual desktops (similar to e.g. xmonad, dwm and scrotwm).
this doesn't have default keyboard bindings; cwmrc(5) now shows how
you could use these functions (use M-1...9 for grouponly1...9 and
MS-1...9 for movetogroup1...9 to emulate the default dwm bindings).
ok oga@
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -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.59 2009/05/14 16:24:04 oga Exp $ + * $Id: conf.c,v 1.60 2009/05/17 17:04:59 sthen Exp $ */ #include "headers.h" @@ -281,6 +281,24 @@ struct { { "grouponly7", kbfunc_client_grouponly, 0, {.i = 7} }, { "grouponly8", kbfunc_client_grouponly, 0, {.i = 8} }, { "grouponly9", kbfunc_client_grouponly, 0, {.i = 9} }, + { "movetogroup1", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 1} }, + { "movetogroup2", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 2} }, + { "movetogroup3", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 3} }, + { "movetogroup4", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 4} }, + { "movetogroup5", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 5} }, + { "movetogroup6", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 6} }, + { "movetogroup7", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 7} }, + { "movetogroup8", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 8} }, + { "movetogroup9", kbfunc_client_movetogroup, KBFLAG_NEEDCLIENT, + {.i = 9} }, { "nogroup", kbfunc_client_nogroup, 0, {0} }, { "cyclegroup", kbfunc_client_cyclegroup, 0, {.i = CWM_CYCLEGROUP} }, { "rcyclegroup", kbfunc_client_cyclegroup, 0, {.i = CWM_RCYCLEGROUP} }, |