Skip to content

Commit bac916e

Browse files
committed
Fix prettier
1 parent 993aa30 commit bac916e

File tree

5 files changed

+24
-10
lines changed

5 files changed

+24
-10
lines changed

.github/workflows/check.yml

-3
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,6 @@ jobs:
9898
-
9999
name: Run Prettier
100100
run: npm run prettier
101-
-
102-
name: Run Prettier for themes
103-
run: npm run prettier:themes
104101

105102
package-lock:
106103

.prettierignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
themes/
2+
out/
3+
build/unpacked
4+
build/nody-asar
5+
.github/
6+
dist/
7+
*.json

.prettierrc.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
module.exports = {
1+
/**
2+
* @see https://prettier.io/docs/en/configuration.html
3+
* @type {import("prettier").Config}
4+
*/
5+
export default {
26
trailingComma: "es5",
37
tabWidth: 2,
48
semi: true,

README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -71,20 +71,23 @@ sudo node make install
7171
This will rebuild **electron** along with **node-gtk**, compile typescript with `npx tsc`, and then build the package root directory inside `build/unpacked`. Later, install it with `node make install`.
7272

7373
Also, you can package `build/unpacked` to whatever you want, like **.deb** with:
74+
7475
```sh
7576
dpkg-deb --root-owner-group --build unpacked
7677
```
7778

7879
### Setting up with LightDM
7980

8081
Inside `/etc/lightdm/lightdm.conf`, below a Seat configuration, add:
82+
8183
```
8284
greeter-session=nody-greeter
8385
```
8486

8587
Afterwards, restart the lightdm service.
8688

87-
> ***Note:*** Be sure that nody-greeter works before restarting lightdm
89+
> [!CAUTION]
90+
> Be sure that nody-greeter works before restarting lightdm
8891
8992
## Theme JavaScript API
9093

@@ -99,18 +102,21 @@ npm install nody-greeter-types
99102
## Additional features
100103

101104
### Brightness control
105+
102106
`acpi` is the only tool needed to control the brightness, besides a compatible device. This functionality is based on [acpilight][acpilight] replacement for `xbacklight`.
103107

104108
udev rules are needed to be applied before using it, check [acpilight rules][acpilight_rules]. Then, lightdm will need to be allowed to change backlight values, to do so add lightdm user to **video** group: `sudo usermod -a -G video lightdm`
105109

106110
You can enable it inside `/etc/lightdm/web-greeter.yml`
107111

108112
### Battery status
113+
109114
`acpi` and `acpi_listen` are the only tools you need (and a battery). This functionality is based on ["bat" widget][bat_widget] from ["lain" awesome-wm library][lain].
110115

111116
You can enable it inside `/etc/lightdm/web-greeter.yml`.
112117

113118
## Debugging
119+
114120
You can run the greeter from within your desktop session if you add the following line to the desktop file for your session located in `/usr/share/xsessions/`: `X-LightDM-Allow-Greeter=true`.
115121

116122
You have to log out and log back in after adding that line. Then you can run the greeter from command line.
@@ -123,7 +129,8 @@ nody-greeter --debug
123129

124130
Check `nody-greeter --help` for more commands.
125131

126-
> ***Note:*** Do not use `lightdm --test-mode` as it is not supported.
132+
> [!NOTE]
133+
> Do not use `lightdm --test-mode` as it is not supported.
127134
128135
## Troubleshooting
129136

@@ -133,9 +140,8 @@ Check `nody-greeter --help` for more commands.
133140
134141
Make sure you are using a [node-gtk][node-gtk] supported Node.js version.
135142

136-
137143
[web-greeter]: https://github.com/JezerM/web-greeter "Web Greeter"
138-
[nody-greeter-types]: https://github.com/JezerM/nody-greeter-types "nody-greeter-types"
144+
[nody-greeter-types]: https://github.com/JezerM/nody-greeter-types "nody-greeter-types"
139145
[web-greeter-docs]: https://jezerm.github.io/web-greeter-page/docs/ "API Documentation"
140146
[acpilight]: https://gitlab.com/wavexx/acpilight/ "acpilight"
141147
[acpilight_rules]: https://gitlab.com/wavexx/acpilight/-/blob/master/90-backlight.rules "udev rules"

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"lint:theme:dracula:fix": "eslint \"themes/themes/dracula/ts/**\" --fix",
2323
"lint:themes": "npm run lint:theme:gruvbox && npm run lint:theme:dracula",
2424
"lint:themes:fix": "npm run lint:theme:gruvbox:fix && npm run lint:theme:dracula:fix",
25-
"prettier": "prettier --check src/",
26-
"prettier:fix": "prettier --write src/",
25+
"prettier": "prettier --check .",
26+
"prettier:fix": "prettier --write .",
2727
"prettier:theme:gruvbox": "prettier --check themes/themes/gruvbox/ts/ ",
2828
"prettier:theme:gruvbox:fix": "prettier --write themes/themes/gruvbox/ts/",
2929
"prettier:theme:dracula": "prettier --check themes/themes/dracula/ts/ ",

0 commit comments

Comments
 (0)