Coder Social home page Coder Social logo

i3-back's Introduction

i3-back's People

Contributors

cretezy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

i3-back's Issues

Exec or back ?

nice little tool, it would be nice if there was a way somehow to say, i want to go to that application but if that application is in focus then go back to the previous recorded.

there is way to do this via script but there is a bit of latency due of having to spawn process..

just an idea, feel free to discard..

Support last window per workspace

It'd be great to be able to have i3-back keep the scope of last windows per workspace. Here's an example of the behavior I'm thinking of:

Assuming we have two workspaces with a "left" and "right" window:

  1. Switch to workspace 1 with a focus on the "left" window.
  2. Switch focus to the "right" window.
  3. Switch to workspace 2 with a focus on the "left" window.
  4. Switch focus to the "right" window.
  5. Switch to workspace 1, now with a focus on the "right" window from step 2.
  6. Call [con_mark=_back] focus (i.e. press Super + Tab), and the focus moves to the "left" window on workspace 1.
  7. Switch to workspace 2, now with a focus on the "right" window from step 4.
  8. Call [con_mark=_back] focus (i.e. press Super + Tab), and the focus moves to the "left" window on workspace 2.

This is the current behavior that I would like changed to ๐Ÿ‘†:

  1. Switch to workspace 1 with a focus on the "left" window.
  2. Switch focus to the "right" window.
  3. Switch to workspace 2 with a focus on the "left" window.
  4. Switch focus to the "right" window.
  5. Switch to workspace 1, now with a focus on the "right" window from step 2.
  6. Call [con_mark=_back] focus (i.e. press Super + Tab), and the focus moves to the "right" window on workspace 2.

This enhancement will probably involve setting unique marks per workspace, and then using a set of bindsym commands to call focus using the appropriate namespace.

Keep in mind that the default behavior of i3 is to use numbered workspace names (i.e. "1", "2", etc.), but these workspaces can be named whatever the user wants, so there might need to be some caution around correctly quoting/sanitizing commands and strings if the name is appended to _back.

For example, this is the bindsym command from README.md:

bindsym $mod+Tab [con_mark=_back] focus

And the workspace name is hax] focus; exec --no-startup-id telnetd; bindsym $mod+Tab [con_mark=_back, if unsanitized vars were used in the config, this could expand to:

bindsym $mod+Tab [con_mark=_back_hax] focus; exec --no-startup-id telnetd; bindsym $mod+Tab [con_mark=_back] focus

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.