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

Change workspace by moving window

asked 2013-03-05 10:31:16 +0000

Kretortex gravatar image

updated 2013-03-05 10:32:21 +0000

Hey,

in my config, i have this code to switch to another workspace:

switch to workspace

bindsym $mod+1 workspace 1:main

bindsym $mod+2 workspace 2:surf

bindsym $mod+3 workspace 3:study

bindsym $mod+4 workspace 4:prog

...

and this code for moving a window to a workspace:

move focused container to workspace

bindsym $mod+Shift+exclam move workspace 1:main

bindsym $mod+Shift+quotedbl move workspace 2:surf

bindsym $mod+Shift+section move workspace 3:study ...

My Quesiont is: How can i do it, that if i move a window to another workspace, i also switch to this workspace? Thank you guys.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-03-05 10:36:26 +0000

Michael gravatar image

Just chain the commands with a semicolon:

bindsym $mod+Shift+exclam move workspace 1:main; workspace 1:main
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-03-05 10:31:16 +0000

Seen: 807 times

Last updated: Mar 05 '13