Rename mvws_next and mvws_prev to mvrg_next and mvrg_prev, respectively.
Fix man page typo.
Tweak styling.
.Pf rg_ Aq Ar 1-9
.It Cm M-S- Ns Aq Ar Keypad 1-9
.Pf mvrg_ Aq Ar 1-9
.Pf rg_ Aq Ar 1-9
.It Cm M-S- Ns Aq Ar Keypad 1-9
.Pf mvrg_ Aq Ar 1-9
+.It Cm Aq Ar unbound
+mvrg_next
+.It Cm Aq Ar unbound
+mvrg_prev
.It Cm M- Ns Aq Cm Right
ws_next
.It Cm M- Ns Aq Cm Left
.It Cm M- Ns Aq Cm Right
ws_next
.It Cm M- Ns Aq Cm Left
ws_prev_all
.It Cm M-a
ws_prior
ws_prev_all
.It Cm M-a
ws_prior
-.It Cm M-S- Ns Aq Cm Left
+.It Cm M-S- Ns Aq Cm Down
ws_prev_move
.It Cm M-S- Ns Aq Cm Up
ws_next_move
ws_prev_move
.It Cm M-S- Ns Aq Cm Up
ws_next_move
uniconify
.It Cm M-e
maximize_toggle
uniconify
.It Cm M-e
maximize_toggle
-.It Cm Aq Ar unbound
-raise_focused
.It Cm M-S-r
always_raise
.It Cm M-v
.It Cm M-S-r
always_raise
.It Cm M-v
.Ar n
is 1 through
.Ic workspace_limit .
.Ar n
is 1 through
.Ic workspace_limit .
-.It Cm mvws_prev
-Move current window to previous regions workspace.
-.It Cm mvws_next
-Move current window to next regions workspace.
.It Cm rg_ Ns Ar n
Focus on region
.Ar n ,
.It Cm rg_ Ns Ar n
Focus on region
.Ar n ,
where
.Ar n
is 1 through 9.
where
.Ar n
is 1 through 9.
+.It Cm mvrg_next
+Move current window to workspace in next region.
+.It Cm mvrg_prev
+Move current window to workspace in previous region.
.It Cm ws_next
Switch to next workspace with a window in it.
.It Cm ws_prev
.It Cm ws_next
Switch to next workspace with a window in it.
.It Cm ws_prev
selection.
.It Cm maximize_toggle
Toggle maximization of focused window.
selection.
.It Cm maximize_toggle
Toggle maximization of focused window.
Raise the current window.
.It Cm always_raise
When set tiled windows are allowed to obscure floating windows.
Raise the current window.
.It Cm always_raise
When set tiled windows are allowed to obscure floating windows.
struct ws_win *focus; /* may be NULL */
struct ws_win *focus_prev; /* may be NULL */
struct ws_win *focus_pending; /* may be NULL */
struct ws_win *focus; /* may be NULL */
struct ws_win *focus_prev; /* may be NULL */
struct ws_win *focus_pending; /* may be NULL */
- struct ws_win *raised; /* may be NULL */
+ struct ws_win *focus_raise; /* may be NULL */
struct swm_region *r; /* may be NULL */
struct swm_region *old_r; /* may be NULL */
struct ws_win_list winlist; /* list of windows in ws */
struct swm_region *r; /* may be NULL */
struct swm_region *old_r; /* may be NULL */
struct ws_win_list winlist; /* list of windows in ws */
FN_MVRG_7,
FN_MVRG_8,
FN_MVRG_9,
FN_MVRG_7,
FN_MVRG_8,
FN_MVRG_9,
+ KF_MVRG_NEXT,
+ KF_MVRG_PREV,
FN_MVWS_1,
FN_MVWS_2,
FN_MVWS_3,
FN_MVWS_1,
FN_MVWS_2,
FN_MVWS_3,
FN_MVWS_20,
FN_MVWS_21,
FN_MVWS_22,
FN_MVWS_20,
FN_MVWS_21,
FN_MVWS_22,
- KF_MVWS_NEXT,
- KF_MVWS_PREV,
FN_NAME_WORKSPACE,
FN_QUIT,
FN_NAME_WORKSPACE,
FN_QUIT,
FN_RAISE_TOGGLE,
FN_RESIZE,
FN_RESIZE_CENTERED,
FN_RAISE_TOGGLE,
FN_RESIZE,
FN_RESIZE_CENTERED,
void quirk_replace(struct quirk *, const char *, const char *, const char *,
uint32_t, int);
void quit(struct binding *, struct swm_region *, union arg *);
void quirk_replace(struct quirk *, const char *, const char *, const char *,
uint32_t, int);
void quit(struct binding *, struct swm_region *, union arg *);
-void raise_focused(struct binding *, struct swm_region *, union arg *);
+void raise_focus(struct binding *, struct swm_region *, union arg *);
void raise_toggle(struct binding *, struct swm_region *, union arg *);
void raise_window(struct ws_win *);
void region_containment(struct ws_win *, struct swm_region *, int);
void raise_toggle(struct binding *, struct swm_region *, union arg *);
void raise_window(struct ws_win *);
void region_containment(struct ws_win *, struct swm_region *, int);
void search_win_cleanup(void);
void search_workspace(struct binding *, struct swm_region *, union arg *);
void send_to_rg(struct binding *, struct swm_region *, union arg *);
void search_win_cleanup(void);
void search_workspace(struct binding *, struct swm_region *, union arg *);
void send_to_rg(struct binding *, struct swm_region *, union arg *);
+void send_to_rg_relative(struct binding *, struct swm_region *, union arg *);
void send_to_ws(struct binding *, struct swm_region *, union arg *);
void send_to_ws(struct binding *, struct swm_region *, union arg *);
-void send_to_ws_relative(struct binding *, struct swm_region *, union arg *);
void set_region(struct swm_region *);
int setautorun(const char *, const char *, int);
void setbinding(uint16_t, enum binding_type, uint32_t, enum actionid,
void set_region(struct swm_region *);
int setautorun(const char *, const char *, int);
void setbinding(uint16_t, enum binding_type, uint32_t, enum actionid,
strlcat(s, "- ", sz);
}
}
strlcat(s, "- ", sz);
}
}
- if(urgent_collapse && s[0])
+ if (urgent_collapse && s[0])
ws->focus_prev = NULL;
if (win == ws->focus_pending)
ws->focus_pending = NULL;
ws->focus_prev = NULL;
if (win == ws->focus_pending)
ws->focus_pending = NULL;
- if (win == ws->raised)
- ws->raised = NULL;
+ if (win == ws->focus_raise)
+ ws->focus_raise = NULL;
if (TRANS(win))
TAILQ_FOREACH(w, &ws->winlist, entry)
if (TRANS(win))
TAILQ_FOREACH(w, &ws->winlist, entry)
if (win->ws->focus == win) {
win->ws->focus = NULL;
win->ws->focus_prev = win;
if (win->ws->focus == win) {
win->ws->focus = NULL;
win->ws->focus_prev = win;
- if(win->ws->raised == win && !FLOATING(win)) {
+ if (win->ws->focus_raise == win && !FLOATING(win)) {
update_win_stacking(win);
}
}
update_win_stacking(win);
}
}
/* Transfer focused window to region-relative workspace and focus. */
void
/* Transfer focused window to region-relative workspace and focus. */
void
-send_to_ws_relative(struct binding *bp, struct swm_region *r, union arg *args)
+send_to_rg_relative(struct binding *bp, struct swm_region *r, union arg *args)
- union arg args_abs;
- struct swm_region *r_other;
+ union arg args_abs;
+ struct swm_region *r_other;
if (args->id == 1) {
r_other = TAILQ_NEXT(r, entry);
if (args->id == 1) {
r_other = TAILQ_NEXT(r, entry);
-raise_focused(struct binding *bp, struct swm_region *r, union arg *args)
+raise_focus(struct binding *bp, struct swm_region *r, union arg *args)
{
struct ws_win *win;
uint32_t val;
{
struct ws_win *win;
uint32_t val;
return;
win = r->ws->focus;
return;
win = r->ws->focus;
+ r->ws->focus_raise = win;
raise_window(win);
/* Temporarily override stacking order also in the stack */
raise_window(win);
/* Temporarily override stacking order also in the stack */
- if((name_list = calloc(len, sizeof(char))) == NULL)
+ if ((name_list = calloc(len, sizeof(char))) == NULL)
err(1, "update_desktop_names: calloc: failed to "
"allocate memory.");
err(1, "update_desktop_names: calloc: failed to "
"allocate memory.");
{ "mvrg_7", send_to_rg, 0, {.id = 6} },
{ "mvrg_8", send_to_rg, 0, {.id = 7} },
{ "mvrg_9", send_to_rg, 0, {.id = 8} },
{ "mvrg_7", send_to_rg, 0, {.id = 6} },
{ "mvrg_8", send_to_rg, 0, {.id = 7} },
{ "mvrg_9", send_to_rg, 0, {.id = 8} },
+ { "mvrg_next", send_to_rg_relative, 0, {.id = 1} },
+ { "mvrg_prev", send_to_rg_relative, 0, {.id = -1} },
{ "mvws_1", send_to_ws, 0, {.id = 0} },
{ "mvws_2", send_to_ws, 0, {.id = 1} },
{ "mvws_3", send_to_ws, 0, {.id = 2} },
{ "mvws_1", send_to_ws, 0, {.id = 0} },
{ "mvws_2", send_to_ws, 0, {.id = 1} },
{ "mvws_3", send_to_ws, 0, {.id = 2} },
{ "mvws_20", send_to_ws, 0, {.id = 19} },
{ "mvws_21", send_to_ws, 0, {.id = 20} },
{ "mvws_22", send_to_ws, 0, {.id = 21} },
{ "mvws_20", send_to_ws, 0, {.id = 19} },
{ "mvws_21", send_to_ws, 0, {.id = 20} },
{ "mvws_22", send_to_ws, 0, {.id = 21} },
- { "mvws_next", send_to_ws_relative, 0, {.id = 1} },
- { "mvws_prev", send_to_ws_relative, 0, {.id = -1} },
{ "name_workspace", name_workspace, 0, {0} },
{ "quit", quit, 0, {0} },
{ "name_workspace", name_workspace, 0, {0} },
{ "quit", quit, 0, {0} },
- { "raise_focused", raise_focused, 0, {0} },
+ { "raise", raise_focus, 0, {0} },
{ "raise_toggle", raise_toggle, 0, {0} },
{ "resize", resize, FN_F_NOREPLAY, {.id = SWM_ARG_ID_DONTCENTER} },
{ "resize_centered", resize, FN_F_NOREPLAY, {.id = SWM_ARG_ID_CENTER} },
{ "raise_toggle", raise_toggle, 0, {0} },
{ "resize", resize, FN_F_NOREPLAY, {.id = SWM_ARG_ID_DONTCENTER} },
{ "resize_centered", resize, FN_F_NOREPLAY, {.id = SWM_ARG_ID_CENTER} },
BINDKEY(MODSHIFT, XK_F12, FN_MVWS_22);
BINDKEY(MODSHIFT, XK_slash, FN_NAME_WORKSPACE);
BINDKEY(MODSHIFT, XK_q, FN_QUIT);
BINDKEY(MODSHIFT, XK_F12, FN_MVWS_22);
BINDKEY(MODSHIFT, XK_slash, FN_NAME_WORKSPACE);
BINDKEY(MODSHIFT, XK_q, FN_QUIT);
+ BINDKEY(MODKEY, XK_r, FN_RAISE);
BINDKEY(MODSHIFT, XK_r, FN_RAISE_TOGGLE);
BINDKEY(MODKEY, XK_q, FN_RESTART);
BINDKEY(MODKEY, XK_KP_End, FN_RG_1);
BINDKEY(MODSHIFT, XK_r, FN_RAISE_TOGGLE);
BINDKEY(MODKEY, XK_q, FN_RESTART);
BINDKEY(MODKEY, XK_KP_End, FN_RG_1);
case XCB_STACK_MODE_ABOVE:
name = "Above";
break;
case XCB_STACK_MODE_ABOVE:
name = "Above";
break;
ws->focus = NULL;
ws->focus_prev = NULL;
ws->focus_pending = NULL;
ws->focus = NULL;
ws->focus_prev = NULL;
ws->focus_pending = NULL;
+ ws->focus_raise = NULL;
ws->r = NULL;
ws->old_r = NULL;
ws->state = SWM_WS_STATE_HIDDEN;
ws->r = NULL;
ws->old_r = NULL;
ws->state = SWM_WS_STATE_HIDDEN;