mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Feature (hypr): add “Pop window” (float+pin) on SUPER+O (#2954)
* Feature (hypr): add “Pop window” (float+pin) on SUPER+L * fix: changed default keybinding to SUPER+O
This commit is contained in:
22
bin/omarchy-cmd-pop
Executable file
22
bin/omarchy-cmd-pop
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user