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)[i3smartfocus/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.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

i3smartfocus-0.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: i3smartfocus-0.1.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.5

File hashes

Hashes for i3smartfocus-0.1.tar.gz
Algorithm Hash digest
SHA256 597ce0d1c6486eff7df3deec0d81977db1c7912287d1b3220910e48f0234c2c9
MD5 a7db15d6d4328791295c1c1d858608ea
BLAKE2b-256 d1a61b1d1f31a972a68ea34054126a7115d651a2dd8db78c07f4cde3eff4bcc8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: i3smartfocus-0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.8.5

File hashes

Hashes for i3smartfocus-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 285215780e9fb9f33995e5f6b0e1c421b917073dcd3d1b89d6b5b3ec7bae0371
MD5 c046e5329c43d8bbe501558d17e6a01d
BLAKE2b-256 004feb29bd6b34b4dbcccd48887279804de5cb9e13283130722b9f395c96c826

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