https://github.com/tmccombs/swaytools
Collection of simple tools for sway (and i3)
https://github.com/tmccombs/swaytools
Last synced: over 1 year ago
JSON representation
Collection of simple tools for sway (and i3)
- Host: GitHub
- URL: https://github.com/tmccombs/swaytools
- Owner: tmccombs
- License: gpl-3.0
- Created: 2020-02-05T07:05:46.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-12-11T09:18:44.000Z (over 1 year ago)
- Last Synced: 2025-03-14T05:04:23.944Z (over 1 year ago)
- Language: Python
- Size: 27.3 KB
- Stars: 32
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swaytools
Collection of simple tools for sway (and i3)
## Installation
### Archlinux
swaytools is availabe in the [AUR](https://aur.archlinux.org/packages/swaytools/)
### Pip
swaytools is available from [PyPI](https://pypi.org/project/swaytools/):
```
$ pip install --user swaytools
```
## Available tools
*swayinfo*: Tool similar to xprop that lets you click on a window, and prints info on that window (retrieved from sway's tree).
*winfocus*: Program that uses dmenu/bemenu or similar to let you select a window from a menu and focuses that window.
## Dependencies
Required:
* python
* sway (or i3, though that isn't tested)
Optional:
* slurp: for selecting the window with swayinfo
* bemenu, dmenu or other dmenu compatible program: needed for winfocus
## Environment Variables
*DMENU_CMD*: A dmenu compatible command to use for menu selection. Used by `winfocus`