sindresorhus / lock-system Goto Github PK
View Code? Open in Web Editor NEWLock your system
License: MIT License
Lock your system
License: MIT License
i.e., https://github.com/unixorn/tumult.plugin.zsh/blob/master/bin/lockscreen
is suspension different from SAC lock?
Hey, is there a particular reason for the order of Linux commands? The way that it's currently set, it actually doesn't work for me. My workstation seems to have xdg-screensaver, but no-ops when I try to run the command. The cinnamon command works.
The macOS lock-executable's source is currently not provided in the repository. Perhaps this could be added.
An alternative solution that doesn't require a binary would be to use child-process
to execute the pmset displaysleepnow
command. This will put the screen to sleep, which results in a lock if the user has set a log-in password and turned on "Require password after sleep or screen saver begins" in System Preferences, which should be the case anyway.
const { exec } = require('child_process');
exec('pmset displaysleepnow');
Would you accept a pr to add support for the Cinnamon desktop environment? It's one of the most popular linux desktops right after gnome, used initially by linux mint, and now shipped on several other distros.
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.