| 22 |
22 |
|
local modkey = "Mod4" |
| 23 |
23 |
|
|
| 24 |
24 |
|
-- Terminal emulator command (defaults to alacritty) |
| 25 |
|
- |
local terminal = "alacritty" |
|
25 |
+ |
local terminal = "wezterm" |
| 26 |
26 |
|
|
| 27 |
27 |
|
-- Color palette - customize these to match your theme |
| 28 |
28 |
|
-- Alternatively you can import other files in here, such as |
|
| 118 |
118 |
|
------------------------------------------------------------------------------- |
| 119 |
119 |
|
-- Set custom symbols for layouts (displayed in the status bar) |
| 120 |
120 |
|
-- Available layouts: "tiling", "normie" (floating), "grid", "monocle", "tabbed", "dwindle" |
| 121 |
|
- |
oxwm.set_layout_symbol("tiling", "[T]") |
| 122 |
121 |
|
oxwm.set_layout_symbol("normie", "[F]") |
|
122 |
+ |
oxwm.set_layout_symbol("tiling", "[T]") |
| 123 |
123 |
|
oxwm.set_layout_symbol("tabbed", "[=]") |
| 124 |
|
- |
-- oxwm.set_layout_symbol("dwindle", "[\\]") |
|
124 |
+ |
oxwm.set_layout_symbol("dwindle", "[\\]") |
| 125 |
125 |
|
|
| 126 |
126 |
|
-- Example: bind dwindle (fibonacci) layout |
| 127 |
|
- |
-- oxwm.key.bind({ modkey }, "R", oxwm.layout.set("dwindle")) |
|
127 |
+ |
oxwm.key.bind({ modkey }, "R", oxwm.layout.set("dwindle")) |
| 128 |
128 |
|
|
| 129 |
129 |
|
-- Set default layout of specific tag (tag_index, layout_name) |
| 130 |
130 |
|
-- Unset value uses oxwm.set_layout value |
|
| 144 |
144 |
|
|
| 145 |
145 |
|
-- Where floating windows spawn: "top-left", "top-center", "top-right", |
| 146 |
146 |
|
-- "center-left", "center", "center-right", "bottom-left", "bottom-center", "bottom-right" |
| 147 |
|
- |
oxwm.set_floating_position("center") |
|
147 |
+ |
oxwm.set_floating_position("top-right") |
| 148 |
148 |
|
|
| 149 |
149 |
|
-- Smart Enabled = No border if 1 window |
| 150 |
150 |
|
oxwm.gaps.set_smart(true) |
| 151 |
151 |
|
-- Inner gaps (horizontal, vertical) in pixels |
| 152 |
|
- |
oxwm.gaps.set_inner(5, 5) |
|
152 |
+ |
oxwm.gaps.set_inner(10, 10) |
| 153 |
153 |
|
-- Outer gaps (horizontal, vertical) in pixels |
| 154 |
|
- |
oxwm.gaps.set_outer(5, 5) |
|
154 |
+ |
oxwm.gaps.set_outer(10, 10) |
| 155 |
155 |
|
|
| 156 |
156 |
|
------------------------------------------------------------------------------- |
| 157 |
157 |
|
-- Window Rules |
|
| 166 |
166 |
|
-- - Configure window behavior based on title or class |
| 167 |
167 |
|
|
| 168 |
168 |
|
-- Examples (uncomment to use): |
| 169 |
|
- |
oxwm.rule.add({ instance = "gimp", floating = true }) |
|
169 |
+ |
oxwm.rule.add({ instance = "chromium", floating = true, tag = 2 }) |
|
170 |
+ |
oxwm.rule.add({ instance = "gimp", floating = true}) |
| 170 |
171 |
|
-- oxwm.rule.add({ class = "Alacritty", tag = 9, focus = true }) |
| 171 |
172 |
|
-- oxwm.rule.add({ class = "firefox", title = "Library", floating = true }) |
| 172 |
173 |
|
-- oxwm.rule.add({ class = "firefox", tag = 2 }) |
|
| 218 |
219 |
|
oxwm.key.bind({ modkey }, "Return", oxwm.spawn_terminal()) |
| 219 |
220 |
|
-- Launch Dmenu |
| 220 |
221 |
|
oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "dmenu_run -l 10" })) |
| 221 |
|
- |
-- Copy screenshot to clipboard |
| 222 |
|
- |
oxwm.key.bind({ modkey }, "S", oxwm.spawn({ "sh", "-c", "maim -s | xclip -selection clipboard -t image/png" })) |
|
222 |
+ |
-- Save screenshot to ~/Downloads |
|
223 |
+ |
oxwm.key.bind({ modkey }, "S", oxwm.spawn({ "sh", "-c", "maim -s ~/Downloads/screenshot-$(date +%Y%m%d-%H%M%S).png" })) |
| 223 |
224 |
|
oxwm.key.bind({ modkey }, "W", oxwm.client.kill()) |
| 224 |
225 |
|
|
| 225 |
226 |
|
-- Keybind overlay - Shows important keybindings on screen |
| 226 |
227 |
|
oxwm.key.bind({ modkey, "Shift" }, "Slash", oxwm.show_keybinds()) |
| 227 |
228 |
|
|
| 228 |
229 |
|
-- Window state toggles |
| 229 |
|
- |
oxwm.key.bind({ modkey, "Shift" }, "F", oxwm.client.toggle_fullscreen()) |
| 230 |
|
- |
oxwm.key.bind({ modkey, "Shift" }, "Space", oxwm.client.toggle_floating()) |
|
230 |
+ |
--oxwm.key.bind({ modkey, "Shift" }, "A", oxwm.client.toggle_fullscreen()) |
|
231 |
+ |
oxwm.key.bind({ modkey, "Shift" }, "F", oxwm.client.toggle_floating()) |
| 231 |
232 |
|
|
| 232 |
233 |
|
-- Layout management |
| 233 |
234 |
|
oxwm.key.bind({ modkey }, "F", oxwm.layout.set("normie")) |