-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:chmln/screens
- Loading branch information
Showing
2 changed files
with
55 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
name: Publish for ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
include: | ||
- os: ubuntu-latest | ||
asset_name: enact | ||
|
||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
with: | ||
rust-version: stable | ||
- uses: actions/checkout@v1 | ||
- name: Build | ||
run: cargo build --release --locked | ||
- name: Upload binaries to release | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/enact | ||
asset_name: ${{ matrix.asset_name }} | ||
tag: ${{ github.ref }} |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# `enact` | ||
|
||
`enact` will detect the proper resolution of your secondary monitor (if any) and automatically set it up as soon as you plug it in (or out). | ||
|
||
It uses `xrandr` under the hood and works great with window managers like i3, bspwm, and others. | ||
|
||
Use cases: | ||
- a laptop and an abritrary secondary monitor (e.g. at work, home, etc.) | ||
- a desktop with two monitors | ||
|
||
## Usage | ||
|
||
Test it out then place this in your `.xinitrc`. | ||
|
||
```sh | ||
# Set up second monitor above laptop | ||
enact --pos top | ||
``` | ||
|
||
Or to do the same, but also watch for changes and allow hotplugging | ||
|
||
```sh | ||
enact --pos top --watch & | ||
``` |