taggrid

Description

This patch adds an ability to place tags in rows like in many other window managers like xfce ore OpenBox.

Applying

Patch uses drawtagmask flagset to show tags. Two flags can be applied to it:

#define DRAWCLASSICTAGS 1 << 0 this will make patch to draw classic tags row;

#define DRAWTAGGRID 1 << 1`
this will make patch to draw the grid of tags like this:

grid

The patch defines switchtag function which handle global shortcuts to navigate in grid. This function accept unsigned int argument which represents flagset of next flags:

#define SWITCHTAGUP 1 << 0 #define SWITCHTAGDOWN 1 << 1 #define SWITCHTAGLEFT 1 << 2 #define SWITCHTAGRIGHT 1 << 3 this four defines the direction of moving current tags;

#define SWITCHTAGTOGGLETAG 1 << 4 #define SWITCHTAGTAG 1 << 5 #define SWITCHTAGVIEW 1 << 6 #define SWITCHTAGTOGGLEVIEW 1 << 7

this four defines the behaviour of switching. They will make switchtag work like according functions.

Example

Default config file defines nest:

{ MODKEY|ControlMask,           XK_Up,     switchtag,      { .ui = SWITCHTAG_UP     | SWITCHTAG_VIEW } },
{ MODKEY|ControlMask,           XK_Down,   switchtag,      { .ui = SWITCHTAG_DOWN   | SWITCHTAG_VIEW } },
{ MODKEY|ControlMask,           XK_Right,  switchtag,      { .ui = SWITCHTAG_RIGHT  | SWITCHTAG_VIEW } },
{ MODKEY|ControlMask,           XK_Left,   switchtag,      { .ui = SWITCHTAG_LEFT   | SWITCHTAG_VIEW } },

this will simply move set of active tags in specified (UP, DOWN, RIGHT or LEFT) direction by pressing ctrl+alt+ARROW;

{ MODKEY|Mod4Mask,              XK_Up,     switchtag,      { .ui = SWITCHTAG_UP     | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
{ MODKEY|Mod4Mask,              XK_Down,   switchtag,      { .ui = SWITCHTAG_DOWN   | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
{ MODKEY|Mod4Mask,              XK_Right,  switchtag,      { .ui = SWITCHTAG_RIGHT  | SWITCHTAG_TAG | SWITCHTAG_VIEW } },
{ MODKEY|Mod4Mask,              XK_Left,   switchtag,      { .ui = SWITCHTAG_LEFT   | SWITCHTAG_TAG | SWITCHTAG_VIEW } },

this will move active window in specified direction and perform the action, described above.

Download

Author