tony / oxwm

Branch: 68f508d
Switch branches/tags
master
tonybtw Updated with enums instead of raw function parsers 09996ed 2025-10-16
65 lines · 3.4 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 (
6 border_width: 2,
7 border_focused: 0x6dade3,
8 border_unfocused: 0xbbbbbb,
9 font: "monospace:style=Bold:size=10",
10
11 gaps_enabled: true,
12 gap_inner_horizontal: 5,
13 gap_inner_vertical: 5,
14 gap_outer_horizontal: 5,
15 gap_outer_vertical: 5,
16
17 terminal: "st",
18 modkey: Mod4,
19
20 tags: ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
21
22 keybindings: [
23 (modifiers: [Mod4], key: Return, action: Spawn, arg: "st"),
24 (modifiers: [Mod4], key: D, action: Spawn, arg: ["sh", "-c", "dmenu_run -l 10"]),
25 (modifiers: [Mod4], key: S, action: Spawn, arg: ["sh", "-c", "maim -s | xclip -selection clipboard -t image/png"]),
26 (modifiers: [Mod4], key: Q, action: KillClient),
27 (modifiers: [Mod4, Shift], key: F, action: ToggleFullScreen),
28 (modifiers: [Mod4, Shift], key: Space, action: ToggleFloating),
29 (modifiers: [Mod4], key: A, action: ToggleGaps),
30 (modifiers: [Mod4, Shift], key: Q, action: Quit),
31 (modifiers: [Mod4, Shift], key: R, action: Restart),
32 (modifiers: [Mod4], key: J, action: FocusStack, arg: -1),
33 (modifiers: [Mod4], key: K, action: FocusStack, arg: 1),
34 (modifiers: [Mod4], key: Key1, action: ViewTag, arg: 0),
35 (modifiers: [Mod4], key: Key2, action: ViewTag, arg: 1),
36 (modifiers: [Mod4], key: Key3, action: ViewTag, arg: 2),
37 (modifiers: [Mod4], key: Key4, action: ViewTag, arg: 3),
38 (modifiers: [Mod4], key: Key5, action: ViewTag, arg: 4),
39 (modifiers: [Mod4], key: Key6, action: ViewTag, arg: 5),
40 (modifiers: [Mod4], key: Key7, action: ViewTag, arg: 6),
41 (modifiers: [Mod4], key: Key8, action: ViewTag, arg: 7),
42 (modifiers: [Mod4], key: Key9, action: ViewTag, arg: 8),
43 (modifiers: [Mod4, Shift], key: Key1, action: MoveToTag, arg: 0),
44 (modifiers: [Mod4, Shift], key: Key2, action: MoveToTag, arg: 1),
45 (modifiers: [Mod4, Shift], key: Key3, action: MoveToTag, arg: 2),
46 (modifiers: [Mod4, Shift], key: Key4, action: MoveToTag, arg: 3),
47 (modifiers: [Mod4, Shift], key: Key5, action: MoveToTag, arg: 4),
48 (modifiers: [Mod4, Shift], key: Key6, action: MoveToTag, arg: 5),
49 (modifiers: [Mod4, Shift], key: Key7, action: MoveToTag, arg: 6),
50 (modifiers: [Mod4, Shift], key: Key8, action: MoveToTag, arg: 7),
51 (modifiers: [Mod4, Shift], key: Key9, action: MoveToTag, arg: 8),
52 ],
53
54 status_blocks: [
55 (format: "Ram: {used}/{total} GB", command: "Ram", interval_secs: 5, color: 0x7aa2f7, underline: true),
56 (format: " │ ", command: "Static", interval_secs: 18446744073709551615, color: 0xa9b1d6, underline: false),
57 (format: "Kernel: {}", command: "Shell", command_arg: "uname -r", interval_secs: 18446744073709551615, color: 0xf7768e, underline: true),
58 (format: " │ ", command: "Static", interval_secs: 18446744073709551615, color: 0xa9b1d6, underline: false),
59 (format: "{}", command: "DateTime", command_arg: "%a, %b %d - %-I:%M %P", interval_secs: 1, color: 0x0db9d7, underline: true),
60 ],
61
62 scheme_normal: (foreground: 0xbbbbbb, background: 0x1a1b26, underline: 0x444444),
63 scheme_occupied: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0x0db9d7),
64 scheme_selected: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0xad8ee6),
65 )