Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/difrex/swaymgr
Sway autotiling manager
https://github.com/difrex/swaymgr
sway swaywm tiling
Last synced: 1 day ago
JSON representation
Sway autotiling manager
- Host: GitHub
- URL: https://github.com/difrex/swaymgr
- Owner: Difrex
- License: apache-2.0
- Created: 2020-01-23T08:09:46.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-12T11:36:32.000Z (over 1 year ago)
- Last Synced: 2024-06-21T20:06:57.704Z (5 months ago)
- Topics: sway, swaywm, tiling
- Language: Go
- Size: 1.99 MB
- Stars: 22
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# swaymgr
The [Swaywm](https://github.com/swaywm/sway) autotiling manager.
This project adds a autotiling feature to the SwayWM based on the [gosway](https://github.com/Difrex/gosway) IPC library.
## Install
### Build
You need a Go installed in your system.
```sh
git clone https://github.com/Difrex/swaymgr.git
cd swaymgr/swaymgr
go get -v
go build -o ~/.local/bin/swaymgr .
```### From AUR
**swaymgr** package is available in the Arch Linux AUR. Install it with the favorite tool.
## Configure
* Autostart swaymgr
Add this to the config:
```
exec --no-startup-id swaymgr
```* Set keybindings for changing layouts setup
```
bindsym --to-code $mod+Alt+s exec swaymgr -s 'set spiral'
bindsym --to-code $mod+Alt+l exec swaymgr -s 'set left'
bindsym --to-code $mod+Alt+m exec swaymgr -s 'set manual'
```## Commands
Commands can be sended to the control socket by the `-s` option.
* *get layout* -- returns information about current focused workspace in the JSON format
```
swaymgr -s 'get layout' | jq
{
"name": "2:",
"layout": "spiral",
"managed": true
}
```* *set spiral* -- mark workspace as managed and set it to the spiral windows placement
```
swaymgr -s 'set spiral'
```* *set left* -- mark workspace as managed and set it to the left windows placement
```
swaymgr -s 'set left'
```* *set manual* -- mark workspace as unmanaged
```
swaymgr -s 'set manual'
```## Known issues
* Only spiral layout is working fine.
* Left layout is buggy.