83 lines
2.8 KiB
C
83 lines
2.8 KiB
C
#ifndef __CONFIG_H_
|
|
#define __CONFIG_H_
|
|
|
|
#include "keybinds.h"
|
|
#include "types.h"
|
|
|
|
#define CURSOR_MOD WLR_MODIFIER_ALT
|
|
#define CURSOR_MOVE_BUTTON BTN_LEFT
|
|
#define CURSOR_RESIZE_BUTTON BTN_RIGHT
|
|
|
|
#define TOPLEVEL_BW 2
|
|
|
|
static const float bgcolor[4] = {0.0, 0.0, 0.0, 1.0};
|
|
|
|
static const float focused_bc[4] = {1.0, 0.4, 0.6, 1.0};
|
|
static const float urgent_bc[4] = {1.0, 0.0, 0.0, 1.0};
|
|
static const float unfocused_bc[4] = {0.28, 0.28, 0.28, 1.0};
|
|
|
|
#define STACK_COUNT 1
|
|
#define STACK_SIZE 0.5
|
|
|
|
#define OUTPUT_GAP 10
|
|
#define LAYOUT_GAP 5
|
|
|
|
#define ALT WLR_MODIFIER_ALT
|
|
#define CTRL WLR_MODIFIER_CTRL
|
|
#define SHIFT WLR_MODIFIER_SHIFT
|
|
#define LOGO WLR_MODIFIER_LOGO
|
|
|
|
static const char *workspaces[] = {
|
|
"1", "2", "3", "4", "5", "6", "7", "8", "9", "10",
|
|
};
|
|
|
|
static const absn_keybind keybinds[] = {
|
|
{ALT, XKB_KEY_Escape, quit, {0}},
|
|
|
|
{ALT, XKB_KEY_Return, &run, {.v = "alacritty"}},
|
|
{ALT, XKB_KEY_q, kill_focus, {0}},
|
|
|
|
{ALT, XKB_KEY_j, cycle_focus, {.i = +1}},
|
|
{ALT, XKB_KEY_k, cycle_focus, {.i = -1}},
|
|
|
|
{ALT | SHIFT, XKB_KEY_j, swap_focus, {.i = +1}},
|
|
{ALT | SHIFT, XKB_KEY_k, swap_focus, {.i = -1}},
|
|
|
|
{ALT, XKB_KEY_f, toggle_fullscreen, {0}},
|
|
{ALT, XKB_KEY_v, toggle_floating, {0}},
|
|
|
|
{ALT, XKB_KEY_h, increase_master_count, {.i = +1}},
|
|
{ALT, XKB_KEY_l, increase_master_count, {.i = -1}},
|
|
|
|
{ALT | SHIFT, XKB_KEY_h, increase_master_width, {.f = -0.05}},
|
|
{ALT | SHIFT, XKB_KEY_l, increase_master_width, {.f = +0.05}},
|
|
|
|
{ALT, XKB_KEY_t, set_layout, {.i = LAYOUT_TILE}},
|
|
{ALT, XKB_KEY_r, set_layout, {.i = LAYOUT_TILELEFT}},
|
|
{ALT, XKB_KEY_m, set_layout, {.i = LAYOUT_MONOCLE}},
|
|
|
|
{ALT, XKB_KEY_1, switch_workspace, {.v = "1"}},
|
|
{ALT, XKB_KEY_2, switch_workspace, {.v = "2"}},
|
|
{ALT, XKB_KEY_3, switch_workspace, {.v = "3"}},
|
|
{ALT, XKB_KEY_4, switch_workspace, {.v = "4"}},
|
|
{ALT, XKB_KEY_5, switch_workspace, {.v = "5"}},
|
|
{ALT, XKB_KEY_6, switch_workspace, {.v = "6"}},
|
|
{ALT, XKB_KEY_7, switch_workspace, {.v = "7"}},
|
|
{ALT, XKB_KEY_8, switch_workspace, {.v = "8"}},
|
|
{ALT, XKB_KEY_9, switch_workspace, {.v = "9"}},
|
|
{ALT, XKB_KEY_0, switch_workspace, {.v = "10"}},
|
|
|
|
{ALT | SHIFT, XKB_KEY_exclam, move_focus_to_workspace, {.v = "1"}},
|
|
{ALT | SHIFT, XKB_KEY_at, move_focus_to_workspace, {.v = "2"}},
|
|
{ALT | SHIFT, XKB_KEY_numbersign, move_focus_to_workspace, {.v = "3"}},
|
|
{ALT | SHIFT, XKB_KEY_dollar, move_focus_to_workspace, {.v = "4"}},
|
|
{ALT | SHIFT, XKB_KEY_percent, move_focus_to_workspace, {.v = "5"}},
|
|
{ALT | SHIFT, XKB_KEY_asciicircum, move_focus_to_workspace, {.v = "6"}},
|
|
{ALT | SHIFT, XKB_KEY_ampersand, move_focus_to_workspace, {.v = "7"}},
|
|
{ALT | SHIFT, XKB_KEY_asterisk, move_focus_to_workspace, {.v = "8"}},
|
|
{ALT | SHIFT, XKB_KEY_parenleft, move_focus_to_workspace, {.v = "9"}},
|
|
{ALT | SHIFT, XKB_KEY_parenright, move_focus_to_workspace, {.v = "10"}},
|
|
};
|
|
|
|
#endif
|