Skip to content

Commit

Permalink
feature: provide systemctl service template
Browse files Browse the repository at this point in the history
  • Loading branch information
quantumsnowball committed Jun 9, 2022
1 parent 034e2e4 commit 0479567
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.python-version
pyrightconfig.json
__pycache__
waylandmap.egg-info
__pycache__/
waylandmap.egg-info/
build/
dist/
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ The program accept a config file path as argument. The config file should be in

## Install as Linux system services

After writing your config file and test running it without problem, your can install the program as a system services. This should w automatically start the keymapper when you login.
After writing your config file and test running it without problem, your can install the program as a system services. This should automatically start the keymapper everytime when you login. You may use `systemctl/waylandmap.service` as a template to edit the services file, and then install the service as follows:

```
TODO
sudo cp systemctl/waylandmap.service /etc/systemd/system/
sudo systemctl enable waylandmap.service
```

File renamed without changes.
11 changes: 11 additions & 0 deletions systemctl/waylandmap.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=WaylandMap
After=multi-user.target

[Service]
Type=simple
Restart=always
ExecStart=/path/to/your/waylandmap -n <your-keyboard-name> /path/to/your/keymaps.yaml

[Install]
WantedBy=multi-user.target

0 comments on commit 0479567

Please sign in to comment.