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

Regarding workspace info, con_mark and scratchpad

asked 2012-09-11 08:32:06 +0000

spordha gravatar image

updated 2012-09-11 09:32:38 +0000

joepd gravatar image

I have a few questions -

1) Say I have a xterm in the scratchpad and it remains open in say workspace 1. When I want to access it from workspace 2, currently I am moving to the previous workspace, toggling the xterm back to scratchpad and opening it again in workspace 2. Is there a way for the scratchpad xterm to move back to scratchpad if open else where and reappear in the current workspace?

2) How do you mark a browser using con_mark?

3) How do you find out the workspace of a marked window? Or for that matter the workspace of any window that matches a criteria?

I would like to apologize if the documentation or the FAQ already covers this, but I could not locate it.

Thanks for any help.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2012-09-11 08:53:17 +0000

joepd gravatar image

updated 2012-09-11 09:36:38 +0000

As for question 2: Have a look at the man-page for i3-input. This is an explicit example over there (albeit with a mark of 1 character long). Bind it to a key to have it work on the currently focused window.

Questions 1 and 3 seem a bit too complicated for i3-input, as there are no possibilities for if-statements, and for advanced input, like a dynamically generated list of workspaces. You can use the IPC interface and the existing libraries to do this.

You might want to have a look at the winmenu example of i3-py It uses dmenu to have you 'jump' to a window. This version has support for marks, as in it will display them. If you type something that cannot be matched to a window, it will mark the currently focused window with what you just typed.

edit flag offensive delete link more

Comments

It might sound a bit silly but my problem is where to type the command given in the example in "i3-input". When I type the command in a terminal it seems to mark that terminal. But for a non-terminal window, I am not sure what to do.

spordha gravatar imagespordha ( 2012-09-11 09:14:50 +0000 )edit

Sorry, got it now. I just created a keybinding with the i3-input command. Thanks a lot for the help.

spordha gravatar imagespordha ( 2012-09-11 09:29:56 +0000 )edit

Thanks, I improved the answer :)

joepd gravatar imagejoepd ( 2012-09-11 09:36:58 +0000 )edit

Question Tools

Stats

Asked: 2012-09-11 08:32:06 +0000

Seen: 362 times

Last updated: Sep 11 '12