Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mmaul/power
Power managment and suspend on laptop lid close for SumpWM
https://github.com/mmaul/power
Last synced: 3 months ago
JSON representation
Power managment and suspend on laptop lid close for SumpWM
- Host: GitHub
- URL: https://github.com/mmaul/power
- Owner: mmaul
- Created: 2015-07-07T23:27:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-07-07T23:34:58.000Z (over 9 years ago)
- Last Synced: 2024-06-12T01:48:54.442Z (5 months ago)
- Language: Common Lisp
- Size: 129 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
- awesome-stumpwm - power - Power managment and suspend on laptop lid close (Modules)
README
Utilities for power control via upowerd
** Features
+ Suspend on laptop close for stumpwm.
+ Suspend command
+ Hibernate command** Installation
Clone repo
git clone https://github.com/mmaul/power.git ~/.stumpwm.d/moduls/util/power** Usage
*** For suspend on laptop lid close:
#+BEGIN_SRC lisp
(load-module "power")
(power:start-laptop-lid-watcher)
#+END_SRC
to =.stumpwmrc=Default time to sleep is 5 seconds =*laptop-lid-watcher-interval*=
Default lid state patch if determined from
"/proc/acpi/button/lid/LID/state" =*lid-state-path*=Default lid state open pattern is "state:\\s+open"
=*lid-state-open-pattern*=Default lid state open pattern is "state:\\s+closed" =*lid-state-closed-pattern*=
*** Commands
+ suspend - suspend computer
+ hibernate - hibernate computer*** Exported functions
+ do-suspend
+ do-hibernate
+ start-laptop-lid-watcher
+ stop-laptop-lid-watcher