You are not logged in.

#1 2017-04-03 23:08:34

tyudemetry
Member
Registered: 2015-07-21
Posts: 5

i3: launch program in a especific workspace

I'm i3 user and I'd like to know if I can execute my program in a expecific workspace.
I already use assign [class="^Termite$"] $WS1 for launch on workspace 1.

But I would like to do a command for launch Termine in workspace 5 with another command.
The command could be something like: $mod+Shift+Return exec...

I tried to use that command: bindsym $mod+Shift+Return exec i3-msg 'workspace $WS5; exec /usr/bin/termite' and
bindsym $mod+Shift+i exec i3-msg 'workspace 5: ; exec /usr/bin/termite'.   

But it didn't work.

Thanks for any help and sorry for my bad english.

Offline

#2 2017-04-04 01:51:45

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,448

Re: i3: launch program in a especific workspace

Try something linke this,

 bindsym $mod+Shift+Return exec i3-msg workspace 5 && exec /usr/bin/termite 

Do you have $ in your workspace name ?? Just use actual workspace name in place of 5. ( I am not sure why you are using $ )

Offline

#3 2017-04-04 12:49:51

tyudemetry
Member
Registered: 2015-07-21
Posts: 5

Re: i3: launch program in a especific workspace

Docbroke wrote:

Try something linke this,

 bindsym $mod+Shift+Return exec i3-msg workspace 5 && exec /usr/bin/termite 

Do you have $ in your workspace name ?? Just use actual workspace name in place of 5. ( I am not sure why you are using $ )

It did not work. When I use the command, the terminal opens in workspace 1 and I'm moved to workspace 5.
I use $WS5 because I've renamed all my workspace. Below is shown how I've renamed them.

set $WS1 
set $WS2 
set $WS3 
set $WS4 
set $WS5 
set $WS6 
set $WS7 
set $WS8 
set $WS9 
set $WS10 HDMI

Last edited by tyudemetry (2017-04-04 20:25:25)

Offline

#4 2017-04-04 13:11:35

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,448

Re: i3: launch program in a especific workspace

That happens because you have assigned class Termite to $WS1. You may try

/usr/bin/termite --class=ws5term

While assigning class ws5term to $WS5 (not mandatory), as your command already takes you to $WS5 before launching termite.

Note: I am not using termite so, I am not sure if it has --class option or not, just check it's man page.

Offline

Board footer

Powered by FluxBB