The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

Kill all the windows in a given workspace [closed]

asked 2014-05-18 12:42:18 +0000

Is it possible to kill all the windows in a given workspace. Obviously the command below does not work.

bindsym XF86Favorites exec --no-startup-id i3-msg 'workspace 1; kill ???'

Is it possible to catch all the windows in a workspace and kill them without identifying each of them separately.

Thank you Marcin

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Adaephon
close date 2014-05-19 08:52:05.721874

Comments

There is no need to run `i3-msg` through `exec`. `i3-msg` takes exactly the arguments used with `bindsym`: Instead of `bindsym KEY exec i3-msg 'COMMAND1; COMMAND2'` just use `bindsym KEY COMMAND1; COMMAND2`.

Adaephon gravatar imageAdaephon ( 2014-05-19 08:50:49 +0000 )edit

OK. Thank you

sycamorex gravatar imagesycamorex ( 2014-05-19 18:18:16 +0000 )edit

1 answer

Sort by ยป oldest newest most voted
4

answered 2014-05-19 06:37:13 +0000

phairland gravatar image

Question is answered here: https://faq.i3wm.org/question/2865/is...

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-05-18 12:42:18 +0000

Seen: 641 times

Last updated: May 19 '14