diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2026-06-27 11:41:52 +0100 |
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2026-06-27 11:41:52 +0100 |
| commit | 36ee8ea0a3454820f105cd268840c7246fe2ef10 (patch) | |
| tree | 04eae7b8ffc2e8b86bfc84c5e11275085ed932ab | |
| parent | 63c8dad6d9da57bd9c8cfa19f9fdce99f3533d9e (diff) | |
| parent | e1fc179e3de951b9705450ef911b0ee6a39ec0ee (diff) | |
Merge branch 'main' into howl
| -rwxr-xr-x | bin/.bin/power.sh | 22 | ||||
| -rw-r--r-- | gtk-3.0/.config/gtk-3.0/settings.ini | 16 | ||||
| -rwxr-xr-x | install.sh | 1 | ||||
| -rw-r--r-- | oxwm/.config/oxwm/config.lua | 7 |
4 files changed, 46 insertions, 0 deletions
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/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 @@ -9,6 +9,7 @@ dotfiles=( bin dunst git + gtk-3.0 lazygit nvim oxwm diff --git a/oxwm/.config/oxwm/config.lua b/oxwm/.config/oxwm/config.lua index 80b6d27..4461bf5 100644 --- a/oxwm/.config/oxwm/config.lua +++ b/oxwm/.config/oxwm/config.lua @@ -138,7 +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", floating = true }) -- oxwm.rule.add({ instance = "mpv", floating = true }) -- To find window properties, use xprop and click on the window @@ -288,6 +290,11 @@ oxwm.key.chord({ { {}, "o" } }, oxwm.spawn({ "open-bookmark.sh" })) +oxwm.key.chord({ + { { modkey }, "Space" }, + { {}, "p" } +}, oxwm.spawn({ "power.sh" })) + ------------------------------------------------------------------------------- -- Autostart ------------------------------------------------------------------------------- |
