Skip to content

Commit

Permalink
docs: include sway in usage instructions
Browse files Browse the repository at this point in the history
- Assume i3wsr is on path, it would be on cargo and aur installs typically
- Add exec_always rationale
  • Loading branch information
roosta committed Jan 25, 2025
1 parent 6731336 commit cf83a82
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,19 @@ If you're running Arch you can install either [stable](https://aur.archlinux.org

## Usage

Just launch the program and it'll listen for events if you are running I3.
Another option is to put something like this in your i3 config
Just launch the program and it'll listen for events if you are running I3 or
Sway. Another option is to put something like this in your i3 or Sway config:

```
# cargo
exec_always --no-startup-id $HOME/.cargo/bin/i3wsr
# AUR
exec_always --no-startup-id /usr/bin/i3wsr
# i3
exec_always --no-startup-id i3wsr
# Sway
exec_always i3wsr
```

> `exec_always` ensures a new instance of `i3wsr` is started when config is reloaded or wm/compositor is restarted.
## Configuration

This program depends on numbered workspaces, since we're constantly changing the
Expand Down

0 comments on commit cf83a82

Please sign in to comment.