https://github.com/cytopia/i3-utils-systemd
https://github.com/cytopia/i3-utils-systemd
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cytopia/i3-utils-systemd
- Owner: cytopia
- Created: 2017-07-12T19:14:44.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-12T19:16:07.000Z (almost 8 years ago)
- Last Synced: 2024-12-30T15:08:11.648Z (5 months ago)
- Language: Makefile
- Size: 2.93 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# i3-utils-systemd
Systemd utilities for a minimalistic [i3](https://github.com/i3/i3) setup.
1. Lock screen before suspend
2. Suspend on lid close---
**This repository is part of the [i3-utils](https://github.com/cytopia/i3-utils).** (See also [i3-utils-bin](https://github.com/cytopia/i3-utils-bin))
---
## Systemd
| Tool | Target | Description |
|------|--------|-------------|
| [70-close_lid.conf](systemd/logind.conf.d/70-close_lid.conf) | `/usr/lib/systemd/logind.conf.d/` | Systemd login configuration to handle notebook lid close. Will put the computer to sleep when the lid closes.
Only going to sleep when:
- No power or docking station is connected
- No external monitor is connected
- No graphical desktop environment already handles lid close actions and prevents systemd via low-level inhibitor lock.
| [suspend.service](systemd/system/suspend.service) | `/usr/lib/systemd/system/` | Suspend addition to lock the screen before going to sleep.
**It requires [xlock](https://github.com/cytopia/i3-utils-bin/blob/master/bin/xlock).** |
## Integration
#### Requirements
* [convert](https://linux.die.net/man/1/convert)
* [i3lock](https://github.com/i3/i3lock)
* [scrot](https://man.cx/scrot)
* [xlock](https://github.com/cytopia/i3-utils-bin/blob/master/bin/xlock) *([i3-utils-bin](https://github.com/cytopia/i3-utils-bin))*
#### Install
This will copy files to `/usr/lib/systemd/`, enable the services and reload systemd.
```bash
$ ./configure
$ sudo make install
```
#### Uninstall
This will disable the services, remove files from `/usr/lib/systemd/` and reload systemd.
```bash
$ sudo make uninstall
```