Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stillron/stations
Automatically close Gnome desktops at a certain time and provides pop-up warning window with timer
https://github.com/stillron/stations
gnome-desktop linux-desktop public-libraries
Last synced: about 2 months ago
JSON representation
Automatically close Gnome desktops at a certain time and provides pop-up warning window with timer
- Host: GitHub
- URL: https://github.com/stillron/stations
- Owner: stillron
- License: gpl-3.0
- Created: 2023-10-30T13:31:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-15T18:30:19.000Z (5 months ago)
- Last Synced: 2024-10-14T02:23:07.324Z (3 months ago)
- Topics: gnome-desktop, linux-desktop, public-libraries
- Language: Python
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Stations
A series of bash scripts and systemd services/timers that allow the public computers to close themselves down at a certain time.
## Usage
* `station close ` closes the station loggin out the supplied user in the process.
* `station open ` opens the station.
* `station setup ` enables and starts all required systemd timers. Do this when you're ready for the stations to begin closing themeselves.
* `station teardown ` disables and stops all required systemd timers. Do this when you'd like the stations to not close automatically.## Setting up timers
Timers are based upon the `OnCalendar=` directives.
Shutdown timers are setup to fire 10 minutes before the library closes. They are set to fire every 15 seconds between computer shutdown time and library closing time.
__Example of closing timing__
```
[Timer]
OnCalendar=Mon..Thu 17:45..59:0/15
OnCalendar=Fri..Sat 16:45..59:0/15
AccuracySec=1s
```Notification timers should be set up to run 10 minutes before the station-close timer fires. They are currently setup to run 1/minute until 1 minute before shutdown.
__Example of notification timing__
```
[Timer]
OnCalendar=Mon..Thu 17:40..49/1
OnCalendar=Fri..Sat 15:40..49/1
AccuracySec=1s
```Open timers are set up to fire 30 minutes after closing. They are also set to be persistent. So, if the computer is shut down at the time it is supposed to open itself, it will fire the open service as soon as it boots.
__Example of opening timing__
```
[Timer]
OnCalendar=Mon..Thu 18:30
OnCalendar=Fri..Sat 17:30
Persistent=true
AccuracySec=1s
```