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 --- bin/.bin/power.sh | 22 ++++++++++++++++++++++ oxwm/.config/oxwm/config.lua | 5 +++++ 2 files changed, 27 insertions(+) create mode 100755 bin/.bin/power.sh diff --git a/bin/.bin/power.sh b/bin/.bin/power.sh new file mode 100755 index 0000000..e17bae3 --- /dev/null +++ b/bin/.bin/power.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash +set -euo pipefail + +declare -A actions +actions[Reboot]="systemctl reboot" +actions[Shutdown]="systemctl poweroff" + +SELECTION=$(printf "Reboot\nShutdown" | rofi -dmenu -p "") + +if [ -z "$SELECTION" ]; then + exit 0 +fi + +if [ -z "${actions[$SELECTION]:-}" ]; then + notify-send "ERROR" "Invalid choice: $SELECTION" + exit 1 +fi + +notify-send "System" "Initiating $SELECTION..." +sleep 0.5 + +${actions[$SELECTION]} 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(+) 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 d1c8ae89eff4b5d4357068520feeb5e0311573aa Mon Sep 17 00:00:00 2001 From: "David T. Sadler" Date: Sun, 21 Jun 2026 21:18:13 +0100 Subject: Add gtk-3.0 settings --- gtk-3.0/.config/gtk-3.0/settings.ini | 16 ++++++++++++++++ install.sh | 1 + 2 files changed, 17 insertions(+) create mode 100644 gtk-3.0/.config/gtk-3.0/settings.ini diff --git a/gtk-3.0/.config/gtk-3.0/settings.ini b/gtk-3.0/.config/gtk-3.0/settings.ini new file mode 100644 index 0000000..5b4a49a --- /dev/null +++ b/gtk-3.0/.config/gtk-3.0/settings.ini @@ -0,0 +1,16 @@ +[Settings] +gtk-theme-name = Nordic +gtk-icon-theme-name = Nordzy +gtk-font-name = JetBrains Mono 11 +gtk-cursor-theme-name = Adwaita +gtk-cursor-theme-size = 24 +gtk-toolbar-style = GTK_TOOLBAR_BOTH_TEXT +gtk-toolbar-icon-size = GTK_ICON_SIZE_LARGE_TOOLBAR +gtk-button-images = 1 +gtk-menu-images = 1 +gtk-enable-event-sounds = 0 +gtk-enable-input-feedback = 0 +gtk-xft-antialias = 1 +gtk-xft-hinting = 1 +gtk-xft-hintstyle = hintslight +gtk-xft-rgba = rgb diff --git a/install.sh b/install.sh index 399c1ca..5c65c4d 100755 --- a/install.sh +++ b/install.sh @@ -9,6 +9,7 @@ dotfiles=( bin dunst git + gtk-3.0 lazygit nvim oxwm -- 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(-) 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