From f688a44171dc070c3c877b281bfb6752be883318 Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sun, 21 Jun 2026 19:55:08 +0100 Subject: Add power management script --- oxwm/.config/oxwm/config.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'oxwm') diff --git a/oxwm/.config/oxwm/config.lua b/oxwm/.config/oxwm/config.lua index 80b6d27..67e037a 100644 --- a/oxwm/.config/oxwm/config.lua +++ b/oxwm/.config/oxwm/config.lua @@ -288,6 +288,11 @@ oxwm.key.chord({ { {}, "o" } }, oxwm.spawn({ "open-bookmark.sh" })) +oxwm.key.chord({ + { { modkey }, "Space" }, + { {}, "p" } +}, oxwm.spawn({ "power.sh" })) + ------------------------------------------------------------------------------- -- Autostart ------------------------------------------------------------------------------- -- cgit v1.2.3-13-gbd6f From e7bad4b453467fd50a3e194878abaa7508bcabdc Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sun, 21 Jun 2026 20:27:26 +0100 Subject: Configure zenity to use a floating window --- oxwm/.config/oxwm/config.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'oxwm') diff --git a/oxwm/.config/oxwm/config.lua b/oxwm/.config/oxwm/config.lua index 67e037a..1115575 100644 --- a/oxwm/.config/oxwm/config.lua +++ b/oxwm/.config/oxwm/config.lua @@ -139,6 +139,7 @@ oxwm.gaps.set_outer(0, 0) -- oxwm.rule.add({ instance = "gimp", floating = true }) oxwm.rule.add({ class = "firefox", title = "Library", floating = true }) oxwm.rule.add({ class = "firefox", tag = 2 }) +oxwm.rule.add({ class = "zenity", title = "", floating = true }) -- oxwm.rule.add({ instance = "mpv", floating = true }) -- To find window properties, use xprop and click on the window -- cgit v1.2.3-13-gbd6f From e1fc179e3de951b9705450ef911b0ee6a39ec0ee Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sun, 21 Jun 2026 21:35:59 +0100 Subject: Configure Firefox file picker to be a floating window --- oxwm/.config/oxwm/config.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'oxwm') diff --git a/oxwm/.config/oxwm/config.lua b/oxwm/.config/oxwm/config.lua index 1115575..4461bf5 100644 --- a/oxwm/.config/oxwm/config.lua +++ b/oxwm/.config/oxwm/config.lua @@ -138,8 +138,9 @@ 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", title = "", floating = true }) +oxwm.rule.add({ class = "zenity", floating = true }) -- oxwm.rule.add({ instance = "mpv", floating = true }) -- To find window properties, use xprop and click on the window -- cgit v1.2.3-13-gbd6f