feat: add create_floating helper
This commit is contained in:
parent
59784525c0
commit
f30fcd5da0
2
configs/sway/create_floating.sh
Normal file → Executable file
2
configs/sway/create_floating.sh
Normal file → Executable file
@ -5,7 +5,7 @@ pid=$!
|
||||
|
||||
swaymsg -t subscribe -m '[ "window" ]' \
|
||||
| jq --unbuffered --argjson pid "$pid" '.container | select(.pid == $pid) | .id' \
|
||||
| xargs -I '@' -- swaymsg '[ con_id=@ ] floating enable' &
|
||||
| xargs -I '@' -- swaymsg '[ con_id=@ ] floating enable, resize set 600 450' &
|
||||
|
||||
subscription=$!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user