| 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 | (keys: [(modifiers: [Mod1], key: Space), (modifiers: [], key: T)], action: Spawn, arg: "st"), |
| 35 | (modifiers: [Mod1], key: D, action: Spawn, arg: ["sh", "-c", "dmenu_run -l 10"]), |
| 36 | (modifiers: [Mod1], key: S, action: Spawn, arg: ["sh", "-c", "maim -s | xclip -selection clipboard -t image/png"]), |
| 37 | (modifiers: [Mod1], key: Q, action: KillClient), |
| 38 | (modifiers: [Mod1, Shift], key: F, action: ToggleFullScreen), |
| 39 | (modifiers: [Mod1, Shift], key: Space, action: ToggleFloating), |
| 40 | (modifiers: [Mod1], key: F, action: ChangeLayout, arg: "normie"), |
| 41 | (modifiers: [Mod1], key: C, action: ChangeLayout, arg: "tiling"), |
| 42 | (modifiers: [Mod1], key: N, action: CycleLayout), |
| 43 | (modifiers: [Mod1], key: A, action: ToggleGaps), |
| 44 | (modifiers: [Mod1, Shift], key: Q, action: Quit), |
| 45 | (modifiers: [Mod1, Shift], key: R, action: Restart), |
| 46 | (modifiers: [Mod1], key: J, action: FocusStack, arg: -1), |
| 47 | (modifiers: [Mod1], key: K, action: FocusStack, arg: 1), |
| 48 | // Exchange client (vim-style with Mod+Shift) |
| 49 | (modifiers: [Mod1, Control], key: K, action: SmartMoveWin, arg: 0), // UP |
| 50 | (modifiers: [Mod1, Control], key: J, action: SmartMoveWin, arg: 1), // DOWN |
| 51 | (modifiers: [Mod1, Control], key: H, action: SmartMoveWin, arg: 2), // LEFT |
| 52 | (modifiers: [Mod1, Control], key: L, action: SmartMoveWin, arg: 3), // RIGHT |
| 53 | (modifiers: [Mod1, Shift], key: K, action: ExchangeClient, arg: 0), // UP |
| 54 | (modifiers: [Mod1, Shift], key: J, action: ExchangeClient, arg: 1), // DOWN |
| 55 | (modifiers: [Mod1, Shift], key: H, action: ExchangeClient, arg: 2), // LEFT |
| 56 | (modifiers: [Mod1, Shift], key: L, action: ExchangeClient, arg: 3), // RIGHT |
| 57 | (modifiers: [Mod1], key: Key1, action: ViewTag, arg: 0), |
| 58 | (modifiers: [Mod1], key: Key2, action: ViewTag, arg: 1), |
| 59 | (modifiers: [Mod1], key: Key3, action: ViewTag, arg: 2), |
| 60 | (modifiers: [Mod1], key: Key4, action: ViewTag, arg: 3), |
| 61 | (modifiers: [Mod1], key: Key5, action: ViewTag, arg: 4), |
| 62 | (modifiers: [Mod1], key: Key6, action: ViewTag, arg: 5), |
| 63 | (modifiers: [Mod1], key: Key7, action: ViewTag, arg: 6), |
| 64 | (modifiers: [Mod1], key: Key8, action: ViewTag, arg: 7), |
| 65 | (modifiers: [Mod1], key: Key9, action: ViewTag, arg: 8), |
| 66 | (modifiers: [Mod1, Shift], key: Key1, action: MoveToTag, arg: 0), |
| 67 | (modifiers: [Mod1, Shift], key: Key2, action: MoveToTag, arg: 1), |
| 68 | (modifiers: [Mod1, Shift], key: Key3, action: MoveToTag, arg: 2), |
| 69 | (modifiers: [Mod1, Shift], key: Key4, action: MoveToTag, arg: 3), |
| 70 | (modifiers: [Mod1, Shift], key: Key5, action: MoveToTag, arg: 4), |
| 71 | (modifiers: [Mod1, Shift], key: Key6, action: MoveToTag, arg: 5), |
| 72 | (modifiers: [Mod1, Shift], key: Key7, action: MoveToTag, arg: 6), |
| 73 | (modifiers: [Mod1, Shift], key: Key8, action: MoveToTag, arg: 7), |
| 74 | (modifiers: [Mod1, Shift], key: Key9, action: MoveToTag, arg: 8), |
| 75 | ], |
| 76 | |
| 77 | status_blocks: [ |
| 78 | // Battery block (shows charging/discharging status) |
| 79 | ( |
| 80 | format: "", |
| 81 | command: "Battery", |
| 82 | battery_formats: ( |
| 83 | charging: " Bat: {}%", |
| 84 | discharging: " Bat:{}%", |
| 85 | full: " Bat: {}%", |
| 86 | ), |
| 87 | interval_secs: 30, |
| 88 | color: 0x9ece6a, |
| 89 | underline: true, |
| 90 | ), |
| 91 | |
| 92 | // Separator |
| 93 | ( |
| 94 | format: " │ ", |
| 95 | command: "Static", |
| 96 | interval_secs: 18446744073709551615, |
| 97 | color: 0xa9b1d6, |
| 98 | underline: false, |
| 99 | ), |
| 100 | |
| 101 | // RAM usage |
| 102 | ( |
| 103 | format: " {used}/{total} GB", |
| 104 | command: "Ram", |
| 105 | interval_secs: 5, |
| 106 | color: 0x7aa2f7, |
| 107 | underline: true, |
| 108 | ), |
| 109 | |
| 110 | // Separator |
| 111 | ( |
| 112 | format: " │ ", |
| 113 | command: "Static", |
| 114 | interval_secs: 18446744073709551615, |
| 115 | color: 0xa9b1d6, |
| 116 | underline: false, |
| 117 | ), |
| 118 | |
| 119 | // Kernel version |
| 120 | ( |
| 121 | format: " {}", |
| 122 | command: "Shell", |
| 123 | command_arg: "uname -r", |
| 124 | interval_secs: 18446744073709551615, |
| 125 | color: 0xf7768e, |
| 126 | underline: true, |
| 127 | ), |
| 128 | |
| 129 | // Separator |
| 130 | ( |
| 131 | format: " │ ", |
| 132 | command: "Static", |
| 133 | interval_secs: 18446744073709551615, |
| 134 | color: 0xa9b1d6, |
| 135 | underline: false, |
| 136 | ), |
| 137 | |
| 138 | // Date and time |
| 139 | ( |
| 140 | format: " {}", |
| 141 | command: "DateTime", |
| 142 | command_arg: "%a, %b %d - %-I:%M %P", |
| 143 | interval_secs: 1, |
| 144 | color: 0x0db9d7, |
| 145 | underline: true, |
| 146 | ), |
| 147 | ], |
| 148 | |
| 149 | scheme_normal: (foreground: 0xbbbbbb, background: 0x1a1b26, underline: 0x444444), |
| 150 | scheme_occupied: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0x0db9d7), |
| 151 | scheme_selected: (foreground: 0x0db9d7, background: 0x1a1b26, underline: 0xad8ee6), |
| 152 | ) |