From a800da52bca3b4ebecb65b419f7887979aac78e3 Mon Sep 17 00:00:00 2001 From: dacctal Date: Thu, 11 Jun 2026 19:38:02 +0000 Subject: oxwm --- .config/oxwm/caelus.png | Bin 0 -> 39883 bytes .config/oxwm/config.lua | 172 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 172 insertions(+) create mode 100644 .config/oxwm/caelus.png create mode 100644 .config/oxwm/config.lua diff --git a/.config/oxwm/caelus.png b/.config/oxwm/caelus.png new file mode 100644 index 0000000..354b0b8 Binary files /dev/null and b/.config/oxwm/caelus.png differ diff --git a/.config/oxwm/config.lua b/.config/oxwm/config.lua new file mode 100644 index 0000000..6677f2d --- /dev/null +++ b/.config/oxwm/config.lua @@ -0,0 +1,172 @@ +oxwm.autostart("gentoo-pipewire-launcher") +oxwm.autostart("gentoo-pipewire-launcher restart") +oxwm.autostart("xwallpaper --center ~/.config/oxwm/caelus.png") + +local modkey = "Mod4" +local terminal = "st" + +local tags = { "1", "2", "3", "4", "5", "6", "7", "8", "9" } +-- for windows / macos bait +--local tags = { "", "BINBOWS", "FILE", "EDIT", "VIEW", "GO", "WINDOW", "HELP", "" } +local bar_font = "BigBlueTermPlus Nerd Font:style=Bold:size=10" + +local colors = { + black = "#0f0f0f", + gray_0 = "#141514", + gray_1 = "#1e1f1e", + gray_2 = "#272a28", + gray_3 = "#3b403c", + gray_4 = "#585f5b", + gray_5 = "#6c756f", + gray_6 = "#888e7b", + gray_7 = "#9a9c8b", + gray_8 = "#b6b69a", + gray_9 = "#d9cdb5", + gray_10 = "#e3d6c9", + white = "#f4decd", + red_d = "#f16e65", + red_l = "#f6a8a2", + orange_d = "#ef934d", + orange_l = "#f6be93", + yellow = "#efbf71", + green_d = "#7ec97e", + green_l = "#b4dfb4", + cyan_d = "#6fc3b5", + cyan_l = "#a5d9d0", + blue_d = "#71a1d6", + blue_l = "#accae7", + magenta_d = "#e28dc6", + magenta_l = "#ecb6da", + fg = gray_8, + bg = black, +} + +local blocks = { + oxwm.bar.block.ram({ + format = "Ram: {used}/{total} GB", + interval = 5, + color = colors.blue_d, + underline = true, + }), + oxwm.bar.block.static({ + text = "│", + interval = 999999999, + color = colors.magenta_l, + underline = false, + }), + -- + -- for windows / macos bait + --oxwm.bar.block.static({ + -- text = " ", + -- interval = 999999999, + -- color = colors.black, + -- underline = false, + --}), + --oxwm.bar.block.static({ + -- text = " 󰖩", + -- interval = 999999999, + -- color = colors.black, + -- underline = false, + --}), + --oxwm.bar.block.static({ + -- text = "  ", + -- interval = 999999999, + -- color = colors.black, + -- underline = false, + --}), + --oxwm.bar.block.static({ + -- text = " ", + -- interval = 999999999, + -- color = colors.black, + -- underline = false, + --}), + --oxwm.bar.block.static({ + -- text = "Wed 2026-04-01", + -- interval = 999999999, + -- color = colors.black, + -- underline = false, + --}), + -- + oxwm.bar.block.battery({ + format = "Bat: {}%", + charging = "⚡ Bat: {}%", + discharging = "- Bat: {}%", + full = "✓ Bat: {}%", + interval = 30, + color = colors.green_d, + underline = true, + }), +}; + +oxwm.set_terminal(terminal) +oxwm.set_modkey(modkey) +oxwm.set_tags(tags) + +-- border +oxwm.border.set_width(2) +oxwm.border.set_focused_color(colors.orange_d) +oxwm.border.set_unfocused_color(colors.gray_4) + +-- bar +oxwm.bar.set_font(bar_font) +oxwm.bar.set_blocks(blocks) +oxwm.bar.set_scheme_normal(colors.gray_8, colors.gray_1, colors.gray_3) +oxwm.bar.set_scheme_occupied(colors.orange_d, colors.gray_1, colors.orange_d) +oxwm.bar.set_scheme_selected(colors.orange_d, colors.gray_1, colors.green_d) +-- +-- for windows / macos bait +--oxwm.bar.set_scheme_normal(colors.gray_2, colors.gray_9, colors.gray_7) +--oxwm.bar.set_scheme_occupied(colors.black, colors.gray_9, colors.black) +--oxwm.bar.set_scheme_selected(colors.black, colors.gray_9, colors.black) + +-- gaps +oxwm.gaps.set_enabled(true) +oxwm.gaps.set_inner(5, 5) +oxwm.gaps.set_outer(5, 5) + +-- layout +-- +-- for windows / macos bait +--oxwm.set_layout_symbol("tiling", "") +-- +oxwm.set_layout_symbol("tiling", "[T]") +oxwm.set_layout_symbol("normie", "[F]") +oxwm.set_layout_symbol("monocle", "[M]") +oxwm.set_layout_symbol("grid", "[G]") +oxwm.set_layout_symbol("tabbed", "[=]") +oxwm.set_layout_symbol("scrolling", "[>>]") + +-- keybinds +oxwm.key.bind({ modkey, "Shift" }, "E", oxwm.quit()) +oxwm.key.bind({ modkey, "Shift" }, "R", oxwm.restart()) +oxwm.key.bind({ }, "Print", oxwm.spawn({ "sh", "-c", "scrot -s - | xclip -i -selection clipboard -t image/png" })) +oxwm.key.bind({ modkey }, "Return", oxwm.spawn_terminal()) +oxwm.key.bind({ modkey }, "R", oxwm.spawn({ "sh", "-c", "st -c tux -T st -e tux" })) +oxwm.key.bind({ modkey }, "Z", oxwm.spawn({ "sh", "-c", "boomer" })) +oxwm.key.bind({ modkey }, "C", oxwm.client.kill()) +oxwm.key.bind({ modkey }, "F", oxwm.client.toggle_fullscreen()) +oxwm.key.bind({ modkey }, "Space", oxwm.client.toggle_floating()) +oxwm.key.bind({ modkey }, "Slash", oxwm.show_keybinds()) + +-- layout +oxwm.key.bind({ modkey }, "T", oxwm.layout.set("tiling")) +oxwm.key.bind({ modkey }, "S", oxwm.layout.set("scrolling")) +oxwm.key.bind({ modkey }, "Y", oxwm.layout.cycle()) + +-- adjust master area width +oxwm.key.bind({ modkey }, "H", oxwm.set_master_factor(-5)) +oxwm.key.bind({ modkey }, "L", oxwm.set_master_factor(5)) + +-- adjust number of master windows +oxwm.key.bind({ modkey }, "I", oxwm.inc_num_master(1)) +oxwm.key.bind({ modkey }, "P", oxwm.inc_num_master(-1)) + +-- focus window +oxwm.key.bind({ modkey }, "K", oxwm.focus_stack(1)) +oxwm.key.bind({ modkey }, "J", oxwm.focus_stack(-1)) + +-- window rules +oxwm.rule.add({ + class = "fsel", + floating = true, +}) -- cgit v1.2.3