Debian10 开机自动开启数字小键盘

/ 0评 / 3

1. 安装 numlockx

sudo apt update
sudo apt install numlockx

创建一个 systemd service 用于开机自启动

vi ~/numlock.service

[Unit]
Description=numlock

[Service]
ExecStart=/usr/bin/numlockx on
StandardInput=tty
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

3. 添加为开机自启动

sudo cp ~/numlock.service /usr/lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable numlock.service
sudo systemctl start numlock.service

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注