Skip to content

Commit c28643c

Browse files
committed
Revert "Add basic backlight percentage support"
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 37724ac for now.
1 parent 5db729f commit c28643c

File tree

6 files changed

+0
-41
lines changed

6 files changed

+0
-41
lines changed

Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ include config.mk
66

77
REQ = util
88
COM =\
9-
components/backlight\
109
components/battery\
1110
components/cpu\
1211
components/datetime\

README

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ slstatus is a suckless status monitor for window managers that use WM_NAME
66

77
Features
88
--------
9-
- Backlight percentage
109
- Battery percentage/state/time left
1110
- CPU usage
1211
- CPU frequency

components/backlight.c

-32
This file was deleted.

config.def.h

-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ static const char unknown_str[] = "n/a";
1212
/*
1313
* function description argument (example)
1414
*
15-
* backlight_perc backlight percentage device name
16-
* (intel_backlight)
1715
* battery_perc battery percentage battery name (BAT0)
1816
* NULL on OpenBSD
1917
* battery_state battery charging state battery name (BAT0)

slstatus.h

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
/* See LICENSE file for copyright and license details. */
22

3-
/* backlight */
4-
const char *backlight_perc(const char *);
5-
63
/* battery */
74
const char *battery_perc(const char *);
85
const char *battery_state(const char *);

util.h

-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/* See LICENSE file for copyright and license details. */
2-
#include <stddef.h>
3-
42
extern char buf[1024];
53

64
#define LEN(x) (sizeof (x) / sizeof *(x))

0 commit comments

Comments
 (0)