Files
absinthe/include/config.h
T
2026-05-11 12:46:20 +07:00

62 lines
1.9 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] = { 0.0, 0.0, 1.0, 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",
};
static const absn_keybind keybinds[] = {
{ 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, XKB_KEY_f, toggle_fullscreen, { 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_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 | SHIFT, XKB_KEY_exclam, focus_move_to_workspace, { .v = "1" } },
{ ALT | SHIFT, XKB_KEY_2, focus_move_to_workspace, { .v = "2" } },
{ ALT | SHIFT, XKB_KEY_3, focus_move_to_workspace, { .v = "3" } },
{ ALT | SHIFT, XKB_KEY_4, focus_move_to_workspace, { .v = "4" } },
{ ALT | SHIFT, XKB_KEY_5, focus_move_to_workspace, { .v = "5" } },
{ ALT, XKB_KEY_Escape, quit, { 0 } },
};
#endif