Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/axtloss/autodarkmode
https://codeberg.org/axtlos/autodarkmode
https://github.com/axtloss/autodarkmode
Last synced: about 2 months ago
JSON representation
https://codeberg.org/axtlos/autodarkmode
- Host: GitHub
- URL: https://github.com/axtloss/autodarkmode
- Owner: axtloss
- License: gpl-3.0
- Created: 2024-05-28T20:33:47.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-29T22:56:38.000Z (8 months ago)
- Last Synced: 2024-05-30T11:38:19.763Z (8 months ago)
- Language: C
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# autodarkmode
A simple tool to switch between dark and light mode.
It executes a command on switch and nothing else.
Location is either specified by the user or retrieved via geoclue.
It has a constant memory footprint of about 393kb.
# Building
```
meson setup _build
cd build
meson compile
```
the resulting binary `src/autodarkmode` can then be moved to any directory in PATH.# Configuration
```ini
[main]
; can be 'manual' or 'gclue'
locationtype = "manual"[manual]
; set latitude and longitude in case that locationtype is set to manual
latitude = -10.0
longitude = -5.0[light]
; command to execute for light mode
cmd = "notify-send 'a'"[dark]
; command to execute for dark mode
cmd = "notify-send 'b'"
```
autodarkmode expects to find this configuration in `$XDG_CONFIG_HOME/autodarkmode/config.ini`, in the case that XDG_CONFIG_HOME is empty, it will use `~/.config/autodarkmode/config.ini`