一款suckless团队开发的锁屏小工具
git clone https://git.suckless.org/slock
或者点击该链接下载:https://dl.suckless.org/tools/slock-1.4.tar.gz
下载完成后,进入源码目录
cd slock
编译安装:
sudo make clean install
slock: getgrnam nogroup: group entry not found
You should probably set user=nobody and group=nobody, so that the display locker has no privileges for better security. The only reason that it doesn’t work initially is because Arch calls the no-privilege group nobody, and not nogroup.
原因是在arch中称 no-privilege组为nobody, 而不是nogroup
提醒:重新编译安装时最好把之前的config.h文件给删除,编译时makefile会重新从config.deg.h复制一份为config.h
fatal error: Imlib2.h: No such file or directory
缺少依赖。安装即可。sudo pacman -S imlib2
。该问题出现于我打模糊补丁的时候会出现。