feat: add create_floating helper

This commit is contained in:
max_richter 2022-04-08 15:51:10 +02:00
parent 59784525c0
commit f30fcd5da0

2
configs/sway/create_floating.sh Normal file → Executable file
View 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=$!