2024-05-08 18:26:33 +03:00
|
|
|
{ ... }: {
|
|
|
|
text = ''
|
|
|
|
# Kill all windows in Sway scratchpad.
|
2024-05-08 23:54:06 +03:00
|
|
|
function scratchpad_kill() {
|
2024-05-08 18:26:33 +03:00
|
|
|
kill() {
|
|
|
|
for window in $(swaymsg -t get_tree | jq -r 'recurse(.nodes[]?) | select(.name == "__i3_scratch").floating_nodes[].id'); do
|
|
|
|
swaymsg [ con_id="$window" ] kill
|
|
|
|
done
|
|
|
|
}
|
|
|
|
_sway_iterate_sockets kill
|
|
|
|
}
|
|
|
|
'';
|
|
|
|
}
|