tony / oxwm

Branch: ed311f0
Switch branches/tags
master
tonybtw fixed defaults and readme 3b8534f 2025-10-15
65 lines · 3.6 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: "1", action: "ViewTag", arg: 0),
35 (modifiers: ["Mod4"], key: "2", action: "ViewTag", arg: 1),
36 (modifiers: ["Mod4"], key: "3", action: "ViewTag", arg: 2),
37 (modifiers: ["Mod4"], key: "4", action: "ViewTag", arg: 3),
38 (modifiers: ["Mod4"], key: "5", action: "ViewTag", arg: 4),
39 (modifiers: ["Mod4"], key: "6", action: "ViewTag", arg: 5),
40 (modifiers: ["Mod4"], key: "7", action: "ViewTag", arg: 6),
41 (modifiers: ["Mod4"], key: "8", action: "ViewTag", arg: 7),
42 (modifiers: ["Mod4"], key: "9", action: "ViewTag", arg: 8),
43 (modifiers: ["Mod4", "Shift"], key: "1", action: "MoveToTag", arg: 0),
44 (modifiers: ["Mod4", "Shift"], key: "2", action: "MoveToTag", arg: 1),
45 (modifiers: ["Mod4", "Shift"], key: "3", action: "MoveToTag", arg: 2),
46 (modifiers: ["Mod4", "Shift"], key: "4", action: "MoveToTag", arg: 3),
47 (modifiers: ["Mod4", "Shift"], key: "5", action: "MoveToTag", arg: 4),
48 (modifiers: ["Mod4", "Shift"], key: "6", action: "MoveToTag", arg: 5),
49 (modifiers: ["Mod4", "Shift"], key: "7", action: "MoveToTag", arg: 6),
50 (modifiers: ["Mod4", "Shift"], key: "8", action: "MoveToTag", arg: 7),
51 (modifiers: ["Mod4", "Shift"], key: "9", 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 )