summarylogtreecommitdiffstats
path: root/FnLock.service
blob: c60ae69b04af2441d5379e6a84afb32ee3999436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[Unit]
Description=Toggle Fn Lock on Modifier Key Press
After=multi-user.target
Wants=network.target

[Service]
Type=simple
ExecStart=/usr/bin/python3 /usr/bin/FnLock
Restart=on-failure
RestartSec=5

ProtectSystem=full
ProtectHome=read-only
NoNewPrivileges=true
PrivateTmp=true
ReadWritePaths=/sys/bus/platform/devices/VPC2004:00/fn_lock /dev/input
CapabilityBoundingSet=CAP_SYS_ADMIN CAP_DAC_OVERRIDE
StandardOutput=journal
StandardError=journal
User=root

[Install]
WantedBy=multi-user.target