You are not logged in.

#1 2016-01-08 17:15:48

k4153r
Member
Registered: 2016-01-05
Posts: 5

[Solved] i3bar: workspace inaccessible by shortcut

Hi,

Here I come again with another small i3bar problem.
I have assigned sublime text to $WS3, when I launch it it shows on $WS3, but $mod+3 launches another instance of $WS3 instead of opening the one with sublime.
All the other workspaces work without problem.

Here is my i3 conf file:

# ASSIGN WORKSPACE VARIABLES
set $WS1 1:[ term ]
set $WS2 2:[ web ]
set $WS3 3:[ code ]
set $WS4 4:[ pdf ]
set $WS5 5:[ media ]
set $WS6 6:[ vbox ]


# switch to workspace
bindsym $mod+1 workspace $WS1
bindsym $mod+2 workspace $WS2
bindsym $mod+3 workspace $WS3
bindsym $mod+4 workspace $WS4
bindsym $mod+5 workspace $WS5
bindsym $mod+6 workspace $WS6


# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $WS1
bindsym $mod+Shift+2 move container to workspace $WS2
bindsym $mod+Shift+3 move container to workspace $WS3
bindsym $mod+Shift+4 move container to workspace $WS4
bindsym $mod+Shift+5 move container to workspace $WS5
bindsym $mod+Shift+6 move container to workspace $WS6


# Assignments
assign [class="^URxvt$"] $WS1
assign [class="^Firefox$"] $WS2
assign [class="^sublime_text$"] $WS3
assign [class="^VirtualBox$"] $WS6
assign [class="^Vlc$"] $WS5

This has been driving me crazy and I'm sure it must only be some stupid mistake somewhere.

Thanks.

Last edited by k4153r (2016-01-09 16:55:16)

Offline

#2 2016-01-09 16:14:16

~lynks
Member
Registered: 2013-10-14
Posts: 14

Re: [Solved] i3bar: workspace inaccessible by shortcut

Do you by chance have a whitespace character before the end of line on your bindsym or assignment line for workspace 3?

Offline

#3 2016-01-09 16:54:52

k4153r
Member
Registered: 2016-01-05
Posts: 5

Re: [Solved] i3bar: workspace inaccessible by shortcut

Yes, indeed.

Dindn't guess it handled whitespaces in assignements.

Thank you. Solved.

Offline

#4 2016-01-09 16:58:24

~lynks
Member
Registered: 2013-10-14
Posts: 14

Re: [Solved] i3bar: workspace inaccessible by shortcut

No worries, I've been caught out by the same thing.

As you're using i3bar, you might want to check out the replacement for it I put together -> https://github.com/lynks--/lifebar

Offline

Board footer

Powered by FluxBB