implement moving clients directionally
This commit is contained in:
16
src/config.c
16
src/config.c
@ -24,7 +24,7 @@ void wm_cfg_init_def(Config *config)
|
||||
|
||||
void wm_keybinds_init_def(Config *config)
|
||||
{
|
||||
char *st[] = {"alacritty", NULL};
|
||||
char *st[] = {"st", NULL};
|
||||
char **sth = malloc(sizeof(st));
|
||||
memcpy(sth, st, sizeof(st));
|
||||
|
||||
@ -85,6 +85,18 @@ void wm_keybinds_init_def(Config *config)
|
||||
(Keybind) {Mod4Mask, XK_l, *wm_kb_focus_dir,
|
||||
(Arg) {.i = RIGHT}},
|
||||
|
||||
(Keybind) {Mod4Mask | ShiftMask, XK_h, *wm_kb_move_dir,
|
||||
(Arg) {.i = LEFT}},
|
||||
|
||||
(Keybind) {Mod4Mask | ShiftMask, XK_j, *wm_kb_move_dir,
|
||||
(Arg) {.i = DOWN}},
|
||||
|
||||
(Keybind) {Mod4Mask | ShiftMask, XK_k, *wm_kb_move_dir,
|
||||
(Arg) {.i = UP}},
|
||||
|
||||
(Keybind) {Mod4Mask | ShiftMask, XK_l, *wm_kb_move_dir,
|
||||
(Arg) {.i = RIGHT}},
|
||||
|
||||
(Keybind) {Mod4Mask, XK_b, *wm_kb_switch_split_mode,
|
||||
(Arg) {.i = SPLIT_VERTICAL}},
|
||||
|
||||
@ -159,7 +171,7 @@ void wm_configfile_read(ConfigFile *cfile, Config *config)
|
||||
|
||||
if (!fp) {
|
||||
fprintf(stderr, "wm: could not open config file: %s\n", strerror(errno));
|
||||
exit(1);
|
||||
return;
|
||||
}
|
||||
|
||||
const int max_line_len = 8192;
|
||||
|
Reference in New Issue
Block a user