Add the keybind client_set_master in the default wmfsrc
This commit is contained in:
parent
4064cbdfd9
commit
703974cb00
@ -1637,17 +1637,17 @@ uicb_client_set_master(uicb_t cmd)
|
|||||||
{
|
{
|
||||||
Client *c;
|
Client *c;
|
||||||
(void)cmd;
|
(void)cmd;
|
||||||
|
|
||||||
/* get the first client */
|
/* get the first client */
|
||||||
screen_get_sel();
|
screen_get_sel();
|
||||||
if(!sel || ishide(sel, selscreen))
|
if(!sel || ishide(sel, selscreen))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
for(c = clients; c && ishide(c, selscreen); c = c->next);
|
for(c = clients; c && ishide(c, selscreen); c = c->next);
|
||||||
|
|
||||||
if (c && c != sel)
|
if (c && c != sel)
|
||||||
{
|
{
|
||||||
client_swap(c, sel);
|
client_swap(c, sel);
|
||||||
client_focus(c);
|
client_focus(c);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
3
wmfsrc
3
wmfsrc
@ -334,6 +334,9 @@
|
|||||||
|
|
||||||
# Swap current client with the previous.
|
# Swap current client with the previous.
|
||||||
[key] mod = {"Alt", "Shift"} key = "t" func = "client_swap_prev" [/key]
|
[key] mod = {"Alt", "Shift"} key = "t" func = "client_swap_prev" [/key]
|
||||||
|
|
||||||
|
# Set the selected client as Master
|
||||||
|
[key] mod = {"Control"} key = "m" func = "client_set_master" [/key]
|
||||||
|
|
||||||
# Toggle maximum the selected client
|
# Toggle maximum the selected client
|
||||||
[key] mod = {"Alt"} key = "m" func = "toggle_max" [/key]
|
[key] mod = {"Alt"} key = "m" func = "toggle_max" [/key]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user