Skip to content

Commit f9799ab

Browse files
authored
Update keychron.service
Added `RemainAfterExit` and changed `Type` to simple instead of oneshot
1 parent d6abe76 commit f9799ab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

script/keychron.service

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
Description=Disable media keys and substitute in function keys
33

44
[Service]
5-
Type=oneshot
5+
Type=simple
6+
RemainAfterExit=yes
67
ExecStart=/bin/bash -c "echo 0 > /sys/module/hid_apple/parameters/fnmode"
8+
ExecStop=/bin/bash -c "echo 1 > /sys/module/hid_apple/parameters/fnmode"
79

810
[Install]
911
WantedBy=multi-user.target

0 commit comments

Comments
 (0)