jirutka / zzz Goto Github PK
View Code? Open in Web Editor NEWA simple program to suspend or hibernate your computer 💤
License: MIT License
A simple program to suspend or hibernate your computer 💤
License: MIT License
I have a script that runs a locker (swaylock) on resume, and the entire desktop (sway) is visible on resume for ~0.5 seconds or so before the locker app kicks in. I'm not sure if this is a zzz 'problem' or something else...
I've tried running the locker app both ways:
case $1/$2 in
pre/*)
sudo -u user WAYLAND_DISPLAY=wayland-1 XDG_RUNTIME_DIR=/run/user/1000 swaylock -c 000000 &
;;
esac
and:
case $1/$2 in
post/*)
sudo -u user WAYLAND_DISPLAY=wayland-1 XDG_RUNTIME_DIR=/run/user/1000 swaylock -c 000000
;;
esac
Do you know of some better way to handle this that doesn't result in the desktop being visible on resume?
I’m not just whether zzz is the right place to do this.
The Alpine package doesn't have 9fd2271
Call it directly from zzz
or add a default hook script?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.