kb-layout-caps-led/README.md

37 lines
955 B
Markdown
Raw Permalink Normal View History

2019-05-03 18:10:08 +03:00
# kb-layout-caps-led
2019-05-04 02:34:41 +03:00
2019-05-05 16:55:47 +03:00
This project is to show your keyboard layout switching with CapsLock LED indicator.
2019-05-05 16:53:13 +03:00
## Installation
2019-05-05 16:58:37 +03:00
### Change the path to your project into
1. daemons/gnome-kb-layout-watcher.service
2. daemons/kb-layout-signal-watcher.service
2019-05-05 16:53:13 +03:00
There are two systemd daemons: one is running from user, the other one as root.
2019-05-05 16:55:47 +03:00
### User's daemon is aimed to determine the current keyboard layout and tell it to root's daemon
2019-05-05 16:53:13 +03:00
```bash
> systemctl --user enable /%FULL_PATH_TO%/daemons/gnome-kb-layout-watcher.service
```
```bash
> systemctl --user start gnome-kb-layout-watcher.service
```
2019-05-05 16:55:47 +03:00
### Root's daemon is aimed to set up the CapsLock LED indicator according of user's daemon data
2019-05-05 16:53:13 +03:00
```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
```