~samhsmith/gateway

e87945e9e4dba3dce6db40dffb37496dda9e0eb4 — Sam H Smith 2 years ago 8fec236 master
it's different now
1 files changed, 11 insertions(+), 11 deletions(-)

M src/gateway.c
M src/gateway.c => src/gateway.c +11 -11
@@ 318,7 318,7 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
        wl_display_terminate(server->wl_display);
        assert(0);
    }
    else if(keycode == 36 && (modifiers & WLR_MODIFIER_SHIFT) == 0)
    else if(keycode == 35 && (modifiers & WLR_MODIFIER_SHIFT) == 0)
    {
        if (wl_list_length(&server->focused_panel->views) < 2) {
            return false;


@@ 332,7 332,7 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
        focus_view(next_view, server->focused_panel, false);
        center_mouse(server);
    }
    else if(keycode == 37 && (modifiers & WLR_MODIFIER_SHIFT) == 0)
    else if(keycode == 20 && (modifiers & WLR_MODIFIER_SHIFT) == 0)
    {
        if (wl_list_length(&server->focused_panel->views) < 2) {
            return false;


@@ 346,7 346,7 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
        focus_view(next_view, server->focused_panel, false);
        center_mouse(server);
    }
    else if(keycode == 38)
    else if(keycode == 49)
    {
        if (wl_list_length(&server->focused_panel->views) < 2) {
            return false;


@@ 358,7 358,7 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
        focus_view(next_view, server->focused_panel, false);
        center_mouse(server);
    }
    else if(keycode == 36 && (modifiers & WLR_MODIFIER_SHIFT) != 0)
    else if(keycode == 35 && (modifiers & WLR_MODIFIER_SHIFT) != 0)
    {
        if (wl_list_length(&server->focused_panel->views) < 2) {
            return false;


@@ 367,7 367,7 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
        list_swap(current_view->link.prev, &current_view->link);
        center_mouse(server);
    }
    else if(keycode == 37 && (modifiers & WLR_MODIFIER_SHIFT) != 0)
    else if(keycode == 20 && (modifiers & WLR_MODIFIER_SHIFT) != 0)
    {
        if (wl_list_length(&server->focused_panel->views) < 2) {
            return false;


@@ 376,7 376,7 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
        list_swap(&current_view->link, current_view->link.next);
        center_mouse(server);
    }
    else if(keycode == 49)
    else if(keycode == 50)
    {
        if(server->focused_panel->focused_view != NULL)
        {


@@ 384,7 384,7 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
            center_mouse(server);
        }
    }
    else if(keycode == 21)
    else if(keycode == 33)
    {
        server->focused_panel->focused_view->is_fullscreen = 
                !server->focused_panel->focused_view->is_fullscreen;


@@ 396,14 396,14 @@ static bool handle_keybinding(struct tinywl_server *server, uint32_t keycode, ui
        strcat(cmd, " &");
        system(cmd);
    }
    else if(keycode == 35)
    else if(keycode == 32)
    {
        char cmd[512];
        strcpy(cmd, server->config->launcher);
        strcat(cmd, " &");
        system(cmd);
    }
    else if(keycode == 53 && (modifiers && WLR_MODIFIER_SHIFT) == 1)
    else if(keycode == 44 && (modifiers && WLR_MODIFIER_SHIFT) == 1)
    {
        if(server->focused_panel->focused_view == NULL) { return false; }



@@ 1744,8 1744,8 @@ int main(int argc, char *argv[]) {
    server.config->terminal = "foot";
    server.config->launcher = "fuzzel -b1f301fff -tffffffff -l20";
    server.config->mouse_sens = 0.5;
    server.config->kbd_layout = "us";
    server.config->kbd_variant = "dvorak";
    server.config->kbd_layout = "se";
    server.config->kbd_variant = NULL;
    server.config->window_gaps = 8;