开发者

Writing a lockscreen for Linux?

开发者 https://www.devze.com 2023-03-21 10:04 出处:网络
I\'ve been looking around for a nice locks开发者_运维技巧creen to use with my XFCE system, but it seems like there are any slim lock screens around. I\'m currently using slock, but it\'s just a blank

I've been looking around for a nice locks开发者_运维技巧creen to use with my XFCE system, but it seems like there are any slim lock screens around. I'm currently using slock, but it's just a blank screen with absolutely no interface whatsoever.

I'm looking to code a lockscreen in Python. I looked at the source code for slock, and it seems like I have to interface with Xorg somehow.

Does anybody know anything about writing lockscreens?


If you want to go low-level, you can use python xcb bindings.

If you want to use higher level bindings, you may find this tutorial on writing a screen saver with Qt useful. Porting it to PyQt should be quite straightforward. I'm pretty sure similar resources exist for GTK.

0

精彩评论

暂无评论...
验证码 换一张
取 消