tony / oxwm

Branch: dd010d0
Switch branches/tags
master
tonybtw Added layout names into bar, and in config files to be configurable. Updated test config and default config to include ExchangeClient, and SmartMoveWin 7858063 2025-10-27
151 lines · 5.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 tags: ["1", "2", "3", "4", "5", "6", "7", "8", "9"],
20
21 // Alternative icon tags (uncomment to use):
22 // tags: ["", "󰊯", "", "", "󰙯", "󱇤", "", "󱘶", "󰧮"],
23
24 // Alternative text tags (uncomment to use):
25 // tags: ["DEV", "WWW", "SYS", "DOC", "VBOX", "CHAT", "MUS", "VID", "MISC"],
26
27 layout_symbols: [
28 (name: "tiling", symbol: "[T]"),
29 (name: "normie", symbol: "[F]"),
30 ],
31
32 keybindings: [
33 (modifiers: [Mod1], key: Return, action: Spawn, arg: "st"),
34 (modifiers: [Mod1], key: D, action: Spawn, arg: ["sh", "-c", "dmenu_run -l 10"]),
35 (modifiers: [Mod1], key: S, action: Spawn, arg: ["sh", "-c", "maim -s | xclip -selection clipboard -t image/png"]),
36 (modifiers: [Mod1], key: Q, action: KillClient),
37 (modifiers: [Mod1, Shift], key: F, action: ToggleFullScreen),
38 (modifiers: [Mod1, Shift], key: Space, action: ToggleFloating),
39 (modifiers: [Mod1], key: F, action: ChangeLayout, arg: "normie"),
40 (modifiers: [Mod1], key: C, action: ChangeLayout, arg: "tiling"),
41 (modifiers: [Mod1], key: N, action: CycleLayout),
42 (modifiers: [Mod1], key: A, action: ToggleGaps),
43 (modifiers: [Mod1, Shift], key: Q, action: Quit),
44 (modifiers: [Mod1, Shift], key: R, action: Restart),
45 (modifiers: [Mod1], key: J, action: FocusStack, arg: -1),
46 (modifiers: [Mod1], key: K, action: FocusStack, arg: 1),
47 // Exchange client (vim-style with Mod+Shift)
48 (modifiers: [Mod1, Control], key: K, action: SmartMoveWin, arg: 0), // UP
49 (modifiers: [Mod1, Control], key: J, action: SmartMoveWin, arg: 1), // DOWN
50 (modifiers: [Mod1, Control], key: H, action: SmartMoveWin, arg: 2), // LEFT
51 (modifiers: [Mod1, Control], key: L, action: SmartMoveWin, arg: 3), // RIGHT
52 (modifiers: [Mod1, Shift], key: K, action: ExchangeClient, arg: 0), // UP
53 (modifiers: [Mod1, Shift], key: J, action: ExchangeClient, arg: 1), // DOWN
54 (modifiers: [Mod1, Shift], key: H, action: ExchangeClient, arg: 2), // LEFT
55 (modifiers: [Mod1, Shift], key: L, action: ExchangeClient, arg: 3), // RIGHT
56 (modifiers: [Mod1], key: Key1, action: ViewTag, arg: 0),
57 (modifiers: [Mod1], key: Key2, action: ViewTag, arg: 1),
58 (modifiers: [Mod1], key: Key3, action: ViewTag, arg: 2),
59 (modifiers: [Mod1], key: Key4, action: ViewTag, arg: 3),
60 (modifiers: [Mod1], key: Key5, action: ViewTag, arg: 4),
61 (modifiers: [Mod1], key: Key6, action: ViewTag, arg: 5),
62 (modifiers: [Mod1], key: Key7, action: ViewTag, arg: 6),
63 (modifiers: [Mod1], key: Key8, action: ViewTag, arg: 7),
64 (modifiers: [Mod1], key: Key9, action: ViewTag, arg: 8),
65 (modifiers: [Mod1, Shift], key: Key1, action: MoveToTag, arg: 0),
66 (modifiers: [Mod1, Shift], key: Key2, action: MoveToTag, arg: 1),
67 (modifiers: [Mod1, Shift], key: Key3, action: MoveToTag, arg: 2),
68 (modifiers: [Mod1, Shift], key: Key4, action: MoveToTag, arg: 3),
69 (modifiers: [Mod1, Shift], key: Key5, action: MoveToTag, arg: 4),
70 (modifiers: [Mod1, Shift], key: Key6, action: MoveToTag, arg: 5),
71 (modifiers: [Mod1, Shift], key: Key7, action: MoveToTag, arg: 6),
72 (modifiers: [Mod1, Shift], key: Key8, action: MoveToTag, arg: 7),
73 (modifiers: [Mod1, Shift], key: Key9, action: MoveToTag, arg: 8),
74 ],
75
76 status_blocks: [
77 // Battery block (shows charging/discharging status)
78 (
79 format: "",
80 command: "Battery",
81 battery_formats: (
82 charging: "󰂄 Bat: {}%",
83 discharging: "󰁹 Bat:{}%",
84 full: "󰁹 Bat: {}%",
85 ),
86 interval_secs: 30,
87 color: 0x9ece6a,
88 underline: true,
89 ),
90
91 // Separator
92 (
93 format: " │ ",
94 command: "Static",
95 interval_secs: 18446744073709551615,
96 color: 0xa9b1d6,
97 underline: false,
98 ),
99
100 // RAM usage
101 (
102 format: "󰍛 {used}/{total} GB",
103 command: "Ram",
104 interval_secs: 5,
105 color: 0x7aa2f7,
106 underline: true,
107 ),
108
109 // Separator
110 (
111 format: " │ ",
112 command: "Static",
113 interval_secs: 18446744073709551615,
114 color: 0xa9b1d6,
115 underline: false,
116 ),
117
118 // Kernel version
119 (
120 format: " {}",
121 command: "Shell",
122 command_arg: "uname -r",
123 interval_secs: 18446744073709551615,
124 color: 0xf7768e,
125 underline: true,
126 ),
127
128 // Separator
129 (
130 format: " │ ",
131 command: "Static",
132 interval_secs: 18446744073709551615,
133 color: 0xa9b1d6,
134 underline: false,
135 ),
136
137 // Date and time
138 (
139 format: "󰸘 {}",
140 command: "DateTime",
141 command_arg: "%a, %b %d - %-I:%M %P",
142 interval_secs: 1,
143 color: 0x0db9d7,
144 underline: true,
145 ),
146 ],
147
148 scheme_normal: (foreground: 0xbbbbbb, background: 0x1a1b26, underline: 0x444444),
149 scheme_occupied: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0x0db9d7),
150 scheme_selected: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0xad8ee6),
151 )