Skip to content

Commit 1e31447

Browse files
authored
Merge pull request #2 from thekenu/ken/fix_keychron_service
Fix keychron.service
2 parents e1d5204 + accf604 commit 1e31447

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ Open a terminal window and enter the following command:
1313

1414
Paste the following into the window:
1515

16-
```[Unit]
16+
```
17+
[Unit]
1718
Description=The command to make the Keychron K2 work
1819
1920
[Service]
2021
Type=oneshot
21-
ExecStart=echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
22+
ExecStart=/bin/bash -c "echo 0 > /sys/module/hid_apple/parameters/fnmode"
2223
2324
[Install]
2425
WantedBy=multi-user.target

script/keychron.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Description=The command to make the Keychron K2 work
33

44
[Service]
55
Type=oneshot
6-
ExecStart=echo 0 | sudo tee /sys/module/hid_apple/parameters/fnmode
6+
ExecStart=/bin/bash -c "echo 0 > /sys/module/hid_apple/parameters/fnmode"
77

88
[Install]
99
WantedBy=multi-user.target

0 commit comments

Comments
 (0)