From 9eb058cbe37b06d14fafbc1e9881e5a4526aedf2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 10 Jul 2025 18:32:32 -0700 Subject: [PATCH 1/4] Float nautilus previews too --- default/hypr/windows.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/default/hypr/windows.conf b/default/hypr/windows.conf index e353adf..3364a7f 100644 --- a/default/hypr/windows.conf +++ b/default/hypr/windows.conf @@ -8,6 +8,9 @@ windowrule = tile, class:^(Chromium)$ windowrule = float, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala)$ windowrule = size 800 600, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala)$ +# Float nautilus previews +windowrule = float, class:^(org.gnome.NautilusPreviewer)$ + # Float Steam, fullscreen RetroArch windowrule = float, class:^(steam)$ windowrule = fullscreen, class:^(com.libretro.RetroArch)$ From b3b4c0617575d15dac01c79e8f9130e16deeca25 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 10 Jul 2025 18:46:08 -0700 Subject: [PATCH 2/4] Fix show bindings for the new files --- bin/omarchy-show-keybindings | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/omarchy-show-keybindings b/bin/omarchy-show-keybindings index 331c39c..126ede8 100755 --- a/bin/omarchy-show-keybindings +++ b/bin/omarchy-show-keybindings @@ -4,7 +4,12 @@ # using wofi for an interactive search menu. USER_HYPRLAND_CONF="$HOME/.config/hypr/hyprland.conf" -OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf" +OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf $HOME/.local/share/omarchy/default/hypr/bindings/tiling.conf $HOME/.local/share/omarchy/default/hypr/bindings/utilities.conf $HOME/.local/share/omarchy/default/hypr/bindings.conf $HOME/.local/share/omarchy/default/hypr/media.conf" + +OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf \ +$HOME/.local/share/omarchy/default/hypr/bindings/tiling.conf \ +$HOME/.local/share/omarchy/default/hypr/bindings/utilities.conf \ +$HOME/.local/share/omarchy/default/hypr/media.conf" # Process the configuration file to extract and format keybindings # 1. `grep` finds all lines starting with 'bind' (allowing for leading spaces). @@ -16,7 +21,7 @@ OMARCHY_BINDINGS_CONF="$HOME/.local/share/omarchy/default/hypr/bindings.conf" # - It joins the command that the key executes. # - It prints everything in a nicely aligned format. # 4. The final `sed` cleans up any leftover commas from the end of lines. -grep -h '^[[:space:]]*bind' "$USER_HYPRLAND_CONF" "$OMARCHY_BINDINGS_CONF" | +grep -h '^[[:space:]]*bind' $USER_HYPRLAND_CONF $OMARCHY_BINDINGS_CONF | awk -F, ' { # Strip trailing comments From 29f1810c916d5beae7eac43306584c47175dc57f Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 10 Jul 2025 18:48:51 -0700 Subject: [PATCH 3/4] Remove duplicates and sort --- bin/omarchy-show-keybindings | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/omarchy-show-keybindings b/bin/omarchy-show-keybindings index 126ede8..6124355 100755 --- a/bin/omarchy-show-keybindings +++ b/bin/omarchy-show-keybindings @@ -22,6 +22,9 @@ $HOME/.local/share/omarchy/default/hypr/media.conf" # - It prints everything in a nicely aligned format. # 4. The final `sed` cleans up any leftover commas from the end of lines. grep -h '^[[:space:]]*bind' $USER_HYPRLAND_CONF $OMARCHY_BINDINGS_CONF | + sed 's/#.*//' | + sed '/^[[:space:]]*$/d' | + sort -u | awk -F, ' { # Strip trailing comments From a6f4c1d68b6792a7f392db0391492e8a532cc3ab Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 10 Jul 2025 18:55:03 -0700 Subject: [PATCH 4/4] Combine the rules and explicit center --- default/hypr/windows.conf | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/default/hypr/windows.conf b/default/hypr/windows.conf index 3364a7f..5dad14d 100644 --- a/default/hypr/windows.conf +++ b/default/hypr/windows.conf @@ -4,12 +4,14 @@ windowrule = suppressevent maximize, class:.* # Force chromium into a tile to deal with --app bug windowrule = tile, class:^(Chromium)$ -# Float sound, bluetooth, and wifi settings -windowrule = float, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala)$ -windowrule = size 800 600, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala)$ +# Float and center sound, bluetooth, and wifi settings, as well as nautilus previews +windowrule = float, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala|org.gnome.NautilusPreviewer)$ +windowrule = size 800 600, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala|org.gnome.NautilusPreviewer)$ +windowrule = center, class:^(org.pulseaudio.pavucontrol|blueberry.py|Impala|org.gnome.NautilusPreviewer)$ -# Float nautilus previews -windowrule = float, class:^(org.gnome.NautilusPreviewer)$ +# Float and center file pickers +windowrule = float, class:xdg-desktop-portal-gtk, title:^(Open.*Files?|Save.*Files?) +windowrule = center, class:xdg-desktop-portal-gtk, title:^(Open.*Files?|Save.*Files?) # Float Steam, fullscreen RetroArch windowrule = float, class:^(steam)$ @@ -27,7 +29,3 @@ windowrule = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned # Proper background blur for wofi layerrule = blur,wofi - -# Float and cneter file pickers -windowrule = float, class:xdg-desktop-portal-gtk, title:^(Open.*Files?|Save.*Files?) -windowrule = center, class:xdg-desktop-portal-gtk, title:^(Open.*Files?|Save.*Files?)