implement moving clients directionally

This commit is contained in:
2023-09-09 14:11:27 +02:00
parent 449911a089
commit 8c49238e95
7 changed files with 66 additions and 6 deletions

View File

@ -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;