mirror of
https://github.com/0intro/wmii
synced 2025-03-11 09:12:53 +03:00
removed $MODKEY-Shift-n, instead new columns are created on column boundaries on move prev/next respectively, seems more natural and reduces 1 keybinding
This commit is contained in:
parent
446c4e7c0c
commit
99ca533ca7
@ -545,23 +545,29 @@ send2area_client(Client *c, char *arg)
|
||||
|
||||
if(i == -1)
|
||||
return;
|
||||
if(!strncmp(arg, "new", 4) && i) {
|
||||
if(a->frame.size == 1 || v->area.size - 1 >= rect.width / MIN_COLWIDTH)
|
||||
return;
|
||||
to = alloc_area(v);
|
||||
arrange_view(v, True);
|
||||
}
|
||||
else if(!strncmp(arg, "prev", 5) && i) {
|
||||
if(i == 1)
|
||||
to = v->area.data[v->area.size - 1];
|
||||
|
||||
if(!strncmp(arg, "prev", 5) && i) {
|
||||
if(i == 1) {
|
||||
Area *p, *n;
|
||||
unsigned int j;
|
||||
p = to = alloc_area(v);
|
||||
for(j = 1; j < v->area.size; j++) {
|
||||
n = v->area.data[j];
|
||||
v->area.data[j] = p;
|
||||
p = n;
|
||||
}
|
||||
arrange_view(v, True);
|
||||
}
|
||||
else
|
||||
to = v->area.data[i - 1];
|
||||
}
|
||||
else if(!strncmp(arg, "next", 5) && i) {
|
||||
if(i < v->area.size - 1)
|
||||
to = v->area.data[i + 1];
|
||||
else
|
||||
to = v->area.data[1];
|
||||
else {
|
||||
to = alloc_area(v);
|
||||
arrange_view(v, True);
|
||||
}
|
||||
}
|
||||
else if(!strncmp(arg, "toggle", 7)) {
|
||||
if(i)
|
||||
|
@ -70,7 +70,6 @@ $MODKEY-Return
|
||||
$MODKEY-Shift-h
|
||||
$MODKEY-Shift-l
|
||||
$MODKEY-Shift-space
|
||||
$MODKEY-Shift-n
|
||||
$MODKEY-Shift-c
|
||||
$MODKEY-Shift-t
|
||||
$MODKEY-Shift-0
|
||||
@ -137,8 +136,6 @@ do
|
||||
xwrite /view/sel/sel/ctl sendto next;;
|
||||
$MODKEY-Shift-space)
|
||||
xwrite /view/sel/sel/ctl sendto toggle;;
|
||||
$MODKEY-Shift-n)
|
||||
xwrite /view/sel/sel/ctl sendto new;;
|
||||
$MODKEY-Shift-c)
|
||||
xwrite /view/sel/sel/ctl kill;;
|
||||
$MODKEY-Shift-t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user