summaryrefslogtreecommitdiff
path: root/oxwm
diff options
context:
space:
mode:
authorDavid Sadler <david@flashacademy.com>2026-07-07 09:15:46 +0100
committerDavid Sadler <david@flashacademy.com>2026-07-07 09:15:46 +0100
commit626c119a60701e2908e5795b3941078ebb8dba6b (patch)
treead8b6577953f50ad958051ef1d2493e8785ad4cb /oxwm
parent4c8d52122d962a0194737450e825471f27c93451 (diff)
parentfc2b007057dc763de14f9cd7860360bc5c9b646e (diff)
Merge branch 'main' into WSL
Diffstat (limited to 'oxwm')
-rw-r--r--oxwm/.config/oxwm/config.lua28
1 files changed, 23 insertions, 5 deletions
diff --git a/oxwm/.config/oxwm/config.lua b/oxwm/.config/oxwm/config.lua
index d899890..eda0688 100644
--- a/oxwm/.config/oxwm/config.lua
+++ b/oxwm/.config/oxwm/config.lua
@@ -138,7 +138,10 @@ oxwm.gaps.set_outer(0, 0)
-- Examples (uncomment to use):
-- oxwm.rule.add({ instance = "gimp", floating = true })
oxwm.rule.add({ class = "firefox", title = "Library", floating = true })
+oxwm.rule.add({ class = "firefox", role = "GtkFileChooserDialog", floating = true })
oxwm.rule.add({ class = "firefox", tag = 2 })
+oxwm.rule.add({ class = "zenity", floating = true })
+oxwm.rule.add({ class = "amiberry", tag = 3 })
-- oxwm.rule.add({ instance = "mpv", floating = true })
-- To find window properties, use xprop and click on the window
@@ -177,8 +180,8 @@ oxwm.bar.set_scheme_selected(colors.cyan, colors.bg, colors.purple)
-- Basic window management
oxwm.key.bind({ modkey }, "Return", oxwm.spawn_terminal())
--- Launch Dmenu
-oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "dmenu_run -l 10" }))
+-- Launch Rofi
+oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "rofi -show run" }))
-- Copy screenshot to clipboard
-- oxwm.key.bind({ modkey }, "S", oxwm.spawn({ "sh", "-c", "maim -s | xclip -selection clipboard -t image/png" }))
oxwm.key.bind({ modkey }, "Q", oxwm.client.kill())
@@ -274,9 +277,24 @@ oxwm.key.bind({ modkey, "Control", "Shift" }, "9", oxwm.tag.toggletag(8))
-- Format: {{modifiers}, key1}, {{modifiers}, key2}, ...
-- Example: Press Mod4+Space, then release and press T to spawn a terminal without auto starting anything.
oxwm.key.chord({
+ { { modkey }, "b" },
+ { {}, "a" }
+}, oxwm.spawn({ "add-bookmark.sh" }))
+
+oxwm.key.chord({
+ { { modkey }, "b" },
+ { {}, "o" }
+}, oxwm.spawn({ "open-bookmark.sh" }))
+
+oxwm.key.chord({
+ { { modkey }, "Space" },
+ { {}, "p" }
+}, oxwm.spawn({ "power.sh" }))
+
+oxwm.key.chord({
{ { modkey }, "Space" },
- { {}, "T" }
-}, oxwm.spawn({ "alacritty", "-e", "bash" }))
+ { {}, "b" }
+}, oxwm.spawn({ "bluetooth.sh" }))
-------------------------------------------------------------------------------
-- Autostart
@@ -286,7 +304,7 @@ oxwm.key.chord({
-- Keycode 108 was found using the exv command and pressing the AltGr key in the popup window.
oxwm.autostart("xmodmap -e 'keycode 108 = Super_R' -e 'add mod4 = Super_R'")
+oxwm.autostart("dunst")
-- oxwm.autostart("picom")
-- oxwm.autostart("feh --bg-scale ~/wallpaper.jpg")
--- oxwm.autostart("dunst")
-- oxwm.autostart("nm-applet")