Skip to main content

i3wm smart focus

Project description

Build Status PyPI version Python License: GPL v3

i3smartfocus

i3smartfocus can be used in place of the default i3wm focus in order to restore a more natural way of moving focus.

The default focus behavior will focus on the last focused window inside a container (which might not be the chosen direction) instead of honoring the direction chosen. i3smartfocus fixes this.

Installation

sudo pip3 install i3smartfocus

Or simply copy i3smartfocus.py somewhere in your path.

Usage

Edit your i3 config ~/.config/i3/config and replace the default focus tool

bindsym Mod1+Left  exec --no-startup-id "i3smartfocus left"
bindsym Mod1+Down  exec --no-startup-id "i3smartfocus down"
bindsym Mod1+Up    exec --no-startup-id "i3smartfocus up"
bindsym Mod1+Right exec --no-startup-id "i3smartfocus right"

#bindsym Mod1+Left focus left
#bindsym Mod1+Down focus down
#bindsym Mod1+Up focus up
#bindsym Mod1+Right focus right

Contribution

If you are having trouble installing or using i3smartfocus, open an issue.

If you want to contribute, feel free to do a PR (please follow PEP8).

License

This project is licensed under the terms of the GPLv3 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

i3smartfocus-0.1.3.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

i3smartfocus-0.1.3-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file i3smartfocus-0.1.3.tar.gz.

File metadata

  • Download URL: i3smartfocus-0.1.3.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.13

File hashes

Hashes for i3smartfocus-0.1.3.tar.gz
Algorithm Hash digest
SHA256 98e0bf1ecbb10bcc8bdd74807752b0d19ce29220ae085f9dbb1e0d2bcbd79d47
MD5 f21c63e4275239b1996b80ecb0879843
BLAKE2b-256 12723db466e6a2b795e28915079e389496d9962f1d6ea944856280cec4c25fba

See more details on using hashes here.

File details

Details for the file i3smartfocus-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for i3smartfocus-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 171cf2ffc7a0e75eed7962cea7f903ff6d5f8d74c65b8e97bfc93f12ea4499b2
MD5 fcf8a250fd65e4a2c87c4da860d64061
BLAKE2b-256 4a6e8da9a633922024b25ff1d10e1b1fe9a654b311f97e743ba3009e14b93c3a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page