-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
64 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,50 @@ | ||
# i3-autodisplay | ||
i3wm display auto-configuration | ||
i3-autodisplay is a i3wm display auto-configuration | ||
|
||
## Installation | ||
|
||
### Pre-requisites | ||
[xrandr](https://www.x.org/archive/current/doc/man/man1/xrandr.1.xhtml) program | ||
|
||
### Pre built binary | ||
Fetch the [latest release](https://github.com/lpicanco/i3-autodisplay/releases). | ||
|
||
### From sources | ||
|
||
```bash | ||
go get github.com/lpicanco/i3-autodisplay | ||
cd $GOPATH/src/github.com/lpicanco/i3-autodisplay | ||
go build | ||
``` | ||
|
||
## Usage | ||
`i3-autodisplay` requires a configuration file to work. The configuration file can be loaded from these locations: | ||
|
||
* `$XDG_HOME/i3-autodisplay/config.yml` | ||
* `$HOME/.config/i3-autodisplay/config.yml` | ||
* Specified via `-config` parameter | ||
|
||
In your i3wm configuration add the following line: | ||
|
||
``` | ||
exec --no-startup-id <path to i3-autodisplay> | ||
``` | ||
|
||
Usage via command line: | ||
```bash | ||
./i3-autodisplay -config sample_config.yml | ||
``` | ||
|
||
Sample configuration file: | ||
```yaml | ||
displays: | ||
- name: eDP1 | ||
workspaces: [1,2,3,4,5,6,7,8,9,0] | ||
- name: HDMI1 | ||
workspaces: [2,4,6,8] | ||
randr_extra_options: "--left-of eDP1" | ||
- name: DP1 | ||
workspaces: [1,3,5,7,9] | ||
randr_extra_options: "--left-of HDMI1" | ||
``` | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters