c28643ce5b
On OpenBSD the backlight percentage cannot be retrieved in a simple way.
The only two solutions we are aware of for now are:
- reading from /dev/ttyC0: which isn't possible without changing
permissions or running slstatus as root
- linking against xcb-xrandr: which is bloat and does not work in every
case appearently
This reverts commit 37724ac2c3
for now.
15 lines
407 B
C
15 lines
407 B
C
/* See LICENSE file for copyright and license details. */
|
|
extern char buf[1024];
|
|
|
|
#define LEN(x) (sizeof (x) / sizeof *(x))
|
|
|
|
extern char *argv0;
|
|
|
|
void warn(const char *, ...);
|
|
void die(const char *, ...);
|
|
|
|
int esnprintf(char *str, size_t size, const char *fmt, ...);
|
|
const char *bprintf(const char *fmt, ...);
|
|
const char *fmt_human(size_t num, int base);
|
|
int pscanf(const char *path, const char *fmt, ...);
|