From b738c77acfe66b88bc6e995c20c1a3c0b30e9c47 Mon Sep 17 00:00:00 2001 From: Ryan Robitaille Date: Sun, 2 Nov 2025 14:36:28 -0500 Subject: [PATCH] =?UTF-8?q?Feature=20(hypr):=20add=20=E2=80=9CPop=20window?= =?UTF-8?q?=E2=80=9D=20(float+pin)=20on=20SUPER+O=20(#2954)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Feature (hypr): add “Pop window” (float+pin) on SUPER+L * fix: changed default keybinding to SUPER+O --- bin/omarchy-cmd-pop | 22 ++++++++++++++++++++++ default/hypr/apps/system.conf | 3 +++ default/hypr/bindings/tiling-v2.conf | 1 + 3 files changed, 26 insertions(+) create mode 100755 bin/omarchy-cmd-pop diff --git a/bin/omarchy-cmd-pop b/bin/omarchy-cmd-pop new file mode 100755 index 00000000..ac700bf5 --- /dev/null +++ b/bin/omarchy-cmd-pop @@ -0,0 +1,22 @@ +#!/bin/bash + +# Toggle to pop-out a tile to stay fixed on a display basis. + +active=$(hyprctl activewindow -j) +pinned=$(echo "$active" | jq .pinned) +addr=$(echo "$active" | jq -r ".address") +[ -z "$addr" ] && { echo "No active window"; exit 0; } + +if [ "$pinned" = "true" ]; then + hyprctl -q --batch \ + "dispatch pin address:$addr;" \ + "dispatch togglefloating address:$addr;" \ + "dispatch tagwindow -pop address:$addr;" +else + hyprctl -q --batch \ + "dispatch togglefloating address:$addr;" \ + "dispatch centerwindow address:$addr;" \ + "dispatch pin address:$addr;" \ + "dispatch alterzorder top address:$addr;" \ + "dispatch tagwindow +pop address:$addr;" +fi diff --git a/default/hypr/apps/system.conf b/default/hypr/apps/system.conf index bca80dda..754ed0ca 100644 --- a/default/hypr/apps/system.conf +++ b/default/hypr/apps/system.conf @@ -12,3 +12,6 @@ windowrule = fullscreen, class:Screensaver # No transparency on media windows windowrule = opacity 1 1, class:^(zoom|vlc|mpv|org.kde.kdenlive|com.obsproject.Studio|com.github.PintaProject.Pinta|imv|org.gnome.NautilusPreviewer)$ + +# Popped window rounding +windowrule = rounding 16, tag:pop diff --git a/default/hypr/bindings/tiling-v2.conf b/default/hypr/bindings/tiling-v2.conf index 805b4b46..bbe4d96b 100644 --- a/default/hypr/bindings/tiling-v2.conf +++ b/default/hypr/bindings/tiling-v2.conf @@ -9,6 +9,7 @@ bindd = SUPER, T, Toggle window floating/tiling, togglefloating, bindd = SUPER, F, Full screen, fullscreen, 0 bindd = SUPER CTRL, F, Tiled full screen, fullscreenstate, 0 2 bindd = SUPER ALT, F, Full width, fullscreen, 1 +bindd = SUPER, O, Pop window out (float & pin), exec, omarchy-cmd-pop # Move focus with SUPER + arrow keys bindd = SUPER, LEFT, Move window focus left, movefocus, l