https://github.com/antomfdez/statectl
Rust program to hibernate, sleep or freeze a linux system in CLI using /sys/power/state file.
https://github.com/antomfdez/statectl
linux linux-app linux-shell rust rust-lang
Last synced: 3 months ago
JSON representation
Rust program to hibernate, sleep or freeze a linux system in CLI using /sys/power/state file.
- Host: GitHub
- URL: https://github.com/antomfdez/statectl
- Owner: antomfdez
- Created: 2024-05-28T15:32:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-28T17:59:28.000Z (about 1 year ago)
- Last Synced: 2025-01-18T22:46:45.323Z (5 months ago)
- Topics: linux, linux-app, linux-shell, rust, rust-lang
- Language: Rust
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# statectl
Rust program to hibernate, sleep or freeze a linux system in CLI using ```/sys/power/state``` file.
## Usage/Examples```bash
sudo statectl [hibernate,sleep,freeze]
```## Compile
```bash
git clone https://github.com/antomfdez/statectl.git
cd statectl
sudo cargo build
sudo cp target/debug/statectl /usr/bin
```
### Dowload binary
[](https://github.com/antomfdez/statectl/releases/latest)### How to install from releases:
```bash
tar -xf statectl.tar
cd statectl
sudo chmod +x installer.sh
sudo ./installer.sh
```
## Screenshots