37 lines
955 B
Markdown
37 lines
955 B
Markdown
# kb-layout-caps-led
|
|
|
|
This project is to show your keyboard layout switching with CapsLock LED indicator.
|
|
|
|
## Installation
|
|
|
|
### Change the path to your project into
|
|
|
|
1. daemons/gnome-kb-layout-watcher.service
|
|
2. daemons/kb-layout-signal-watcher.service
|
|
|
|
There are two systemd daemons: one is running from user, the other one as root.
|
|
|
|
### User's daemon is aimed to determine the current keyboard layout and tell it to root's daemon
|
|
|
|
```bash
|
|
> systemctl --user enable /%FULL_PATH_TO%/daemons/gnome-kb-layout-watcher.service
|
|
```
|
|
|
|
```bash
|
|
> systemctl --user start gnome-kb-layout-watcher.service
|
|
```
|
|
|
|
### Root's daemon is aimed to set up the CapsLock LED indicator according of user's daemon data
|
|
|
|
```bash
|
|
> sudo cp /%FULL_PATH_TO/daemons/kb-layout-signal-watcher.service /etc/systemd/system/kb-layout-signal-watcher.service
|
|
```
|
|
|
|
```bash
|
|
> sudo systemctl enable kb-layout-signal-watcher.service
|
|
```
|
|
|
|
```bash
|
|
> sudo start kb-layout-signal-watcher.service
|
|
```
|