tony / oxwm

Branch: 59b80b6
Switch branches/tags
master
tonybtw converted keycodes to keysyms for international support, with 0 performance hit, fixed fullscreen behaviour to actually work as intended (toggle globally), fixed issue where dragging a window from monitor 1 to monitor 2, and then retiling it would tile it back to monitor 1, fixed bug where gentleman from discord was reporting he couldnt exit insert mode in vim, added support for increasing brightness and audio. c15cb28 2025-11-03
164 lines · 6.3 KB Raw Blame History
1 #![enable(implicit_some)]
2 // OXWM Configuration File
3 // Edit this file and reload with Mod+Shift+R (no compilation needed!)
4
5 #DEFINE $terminal = "alacritty"
6 #DEFINE $color_blue = 0x6dade3
7 #DEFINE $color_grey = 0xbbbbbb
8 #DEFINE $color_green = 0x9ece6a
9 #DEFINE $color_red = 0xf7768e
10 #DEFINE $color_cyan = 0x0db9d7
11 #DEFINE $color_purple = 0xad8ee6
12 #DEFINE $color_lavender = 0xa9b1d6
13 #DEFINE $color_bg = 0x1a1b26
14 #DEFINE $color_fg = 0xbbbbbb
15 #DEFINE $color_light_blue = 0x7aa2f7
16
17 (
18 border_width: 2,
19 border_focused: $color_blue,
20 border_unfocused: $color_grey,
21 font: "JetBrainsMono Nerd Font:style=Bold:size=12",
22
23 gaps_enabled: true,
24 gap_inner_horizontal: 5,
25 gap_inner_vertical: 5,
26 gap_outer_horizontal: 5,
27 gap_outer_vertical: 5,
28
29 terminal: $terminal,
30 modkey: Mod1,
31 tags: ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
32
33 // Alternative icon tags (uncomment to use):
34 // tags: ["", "󰊯", "", "", "󰙯", "󱇤", "", "󱘶", "󰧮"],
35
36 // Alternative text tags (uncomment to use):
37 // tags: ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "MISC"],
38
39 layout_symbols: [
40 (name: "tiling", symbol: "[T]"),
41 (name: "normie", symbol: "[F]"),
42 ],
43
44 keybindings: [
45 (keys: [(modifiers: [Mod1], key: Space), (modifiers: [], key: T)], action: Spawn, arg: "st"),
46 (modifiers: [Mod1], key: Return, action: Spawn, arg: $terminal),
47 (modifiers: [Mod1], key: D, action: Spawn, arg: ["sh", "-c", "dmenu_run -l 10"]),
48 (modifiers: [Mod1], key: S, action: Spawn, arg: ["sh", "-c", "maim -s | xclip -selection clipboard -t image/png"]),
49 (modifiers: [Mod1], key: Q, action: KillClient),
50 (modifiers: [Mod1, Shift], key: F, action: ToggleFullScreen),
51 (modifiers: [Mod1, Shift], key: Space, action: ToggleFloating),
52 (modifiers: [Mod1], key: F, action: ChangeLayout, arg: "normie"),
53 (modifiers: [Mod1], key: C, action: ChangeLayout, arg: "tiling"),
54 (modifiers: [Mod1], key: N, action: CycleLayout),
55 (modifiers: [Mod1], key: A, action: ToggleGaps),
56 (modifiers: [Mod1, Shift], key: Q, action: Quit),
57 (modifiers: [Mod1, Shift], key: R, action: Restart),
58 (modifiers: [Mod1], key: J, action: FocusStack, arg: -1),
59 (modifiers: [Mod1], key: K, action: FocusStack, arg: 1),
60 // Exchange client (vim-style with Mod+Shift)
61 (modifiers: [Mod1, Control], key: K, action: SmartMoveWin, arg: 0), // UP
62 (modifiers: [Mod1, Control], key: J, action: SmartMoveWin, arg: 1), // DOWN
63 (modifiers: [Mod1, Control], key: H, action: SmartMoveWin, arg: 2), // LEFT
64 (modifiers: [Mod1, Control], key: L, action: SmartMoveWin, arg: 3), // RIGHT
65 (modifiers: [Mod1, Shift], key: K, action: ExchangeClient, arg: 0), // UP
66 (modifiers: [Mod1, Shift], key: J, action: ExchangeClient, arg: 1), // DOWN
67 (modifiers: [Mod1, Shift], key: H, action: ExchangeClient, arg: 2), // LEFT
68 (modifiers: [Mod1, Shift], key: L, action: ExchangeClient, arg: 3), // RIGHT
69 (modifiers: [Mod1], key: Key1, action: ViewTag, arg: 0),
70 (modifiers: [Mod1], key: Key2, action: ViewTag, arg: 1),
71 (modifiers: [Mod1], key: Key3, action: ViewTag, arg: 2),
72 (modifiers: [Mod1], key: Key4, action: ViewTag, arg: 3),
73 (modifiers: [Mod1], key: Key5, action: ViewTag, arg: 4),
74 (modifiers: [Mod1], key: Key6, action: ViewTag, arg: 5),
75 (modifiers: [Mod1], key: Key7, action: ViewTag, arg: 6),
76 (modifiers: [Mod1], key: Key8, action: ViewTag, arg: 7),
77 (modifiers: [Mod1], key: Key9, action: ViewTag, arg: 8),
78 (modifiers: [Mod1, Shift], key: Key1, action: MoveToTag, arg: 0),
79 (modifiers: [Mod1, Shift], key: Key2, action: MoveToTag, arg: 1),
80 (modifiers: [Mod1, Shift], key: Key3, action: MoveToTag, arg: 2),
81 (modifiers: [Mod1, Shift], key: Key4, action: MoveToTag, arg: 3),
82 (modifiers: [Mod1, Shift], key: Key5, action: MoveToTag, arg: 4),
83 (modifiers: [Mod1, Shift], key: Key6, action: MoveToTag, arg: 5),
84 (modifiers: [Mod1, Shift], key: Key7, action: MoveToTag, arg: 6),
85 (modifiers: [Mod1, Shift], key: Key8, action: MoveToTag, arg: 7),
86 (modifiers: [Mod1, Shift], key: Key9, action: MoveToTag, arg: 8),
87 ],
88
89 status_blocks: [
90 // Battery block (shows charging/discharging status)
91 (
92 format: "",
93 command: "Battery",
94 battery_formats: (
95 charging: "󰂄 Bat: {}%",
96 discharging: "󰁹 Bat:{}%",
97 full: "󰁹 Bat: {}%",
98 ),
99 interval_secs: 30,
100 color: $color_green,
101 underline: true,
102 ),
103
104 // Separator
105 (
106 format: " │ ",
107 command: "Static",
108 interval_secs: 18446744073709551615,
109 color: $color_lavender,
110 underline: false,
111 ),
112
113 // RAM usage
114 (
115 format: "󰍛 {used}/{total} GB",
116 command: "Ram",
117 interval_secs: 5,
118 color: $color_light_blue,
119 underline: true,
120 ),
121
122 // Separator
123 (
124 format: " │ ",
125 command: "Static",
126 interval_secs: 18446744073709551615,
127 color: $color_lavender,
128 underline: false,
129 ),
130
131 // Kernel version
132 (
133 format: " {}",
134 command: "Shell",
135 command_arg: "uname -r",
136 interval_secs: 18446744073709551615,
137 color: $color_red,
138 underline: true,
139 ),
140
141 // Separator
142 (
143 format: " │ ",
144 command: "Static",
145 interval_secs: 18446744073709551615,
146 color: $color_lavender,
147 underline: false,
148 ),
149
150 // Date and time
151 (
152 format: "󰸘 {}",
153 command: "DateTime",
154 command_arg: "%a, %b %d - %-I:%M %P",
155 interval_secs: 1,
156 color: $color_cyan,
157 underline: true,
158 ),
159 ],
160
161 scheme_normal: (foreground: $color_fg, background: $color_bg, underline: 0x444444),
162 scheme_occupied: (foreground: $color_cyan, background: $color_bg, underline: $color_cyan),
163 scheme_selected: (foreground: $color_cyan, background: $color_bg, underline: $color_purple),
164 )