Skip to main content

Utilities for the River Wayland compositor

Project description

riverwm-utils

Utilities for the River Wayland compositor. Currently just one utility is included.

Usage

cycle-focused-tags

Change to either the next or previous focused tags.

As can be seen in a pull request, this functionality can easily be built directly into river. However, as explained by Leon Plickat there is a plan to separate the window management to a separate client, and as such new additions are not being accepted. The approach implemented here was suggested and sample code was provided. That sample code forms the basis of this script.

The script takes two arguments: the first is being the direction next|previous, the second being the maximum number of tags at which the cycling should wrap back to the first tag (or to the last tag from the first tag).

If the second argument is omitted the maximum number of tags is assumed to be 32. If both arguments are omitted the direction, next, will be used.

The script can be called using spawn in the users init file. For example:

riverctl map normal Mod4 Up spawn "cycle-focused-tags +1 9"
riverctl map normal Mod4 Down spawn "cycle-focused-tags -1 9"

Install

Development version

Clone the repository:

git clone https://github.com/NickHastings/riverwm-utils.git

Install locally with pip

python3 -m pip install ./riverwm-utils

Stable realeases

python3 -m pip install riverwm-utils

Wayland protocols and pywayland

For cycle-focused-tags to work the relevant wayland protocol xml files will need to be scanned by pywayland. If this has not already been done cycle-focused-tags will attempt to do so.

Licensing

riverwm-utils is released under the GNU General Public License v3.0 only.

The protocols in the *.xml files are released under various licenses by various parties. You should refer to the copyright block of each protocol for the licensing information.

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

riverwm-utils-0.0.10.tar.gz (53.3 kB view details)

Uploaded Source

Built Distribution

riverwm_utils-0.0.10-py3-none-any.whl (54.9 kB view details)

Uploaded Python 3

File details

Details for the file riverwm-utils-0.0.10.tar.gz.

File metadata

  • Download URL: riverwm-utils-0.0.10.tar.gz
  • Upload date:
  • Size: 53.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for riverwm-utils-0.0.10.tar.gz
Algorithm Hash digest
SHA256 572a5e6f87df32d0eb963665b66fa8df2720f3e39e02f69e9bac42603e90152a
MD5 37df1a01ad9dbac9f4d35733c9ed025b
BLAKE2b-256 51a9e4e881f1d34cf99432f0720c36d87998d566717e573642b89af7fb6293c5

See more details on using hashes here.

File details

Details for the file riverwm_utils-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for riverwm_utils-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 553713f024c8b6948b45e6f9e186f1da3c64c0b958c9b1b24c6c5b7d330bd4c7
MD5 79c657347df38b5140795c3b3e4b1d9d
BLAKE2b-256 0fbcde1d39d7bc4fcd1231c042fde43e3a467f32553ef69f5b4642d8b5588e02

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