mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-11-01 22:58:44 -04:00
change: dispatch name change movewin->smartmovewin resizewin->smartresizewin
This commit is contained in:
parent
2e7245f960
commit
3a8ebf549b
4 changed files with 19 additions and 19 deletions
20
config.conf
20
config.conf
|
|
@ -285,17 +285,17 @@ bind=ALT+SHIFT,X,incgaps,1
|
||||||
bind=ALT+SHIFT,Z,incgaps,-1
|
bind=ALT+SHIFT,Z,incgaps,-1
|
||||||
bind=ALT+SHIFT,R,togglegaps
|
bind=ALT+SHIFT,R,togglegaps
|
||||||
|
|
||||||
# movewin
|
# smartmovewin
|
||||||
bind=SUPER+SHIFT,Up,movewin,up
|
bind=SUPER+SHIFT,Up,smartmovewin,up
|
||||||
bind=SUPER+SHIFT,Down,movewin,down
|
bind=SUPER+SHIFT,Down,smartmovewin,down
|
||||||
bind=SUPER+SHIFT,Left,movewin,left
|
bind=SUPER+SHIFT,Left,smartmovewin,left
|
||||||
bind=SUPER+SHIFT,Right,movewin,right
|
bind=SUPER+SHIFT,Right,smartmovewin,right
|
||||||
|
|
||||||
# resizewin
|
# smartresizewin
|
||||||
bind=SUPER+ALT,Up,resizewin,up
|
bind=SUPER+ALT,Up,smartresizewin,up
|
||||||
bind=SUPER+ALT,Down,resizewin,down
|
bind=SUPER+ALT,Down,smartresizewin,down
|
||||||
bind=SUPER+ALT,Left,resizewin,left
|
bind=SUPER+ALT,Left,smartresizewin,left
|
||||||
bind=SUPER+ALT,Right,resizewin,right
|
bind=SUPER+ALT,Right,smartresizewin,right
|
||||||
|
|
||||||
#custom app bind example
|
#custom app bind example
|
||||||
# spawn_on_empty (if tag 4 is empty , open app in this,otherwise view to tag 4)
|
# spawn_on_empty (if tag 4 is empty , open app in this,otherwise view to tag 4)
|
||||||
|
|
|
||||||
|
|
@ -520,11 +520,11 @@ FuncType parse_func_name(char *func_name, Arg *arg, char *arg_value, char *arg_v
|
||||||
} else if (strcmp(func_name, "toggleview") == 0) {
|
} else if (strcmp(func_name, "toggleview") == 0) {
|
||||||
func = toggleview;
|
func = toggleview;
|
||||||
(*arg).ui = 1 << (atoi(arg_value) - 1);
|
(*arg).ui = 1 << (atoi(arg_value) - 1);
|
||||||
} else if (strcmp(func_name, "movewin") == 0) {
|
} else if (strcmp(func_name, "smartmovewin") == 0) {
|
||||||
func = movewin;
|
func = smartmovewin;
|
||||||
(*arg).i = parse_direction(arg_value);
|
(*arg).i = parse_direction(arg_value);
|
||||||
} else if (strcmp(func_name, "resizewin") == 0) {
|
} else if (strcmp(func_name, "smartresizewin") == 0) {
|
||||||
func = resizewin;
|
func = smartresizewin;
|
||||||
(*arg).i = parse_direction(arg_value);
|
(*arg).i = parse_direction(arg_value);
|
||||||
} else {
|
} else {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,8 @@ void focusmon(const Arg *arg);
|
||||||
void focusstack(const Arg *arg);
|
void focusstack(const Arg *arg);
|
||||||
void chvt(const Arg *arg);
|
void chvt(const Arg *arg);
|
||||||
void reload_config(const Arg *arg);
|
void reload_config(const Arg *arg);
|
||||||
void movewin(const Arg *arg);
|
void smartmovewin(const Arg *arg);
|
||||||
void resizewin(const Arg *arg);
|
void smartresizewin(const Arg *arg);
|
||||||
void bind_to_view(const Arg *arg);
|
void bind_to_view(const Arg *arg);
|
||||||
void toggletag(const Arg *arg);
|
void toggletag(const Arg *arg);
|
||||||
void toggleview(const Arg *arg);
|
void toggleview(const Arg *arg);
|
||||||
|
|
|
||||||
|
|
@ -136,7 +136,7 @@ enum {
|
||||||
NetLast
|
NetLast
|
||||||
}; /* EWMH atoms */
|
}; /* EWMH atoms */
|
||||||
#endif
|
#endif
|
||||||
enum { UP, DOWN, LEFT, RIGHT, UNDIR }; /* movewin */
|
enum { UP, DOWN, LEFT, RIGHT, UNDIR }; /* smartmovewin */
|
||||||
enum { NONE, OPEN, MOVE, CLOSE, TAG };
|
enum { NONE, OPEN, MOVE, CLOSE, TAG };
|
||||||
|
|
||||||
struct vec2 {
|
struct vec2 {
|
||||||
|
|
@ -7174,7 +7174,7 @@ void zoom(const Arg *arg) {
|
||||||
arrange(selmon, false);
|
arrange(selmon, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void movewin(const Arg *arg) {
|
void smartmovewin(const Arg *arg) {
|
||||||
Client *c, *tc;
|
Client *c, *tc;
|
||||||
int nx, ny;
|
int nx, ny;
|
||||||
int buttom, top, left, right, tar;
|
int buttom, top, left, right, tar;
|
||||||
|
|
@ -7272,7 +7272,7 @@ void movewin(const Arg *arg) {
|
||||||
resize(c, c->oldgeom, 1);
|
resize(c, c->oldgeom, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void resizewin(const Arg *arg) {
|
void smartresizewin(const Arg *arg) {
|
||||||
Client *c, *tc;
|
Client *c, *tc;
|
||||||
int nw, nh;
|
int nw, nh;
|
||||||
int buttom, top, left, right, tar;
|
int buttom, top, left, right, tar;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue