Simple GNOME extension to control displays' brightness via DDC. It requires ddcutil to be installed, I2C permissions for non-root users configured.
Note: Binary files aren't shown on the web site. To see all files, please download the extension zipfile.
Version | Status |
---|---|
28 | Rejected |
27 | Active |
26 | Inactive |
25 | Inactive |
24 | Inactive |
23 | Inactive |
22 | Inactive |
21 | Inactive |
20 | Inactive |
19 | Inactive |
18 | Inactive |
17 | Inactive |
16 | Inactive |
15 | Inactive |
14 | Inactive |
13 | Inactive |
12 | Inactive |
11 | Inactive |
10 | Inactive |
9 | Inactive |
8 | Inactive |
7 | Rejected |
6 | Rejected |
5 | Inactive |
4 | Inactive |
3 | Inactive |
2 | Inactive |
1 | Rejected |
1. Don't Create instance of objects in global scope (line 3 services/shell.js). 2. We have `setTimeout()` and `clearTimeout()` by default. no need for `services/timer.js`.
`Extension.lookupByURL()` is a bad practice (line 31 ui/ScreenBrightnessPanelMenu.js). Use dependency injection in the entry point (extension.js), so you can get the extension instance in `ScreenBrightnessPanelMenu`. In extension.js: ```js screenBrightnessPanelMenu = new ScreenBrightnessPanelMenu(this); ``` In ui/ScreenBrightnessPanelMenu.js: ```js export default class ScreenBrightnessPanelMenu extends PanelMenu.Button { _init(extension) { this.extensionObject = extensionObject; ```
`Extension.lookupByURL()` is a bad practice (line 31 ui/ScreenBrightnessPanelMenu.js). Use dependency injection in the entry point (extension.js), so you can get the extension instance in `ScreenBrightnessPanelMenu`. In extension.js: ```js screenBrightnessPanelMenu = new ScreenBrightnessPanelMenu(this); ``` In ui/ScreenBrightnessPanelMenu.js: ```js export default class ScreenBrightnessPanelMenu extends PanelMenu.Button { _init(extension) { this.extensionObject = extensionObject; ```
* typo: ```js export default class ScreenBrightnessPanelMenu extends PanelMenu.Button { _init(extensionObject) { this.extensionObject = extensionObject; ```