The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Determining workspace # in an external app (hamster)

asked 2012-06-06 21:03:42 +0000

Amouravski gravatar image

updated 2012-06-06 21:04:31 +0000


I've been using i3 for a few days now, and I'm loving it. However, it doesn't seem to work with the productivity tracker app I've been using, Hamster (

It can set you current task based on which workspace you're on, but it doesn't seem to work in i3, though it worked before on my Ubuntu setup.


Is this a bug or is Hamster doing something weird that I can't work around?

(A workaround for me would be to allow a single command (like switch to workspace 1) to do two things. That is, have $mod+1 go to workspace 1 and exec a command that I can use with the hamster CLI. Is there a way to do that?)


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-06-06 21:47:50 +0000

Tucos gravatar image

updated 2012-06-06 21:55:06 +0000

You can chain commands for keybinds with a semicolon (when using criteria, use a comma), e.g.:

bindsym $mod+F9 floating enable ; move scratchpad

or with criteria:

bindsym $mod+p [title="^Panda$"] floating enable, move absolute position center

The workspace stuff hamster uses are probably some Extended Window Manager Hints (_NET_NUMBER_OF_DESKTOPS comes to mind), which i3 doesn't support (yet).

EDIT: Just checked the source for hamster and indeed, it depends on libwnck, which in turn relies on EWMH and ICCCM. This means that currently, it's not possible to make i3 and hamster play nice together automatically.

edit flag offensive delete link more


Thanks! That helps a lot!

Amouravski gravatar imageAmouravski ( 2012-06-06 22:37:01 +0000 )edit

Good to know! There's a typo in the second example (s/,/;/)

miguel gravatar imagemiguel ( 2012-06-07 15:32:21 +0000 )edit

Nope. There is a difference between `[condition] command1 ; command2` and `[condition] command1 , command2`, in the first case, the condition will not apply to the second command (so, in my example, often it would just position the focused window at the center) whereas in the second case it does.

Tucos gravatar imageTucos ( 2012-06-08 09:12:40 +0000 )edit

Question Tools



Asked: 2012-06-06 21:03:42 +0000

Seen: 336 times

Last updated: Jun 06 '12