1// List of X11 keyboard symbol names.
2// https://cgit.freedesktop.org/xorg/proto/x11proto/tree/keysymdef.h
3// https://cgit.freedesktop.org/xorg/proto/x11proto/tree/XF86keysym.h
4
5#ifndef CONFIG_H
6#define CONFIG_H
7
8#pragma GCC diagnostic push
9#pragma GCC diagnostic ignored "-Wunused-variable"
10
11#include "glitch.h"
12
13#define MODKEY Mod4Mask // Mod1Mask is Alt, Mod4Mask is Windows key.
14
15static int border_size = 3;
16static const char *active_border_color = "khaki";
17static const char *inactive_border_color = "darkgray";
18static const char *sticky_active_border_color = "violet";
19static const char *sticky_inactive_border_color = "cyan";
20static const char *on_top_active_border_color = "orange";
21static const char *on_top_inactive_border_color = "darkorange";
22
23static const char *widget_font = "Berkeley Mono:size=7:bold";
24static const char *launcher_font_name = "Berkeley Mono:size=9:bold";
25static const char *time_format = "%A %d.%m.%Y %H:%M:%S";
26static const char *indicator_fg_color = "white";
27static const char *indicator_bg_color = "blue";
28static const char *mic_active_bg_color = "firebrick";
29static const char *mic_muted_bg_color = "#222222";
30static const char *mic_active_fg_color = "white";
31static const char *mic_muted_fg_color = "white";
32static const char *layout_tile_bg_color = "darkgreen";
33static const char *layout_float_bg_color = "#222222";
34static const char *layout_tile_fg_color = "white";
35static const char *layout_float_fg_color = "white";
36
37static const char *launcher_bg_color = "black";
38static const char *launcher_border_color = "khaki";
39static const char *launcher_fg_color = "white";
40static const char *launcher_hl_bg_color = "khaki";
41static const char *launcher_hl_fg_color = "black";
42static int launcher_width = 800;
43static int launcher_height = 600;
44
45static Shortcut shortcuts[] = {
46 /* Mask KeySym Shell command */
47 { MODKEY, XK_Return, "st -f 'Berkeley Mono:style=Bold:size=10' -g 110x60" },
48 { ControlMask, XK_Escape, "sh -c 'maim -s | xclip -selection clipboard -t image/png'" },
49 { MODKEY, XK_w, "brave --new-window" },
50 { MODKEY, XK_e, "thunar" },
51 { MODKEY, XK_s, "xmagnify -s 1000 -z 3" },
52 { MODKEY, XK_r, "simplescreenrecorder" },
53 { MODKEY, XK_l, "xlock" },
54 { 0, XF86XK_AudioLowerVolume, "pactl set-sink-volume @DEFAULT_SINK@ -5%" },
55 { 0, XF86XK_AudioRaiseVolume, "pactl set-sink-volume @DEFAULT_SINK@ +5%" },
56 { 0, XF86XK_AudioMute, "pactl set-sink-mute @DEFAULT_SINK@ toggle" },
57 { MODKEY, XK_bracketright, "pats -t" },
58};
59
60static Keybinds keybinds[] = {
61 /* Mask KeySym Function Argument */
62 { Mod1Mask, XK_Tab, cycle_active_window, { .i = 0 } },
63 { Mod1Mask | ShiftMask, XK_Tab, cycle_active_window, { .i = 1 } },
64 { MODKEY, XK_Left, move_window_x, { .i = -75 } },
65 { MODKEY, XK_Right, move_window_x, { .i = +75 } },
66 { MODKEY, XK_Up, move_window_y, { .i = -75 } },
67 { MODKEY, XK_Down, move_window_y, { .i = +75 } },
68 { MODKEY | ShiftMask, XK_Left, resize_window_x, { .i = -75 } },
69 { MODKEY | ShiftMask, XK_Right, resize_window_x, { .i = +75 } },
70 { MODKEY | ShiftMask, XK_Up, resize_window_y, { .i = -75 } },
71 { MODKEY | ShiftMask, XK_Down, resize_window_y, { .i = +75 } },
72 { MODKEY | ControlMask, XK_Up, window_snap_up, { 0 } },
73 { MODKEY | ControlMask, XK_Down, window_snap_down, { 0 } },
74 { MODKEY | ControlMask, XK_Right, window_snap_right, { 0 } },
75 { MODKEY | ControlMask, XK_Left, window_snap_left, { 0 } },
76 { MODKEY, XK_1, goto_desktop, { .i = 1 } },
77 { MODKEY, XK_2, goto_desktop, { .i = 2 } },
78 { MODKEY, XK_3, goto_desktop, { .i = 3 } },
79 { MODKEY, XK_4, goto_desktop, { .i = 4 } },
80 { MODKEY, XK_5, goto_desktop, { .i = 5 } },
81 { MODKEY, XK_6, goto_desktop, { .i = 6 } },
82 { MODKEY, XK_7, goto_desktop, { .i = 7 } },
83 { MODKEY, XK_8, goto_desktop, { .i = 8 } },
84 { MODKEY, XK_9, goto_desktop, { .i = 9 } },
85 { MODKEY | ShiftMask, XK_1, send_window_to_desktop, { .i = 1 } },
86 { MODKEY | ShiftMask, XK_2, send_window_to_desktop, { .i = 2 } },
87 { MODKEY | ShiftMask, XK_3, send_window_to_desktop, { .i = 3 } },
88 { MODKEY | ShiftMask, XK_4, send_window_to_desktop, { .i = 4 } },
89 { MODKEY | ShiftMask, XK_5, send_window_to_desktop, { .i = 5 } },
90 { MODKEY | ShiftMask, XK_6, send_window_to_desktop, { .i = 6 } },
91 { MODKEY | ShiftMask, XK_7, send_window_to_desktop, { .i = 7 } },
92 { MODKEY | ShiftMask, XK_8, send_window_to_desktop, { .i = 8 } },
93 { MODKEY | ShiftMask, XK_9, send_window_to_desktop, { .i = 9 } },
94 { MODKEY | ShiftMask, XK_s, toggle_pip, { 0 } },
95 { MODKEY | ShiftMask, XK_t, toggle_always_on_top,{ 0 } },
96 { MODKEY, XK_x, window_hmaximize, { 0 } },
97 { MODKEY, XK_z, window_vmaximize, { 0 } },
98 { MODKEY, XK_f, toggle_fullscreen, { 0 } },
99 { MODKEY | ShiftMask, XK_r, reload, { 0 } },
100 { MODKEY, XK_c, center_window, { 0 } },
101 { MODKEY, XK_m, toggle_mic_mute, { 0 } },
102 { MODKEY, XK_space, toggle_layout, { 0 } },
103 { MODKEY, XK_p, toggle_launcher, { 0 } },
104 { MODKEY | ShiftMask, XK_q, quit, { 0 } },
105 { MODKEY, XK_q, close_window, { 0 } },
106};
107
108#pragma GCC diagnostic pop
109
110#endif // CONFIG_H