Skip to content

Commit

Permalink
[mod] README.md, add instruction about install.sh. install.sh, change…
Browse files Browse the repository at this point in the history
… the exectue root.
  • Loading branch information
tw-yshuang committed Jul 14, 2021
1 parent 4e29c2f commit e388817
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ Inspire from [code](https://github.com/udifuchs/icc-brightness) by udifuchs.

For monitor brightness (e.g. OLED) that Ubuntu system can't control.

## One script to build & install
this script includ [Build](#build) & [Auto Start Install](#auto-start-install)
```shell
$ bash install.sh
```

---

## Build

The build requires `xrandr` package:
Expand All @@ -19,17 +27,17 @@ $ sudo apt-get install x11-xserver-utils

### Auto Start Install

If you want to install to auto-start when logging-in to the Gnome, run:
If you want to install auto-start method when logging-in to the Gnome, run:

```shell
$ sudo make
```

It will auto select one monitor that is connected to install.

If you want to choise monitor to auto start , open `Makefile` type your monitor-name on `Monitor` variable.
If you want to choise monitor to auto-start , open `Makefile` type your monitor-name on `Monitor` variable.

It will start it on your next logging-in. You can control by your brightness key or other method that can control **backlight** on the display.
It will start it when the next logging-in. You can control by your brightness key or other method that can control **backlight** on the display.

### Uninstall

Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down

0 comments on commit e388817

Please sign in to comment.