tony / oxwm

Branch: d7af0b4
Switch branches/tags
master
tonybtw Updated for commit message requests and added floating (normie layout) and bind to toggle layouts. 0335582 2025-10-25
138 lines · 5 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: F, action: ChangeLayout, arg: "normie"),
36 (modifiers: [Mod1], key: C, action: ChangeLayout, arg: "tiling"),
37 (modifiers: [Mod1], key: N, action: CycleLayout),
38 (modifiers: [Mod1], key: A, action: ToggleGaps),
39 (modifiers: [Mod1, Shift], key: Q, action: Quit),
40 (modifiers: [Mod1, Shift], key: R, action: Restart),
41 (modifiers: [Mod1], key: J, action: FocusStack, arg: -1),
42 (modifiers: [Mod1], key: K, action: FocusStack, arg: 1),
43 (modifiers: [Mod1], key: Key1, action: ViewTag, arg: 0),
44 (modifiers: [Mod1], key: Key2, action: ViewTag, arg: 1),
45 (modifiers: [Mod1], key: Key3, action: ViewTag, arg: 2),
46 (modifiers: [Mod1], key: Key4, action: ViewTag, arg: 3),
47 (modifiers: [Mod1], key: Key5, action: ViewTag, arg: 4),
48 (modifiers: [Mod1], key: Key6, action: ViewTag, arg: 5),
49 (modifiers: [Mod1], key: Key7, action: ViewTag, arg: 6),
50 (modifiers: [Mod1], key: Key8, action: ViewTag, arg: 7),
51 (modifiers: [Mod1], key: Key9, action: ViewTag, arg: 8),
52 (modifiers: [Mod1, Shift], key: Key1, action: MoveToTag, arg: 0),
53 (modifiers: [Mod1, Shift], key: Key2, action: MoveToTag, arg: 1),
54 (modifiers: [Mod1, Shift], key: Key3, action: MoveToTag, arg: 2),
55 (modifiers: [Mod1, Shift], key: Key4, action: MoveToTag, arg: 3),
56 (modifiers: [Mod1, Shift], key: Key5, action: MoveToTag, arg: 4),
57 (modifiers: [Mod1, Shift], key: Key6, action: MoveToTag, arg: 5),
58 (modifiers: [Mod1, Shift], key: Key7, action: MoveToTag, arg: 6),
59 (modifiers: [Mod1, Shift], key: Key8, action: MoveToTag, arg: 7),
60 (modifiers: [Mod1, Shift], key: Key9, action: MoveToTag, arg: 8),
61 ],
62
63 status_blocks: [
64 // Battery block (shows charging/discharging status)
65 (
66 format: "",
67 command: "Battery",
68 battery_formats: (
69 charging: "󰂄 Bat: {}%",
70 discharging: "󰁹 Bat:{}%",
71 full: "󰁹 Bat: {}%",
72 ),
73 interval_secs: 30,
74 color: 0x9ece6a,
75 underline: true,
76 ),
77
78 // Separator
79 (
80 format: " │ ",
81 command: "Static",
82 interval_secs: 18446744073709551615,
83 color: 0xa9b1d6,
84 underline: false,
85 ),
86
87 // RAM usage
88 (
89 format: "󰍛 {used}/{total} GB",
90 command: "Ram",
91 interval_secs: 5,
92 color: 0x7aa2f7,
93 underline: true,
94 ),
95
96 // Separator
97 (
98 format: " │ ",
99 command: "Static",
100 interval_secs: 18446744073709551615,
101 color: 0xa9b1d6,
102 underline: false,
103 ),
104
105 // Kernel version
106 (
107 format: " {}",
108 command: "Shell",
109 command_arg: "uname -r",
110 interval_secs: 18446744073709551615,
111 color: 0xf7768e,
112 underline: true,
113 ),
114
115 // Separator
116 (
117 format: " │ ",
118 command: "Static",
119 interval_secs: 18446744073709551615,
120 color: 0xa9b1d6,
121 underline: false,
122 ),
123
124 // Date and time
125 (
126 format: "󰸘 {}",
127 command: "DateTime",
128 command_arg: "%a, %b %d - %-I:%M %P",
129 interval_secs: 1,
130 color: 0x0db9d7,
131 underline: true,
132 ),
133 ],
134
135 scheme_normal: (foreground: 0xbbbbbb, background: 0x1a1b26, underline: 0x444444),
136 scheme_occupied: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0x0db9d7),
137 scheme_selected: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0xad8ee6),
138 )