updated tonarchy config
Browse files
+86 −20 templates/tonarchy-config.lua
| @@ -1,25 +1,26 @@ | ||
| 1 | 1 | ---@meta |
| 2 | 2 | ---@module 'oxwm' |
| 3 | - | |
| 3 | +--- | |
| 4 | 4 | local modkey = "Mod4" |
| 5 | 5 | local terminal = "alacritty" |
| 6 | 6 | |
| 7 | 7 | local colors = { |
| 8 | - fg = "#bbbbbb", | |
| 9 | - red = "#f7768e", | |
| 10 | - bg = "#1a1b26", | |
| 11 | - cyan = "#0db9d7", | |
| 12 | - green = "#9ece6a", | |
| 13 | - lavender = "#a9b1d6", | |
| 14 | - light_blue = "#7aa2f7", | |
| 15 | - grey = "#bbbbbb", | |
| 16 | - blue = "#6dade3", | |
| 17 | - purple = "#ad8ee6", | |
| 18 | - sep = "#444b6a", | |
| 8 | + bg = "#000000", | |
| 9 | + fg = "#d4d4d4", | |
| 10 | + red = "#f14c4c", | |
| 11 | + cyan = "#9cdcfe", | |
| 12 | + green = "#6a9955", | |
| 13 | + light_blue = "#4ec9b0", | |
| 14 | + blue = "#569cd6", | |
| 15 | + purple = "#c586c0", | |
| 16 | + yellow = "#dcdcaa", | |
| 17 | + orange = "#ce9178", | |
| 18 | + grey = "#808080", | |
| 19 | + sep = "#3c3c3c", | |
| 19 | 20 | } |
| 20 | 21 | |
| 21 | - | |
| 22 | -local tags = { "", "", "", "", "", "", "", "", "" } -- Example of nerd font icon tags | |
| 22 | +local tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9" } | |
| 23 | +-- local tags = { "", "", "", "", "", "", "", "", "" } -- Example of nerd font icon tags | |
| 23 | 24 | |
| 24 | 25 | local bar_font = "JetBrainsMono Nerd Font Propo:style=Bold:size=12" |
| 25 | 26 | |
| @@ -32,7 +33,7 @@ local blocks = { | ||
| 32 | 33 | underline = true, |
| 33 | 34 | }), |
| 34 | 35 | oxwm.bar.block.static({ |
| 35 | - text = " │ ", | |
| 36 | + text = "│", | |
| 36 | 37 | interval = 999999999, |
| 37 | 38 | color = colors.sep, |
| 38 | 39 | underline = false, |
| @@ -44,7 +45,7 @@ local blocks = { | ||
| 44 | 45 | underline = true, |
| 45 | 46 | }), |
| 46 | 47 | oxwm.bar.block.static({ |
| 47 | - text = " │ ", | |
| 48 | + text = "│", | |
| 48 | 49 | interval = 999999999, |
| 49 | 50 | color = colors.sep, |
| 50 | 51 | underline = false, |
| @@ -56,53 +57,91 @@ local blocks = { | ||
| 56 | 57 | color = colors.cyan, |
| 57 | 58 | underline = true, |
| 58 | 59 | }), |
| 60 | + oxwm.bar.block.static({ | |
| 61 | + text = "│", | |
| 62 | + interval = 999999999, | |
| 63 | + color = colors.sep, | |
| 64 | + underline = false, | |
| 65 | + }), | |
| 66 | + oxwm.bar.block.systray({ | |
| 67 | + }), | |
| 68 | + -- Uncomment to add battery status (useful for laptops) | |
| 69 | + -- oxwm.bar.block.battery({ | |
| 70 | + -- format = "Bat: {}%", | |
| 71 | + -- charging = "⚡ Bat: {}%", | |
| 72 | + -- discharging = "- Bat: {}%", | |
| 73 | + -- full = "✓ Bat: {}%", | |
| 74 | + -- interval = 30, | |
| 75 | + -- color = colors.green, | |
| 76 | + -- underline = true, | |
| 77 | + -- }), | |
| 59 | 78 | }; |
| 60 | 79 | |
| 80 | +------------------------------------------------------------------------------- | |
| 81 | +-- Basic Settings | |
| 82 | +------------------------------------------------------------------------------- | |
| 61 | 83 | oxwm.set_terminal(terminal) |
| 62 | 84 | oxwm.set_modkey(modkey) |
| 63 | 85 | oxwm.set_tags(tags) |
| 64 | 86 | |
| 87 | +------------------------------------------------------------------------------- | |
| 88 | +-- Layouts | |
| 89 | +------------------------------------------------------------------------------- | |
| 65 | 90 | oxwm.set_layout_symbol("tiling", "[T]") |
| 66 | 91 | oxwm.set_layout_symbol("normie", "[F]") |
| 67 | 92 | oxwm.set_layout_symbol("tabbed", "[=]") |
| 68 | 93 | |
| 94 | +------------------------------------------------------------------------------- | |
| 95 | +-- Appearance | |
| 96 | +------------------------------------------------------------------------------- | |
| 69 | 97 | oxwm.border.set_width(0) |
| 70 | 98 | oxwm.border.set_focused_color(colors.purple) |
| 71 | 99 | oxwm.border.set_unfocused_color(colors.grey) |
| 72 | 100 | |
| 101 | +-- Smart Enabled = No border if 1 window | |
| 73 | 102 | oxwm.gaps.set_smart(false) |
| 74 | -oxwm.gaps.set_inner(0, 0) | |
| 75 | -oxwm.gaps.set_outer(0, 0) | |
| 103 | +oxwm.gaps.set_inner(5, 5) | |
| 104 | +oxwm.gaps.set_outer(5, 5) | |
| 105 | + | |
| 76 | 106 | oxwm.rule.add({ instance = "gimp", floating = true }) |
| 77 | 107 | oxwm.rule.add({ class = "firefox", tag = 3 }) |
| 78 | 108 | |
| 79 | 109 | oxwm.bar.set_font(bar_font) |
| 80 | 110 | oxwm.bar.set_blocks(blocks) |
| 81 | 111 | oxwm.bar.set_scheme_normal(colors.fg, colors.bg, "#444444") |
| 82 | -oxwm.bar.set_scheme_occupied(colors.cyan, colors.bg, colors.cyan) | |
| 83 | -oxwm.bar.set_scheme_selected(colors.cyan, colors.bg, colors.purple) | |
| 112 | +oxwm.bar.set_scheme_occupied(colors.blue, colors.bg, colors.cyan) | |
| 113 | +oxwm.bar.set_scheme_selected(colors.blue, colors.bg, colors.purple) | |
| 84 | 114 | |
| 85 | 115 | oxwm.key.bind({ modkey }, "Return", oxwm.spawn_terminal()) |
| 116 | +-- oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "dmenu_run -l 10" })) | |
| 86 | 117 | oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "rofi -show drun" })) |
| 87 | 118 | oxwm.key.bind({ modkey }, "S", oxwm.spawn({ "sh", "-c", "maim -s | xclip -selection clipboard -t image/png" })) |
| 88 | 119 | oxwm.key.bind({ modkey }, "Q", oxwm.client.kill()) |
| 89 | 120 | |
| 90 | 121 | oxwm.key.bind({ modkey, "Shift" }, "Slash", oxwm.show_keybinds()) |
| 122 | + | |
| 91 | 123 | oxwm.key.bind({ modkey, "Shift" }, "F", oxwm.client.toggle_fullscreen()) |
| 92 | 124 | oxwm.key.bind({ modkey, "Shift" }, "Space", oxwm.client.toggle_floating()) |
| 125 | + | |
| 93 | 126 | oxwm.key.bind({ modkey }, "C", oxwm.layout.set("tiling")) |
| 94 | 127 | oxwm.key.bind({ modkey }, "N", oxwm.layout.cycle()) |
| 128 | + | |
| 95 | 129 | oxwm.key.bind({ modkey }, "H", oxwm.set_master_factor(-5)) |
| 96 | 130 | oxwm.key.bind({ modkey }, "L", oxwm.set_master_factor(5)) |
| 97 | 131 | oxwm.key.bind({ modkey }, "I", oxwm.inc_num_master(1)) |
| 98 | 132 | oxwm.key.bind({ modkey }, "P", oxwm.inc_num_master(-1)) |
| 133 | + | |
| 99 | 134 | oxwm.key.bind({ modkey }, "A", oxwm.toggle_gaps()) |
| 135 | + | |
| 100 | 136 | oxwm.key.bind({ modkey, "Shift" }, "Q", oxwm.quit()) |
| 101 | 137 | oxwm.key.bind({ modkey, "Shift" }, "R", oxwm.restart()) |
| 138 | + | |
| 102 | 139 | oxwm.key.bind({ modkey }, "J", oxwm.client.focus_stack(1)) |
| 103 | 140 | oxwm.key.bind({ modkey }, "K", oxwm.client.focus_stack(-1)) |
| 141 | + | |
| 104 | 142 | oxwm.key.bind({ modkey, "Shift" }, "J", oxwm.client.move_stack(1)) |
| 105 | 143 | oxwm.key.bind({ modkey, "Shift" }, "K", oxwm.client.move_stack(-1)) |
| 144 | + | |
| 106 | 145 | oxwm.key.bind({ modkey }, "Comma", oxwm.monitor.focus(-1)) |
| 107 | 146 | oxwm.key.bind({ modkey }, "Period", oxwm.monitor.focus(1)) |
| 108 | 147 | oxwm.key.bind({ modkey, "Shift" }, "Comma", oxwm.monitor.tag(-1)) |
| @@ -152,3 +191,30 @@ oxwm.key.chord({ | ||
| 152 | 191 | { { modkey }, "Space" }, |
| 153 | 192 | { {}, "T" } |
| 154 | 193 | }, oxwm.spawn_terminal()) |
| 194 | + | |
| 195 | +oxwm.key.chord({ | |
| 196 | + { { modkey }, "F" }, | |
| 197 | + { {}, "B" } | |
| 198 | +}, oxwm.spawn({ "sh", "-c", "$HOME/repos/dmenu-scripts/bookmarks-dmenu.sh" })) | |
| 199 | + | |
| 200 | +oxwm.key.chord({ | |
| 201 | + { { modkey }, "F" }, | |
| 202 | + { {}, "F" } | |
| 203 | +}, oxwm.spawn({ "sh", "-c", "$HOME/repos/dmenu-scripts/repos-dmenu.sh" })) | |
| 204 | + | |
| 205 | +oxwm.key.chord({ | |
| 206 | + { { modkey }, "F" }, | |
| 207 | + { {}, "O" } | |
| 208 | +}, oxwm.spawn({ "sh", "-c", "$HOME/repos/dmenu-scripts/tmux-dmenu.sh" })) | |
| 209 | + | |
| 210 | + | |
| 211 | +------------------------------------------------------------------------------- | |
| 212 | +-- Autostart | |
| 213 | +------------------------------------------------------------------------------- | |
| 214 | +-- Commands to run once when OXWM starts | |
| 215 | +-- Uncomment and modify these examples, or add your own | |
| 216 | + | |
| 217 | +-- oxwm.autostart("picom") | |
| 218 | +-- oxwm.autostart("xwallpaper --zoom ~/walls/dune.jpg") | |
| 219 | +-- oxwm.autostart("dunst") | |
| 220 | +-- oxwm.autostart("nm-applet") |