tony / oxwm

Branch: bc73085
Switch branches/tags
master
tonybtw Switched from RandR to Xinerama for monitor detection to match dwm's approach. Removed OXWM_MODKEY env var since --config flag handles different configs better. Moved test-config.ron into repo for version control. Fixed monitor-specific window operations to prevent actions from crossing monitor boundaries. bc73085 2025-10-21
135 lines · 4.8 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: "JetBrainsMono Nerd Font:style=Bold:size=12",
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: Mod1,
19
20 tags: ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
21
22 // Alternative icon tags (uncomment to use):
23 // tags: ["", "󰊯", "", "", "󰙯", "󱇤", "", "󱘶", "󰧮"],
24
25 // Alternative text tags (uncomment to use):
26 // tags: ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "MISC"],
27
28 keybindings: [
29 (modifiers: [Mod1], key: Return, action: Spawn, arg: "st"),
30 (modifiers: [Mod1], key: D, action: Spawn, arg: ["sh", "-c", "dmenu_run -l 10"]),
31 (modifiers: [Mod1], key: S, action: Spawn, arg: ["sh", "-c", "maim -s | xclip -selection clipboard -t image/png"]),
32 (modifiers: [Mod1], key: Q, action: KillClient),
33 (modifiers: [Mod1, Shift], key: F, action: ToggleFullScreen),
34 (modifiers: [Mod1, Shift], key: Space, action: ToggleFloating),
35 (modifiers: [Mod1], key: A, action: ToggleGaps),
36 (modifiers: [Mod1, Shift], key: Q, action: Quit),
37 (modifiers: [Mod1, Shift], key: R, action: Restart),
38 (modifiers: [Mod1], key: J, action: FocusStack, arg: -1),
39 (modifiers: [Mod1], key: K, action: FocusStack, arg: 1),
40 (modifiers: [Mod1], key: Key1, action: ViewTag, arg: 0),
41 (modifiers: [Mod1], key: Key2, action: ViewTag, arg: 1),
42 (modifiers: [Mod1], key: Key3, action: ViewTag, arg: 2),
43 (modifiers: [Mod1], key: Key4, action: ViewTag, arg: 3),
44 (modifiers: [Mod1], key: Key5, action: ViewTag, arg: 4),
45 (modifiers: [Mod1], key: Key6, action: ViewTag, arg: 5),
46 (modifiers: [Mod1], key: Key7, action: ViewTag, arg: 6),
47 (modifiers: [Mod1], key: Key8, action: ViewTag, arg: 7),
48 (modifiers: [Mod1], key: Key9, action: ViewTag, arg: 8),
49 (modifiers: [Mod1, Shift], key: Key1, action: MoveToTag, arg: 0),
50 (modifiers: [Mod1, Shift], key: Key2, action: MoveToTag, arg: 1),
51 (modifiers: [Mod1, Shift], key: Key3, action: MoveToTag, arg: 2),
52 (modifiers: [Mod1, Shift], key: Key4, action: MoveToTag, arg: 3),
53 (modifiers: [Mod1, Shift], key: Key5, action: MoveToTag, arg: 4),
54 (modifiers: [Mod1, Shift], key: Key6, action: MoveToTag, arg: 5),
55 (modifiers: [Mod1, Shift], key: Key7, action: MoveToTag, arg: 6),
56 (modifiers: [Mod1, Shift], key: Key8, action: MoveToTag, arg: 7),
57 (modifiers: [Mod1, Shift], key: Key9, action: MoveToTag, arg: 8),
58 ],
59
60 status_blocks: [
61 // Battery block (shows charging/discharging status)
62 (
63 format: "",
64 command: "Battery",
65 battery_formats: (
66 charging: "󰂄 Bat: {}%",
67 discharging: "󰁹 Bat:{}%",
68 full: "󰁹 Bat: {}%",
69 ),
70 interval_secs: 30,
71 color: 0x9ece6a,
72 underline: true,
73 ),
74
75 // Separator
76 (
77 format: " │ ",
78 command: "Static",
79 interval_secs: 18446744073709551615,
80 color: 0xa9b1d6,
81 underline: false,
82 ),
83
84 // RAM usage
85 (
86 format: "󰍛 {used}/{total} GB",
87 command: "Ram",
88 interval_secs: 5,
89 color: 0x7aa2f7,
90 underline: true,
91 ),
92
93 // Separator
94 (
95 format: " │ ",
96 command: "Static",
97 interval_secs: 18446744073709551615,
98 color: 0xa9b1d6,
99 underline: false,
100 ),
101
102 // Kernel version
103 (
104 format: " {}",
105 command: "Shell",
106 command_arg: "uname -r",
107 interval_secs: 18446744073709551615,
108 color: 0xf7768e,
109 underline: true,
110 ),
111
112 // Separator
113 (
114 format: " │ ",
115 command: "Static",
116 interval_secs: 18446744073709551615,
117 color: 0xa9b1d6,
118 underline: false,
119 ),
120
121 // Date and time
122 (
123 format: "󰸘 {}",
124 command: "DateTime",
125 command_arg: "%a, %b %d - %-I:%M %P",
126 interval_secs: 1,
127 color: 0x0db9d7,
128 underline: true,
129 ),
130 ],
131
132 scheme_normal: (foreground: 0xbbbbbb, background: 0x1a1b26, underline: 0x444444),
133 scheme_occupied: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0x0db9d7),
134 scheme_selected: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0xad8ee6),
135 )