Better hyprland swallower

This commit is contained in:
agryphus 2024-02-20 21:11:54 -05:00
parent 33d9dc616a
commit ad764a2eea
2 changed files with 22 additions and 5 deletions

10
.local/bin/swallow Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env sh
# Window swallower for Hyprland
pid=$(hyprctl activewindow -j | jq '.pid')
workspace=$(hyprctl activeworkspace -j | jq '.id')
hyprctl dispatch movetoworkspacesilent special
cmd=$1; shift 1; $cmd "$@"
hyprctl dispatch movetoworkspacesilent "$workspace",pid:"$pid"