1
0
Commit Graph

37 Commits

Author SHA1 Message Date
drkhsh
e0c155e9ab README: Sync description from manpage 2023-04-23 23:48:47 +02:00
drkhsh
173b03417d Update README 2022-12-19 02:44:21 +01:00
drkhsh
57c6e7340d New component: cat
Generically reads an arbitrary file natively.

Saves a few layers of execution in comparison to using `run_command`
with an argument like `cat ./file`.
2022-11-24 00:01:52 +01:00
drkhsh
4bd78c94ba README: Add note about FreeBSD sndio dep 2022-10-28 01:03:56 +02:00
drkhsh
0aacce1c52 Add comment about mixer oss module to README 2022-10-26 21:24:20 +02:00
Aaron Marcher
84a2f117a3 Update README 2020-11-30 21:32:14 +01:00
Aaron Marcher
93daf4f35e Add OS-support notice to README 2019-02-16 17:05:04 +01:00
Ingo Feinerer
c1dc896c80 Add native OpenBSD support for mute/volume
Based on functionality in dstat by Joerg Jung.
2019-02-13 13:35:44 +01:00
Aaron Marcher
c28643ce5b 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 37724ac2c3 for now.
2018-05-27 16:46:03 +02:00
Aaron Marcher
385aedffd9 Add keymap to README 2018-05-23 11:50:08 +02:00
David Demelier
37724ac2c3 Add basic backlight percentage support
At the moment linux only, but will add support for OpenBSD as well.
2018-05-22 12:40:31 +02:00
Aaron Marcher
0d05b3d13d Add network speed functions 2018-05-19 00:31:33 +02:00
Aaron Marcher
f170028527 Port battery_remaining to Linux
Additionally unify the format of battery_state and uptime
2018-05-18 17:25:09 +02:00
Aaron Marcher
1b3fafd77e Update README 2018-05-16 23:19:33 +02:00
Aaron Marcher
fd14804d6f entropy: Port to OpenBSD
OpenBSD's entropy design is superior to Linux.
2018-05-06 22:54:32 +02:00
Aaron Marcher
66a7fb16fc Remove cpu_iowait
The third value from load_avg (idle) gives us almost the same
information as cpu_iowait. Plus OpenBSD does not offer an iowait value
as Linux and thus the corresponding function would not be portable.
2018-05-06 21:11:50 +02:00
Aaron Marcher
2b82bf0248 cpu_perc: Port to OpenBSD
In OpenBSD the CPU usage in percent is now computed using KERN_CPTIME
sysctl.
2018-05-06 17:48:37 +02:00
Aaron Marcher
efb41724b5 swap_*: Port to OpenBSD 2018-05-06 01:20:46 +02:00
Aaron Marcher
f5f3808f36 Update README todo 2018-05-01 21:05:50 +02:00
Aaron Marcher
4f5ac5d9fe Remove battery_power for various reasons
- Battery power cannot be easily gatherable via apm(4)
- IMHO it does not represent essential information
2018-05-01 21:01:25 +02:00
Laslo Hunhold
42edfea89a Revert component-split
this reverts the commits from 92ab9ef52e up to
d42870d6ca.

After heavy consideration, the component split has more disadvantages
than advantages, especially given there will be utility-functions
sharing quite a lot of code that would then need to be duplicated, as it
does not fit into the util.c due to its speciality.

One big advantage of the component-wise build is readability, and
without doubt, this was achieved here. This point will be addressed
with a different approach that will be visible in the upcoming commits.

One big disadvantage of the component build is the fact that it
introduces state to the build process which is not necessary. Before its
introduction, the only influencing factors where the system-defines
__linux__ and __OpenBSD__. With the components, we are also relying on
the output of uname(1).
Additionally, if the os.mk is not present, make gives the output

     $ make
     Makefile:5: os.mk: No such file or directory
     make: *** No rule to make target 'os.mk'.  Stop.

This could easily be fixed by providing some sort of meta-rule for this
file, however, it indicates the problem we have here, and this entire
statefulness will heavily complicate packaging of this tool and makes
the build process much more complex than it actually has to be.
2018-05-01 19:43:34 +02:00
Quentin Rameau
92ab9ef52e Makefile: detect running OS 2018-04-30 15:40:20 +02:00
Aaron Marcher
3fe1db8892 cpu_freq: Port to OpenBSD
In OpenBSD CPU frequency gets fetched using sysctl now.
2018-04-30 13:20:24 +02:00
Aaron Marcher
4113a39ee6 Update README for OpenBSD build 2018-04-29 22:33:15 +02:00
Aaron Marcher
489c6f87d1 temp: Port to OpenBSD
In OpenBSD temperature gets fetched using sysctl now.
2018-04-29 18:35:41 +02:00
Aaron Marcher
b6d2b652d0 Remove vol_perc() from todo in README 2018-04-29 16:08:45 +02:00
Aaron Marcher
96330ff42b Remove ipv{4,6}() from todo in README 2018-04-29 13:00:12 +02:00
Aaron Marcher
c2e7d6812c Remove ram_*() from README 2018-04-14 19:44:25 +02:00
Aaron Marcher
198df15d83 Remove ALSA dependency from README
ALSA is not a dependency anymore as we use /dev/mixer. The corresponding
notice about PulseAudio is thus not necessary too.
2018-03-26 18:09:30 +02:00
Aaron Marcher
fc5d23212f uptime: Port to OpenBSD.
In OpenBSD uptime gets fetched using sysctl now.
2018-03-20 00:52:09 +01:00
Aaron Marcher
7e3f80c1a3 battery_perc: Port to OpenBSD.
In OpenBSD battery percentage gets fetched using apm now.
2018-03-19 18:46:52 +01:00
Aaron Marcher
ad5b7c8b1c README: Add list of non-portable functions 2018-03-18 23:30:54 +01:00
Aaron Marcher
25bda72e64 README: Add Todo 2018-03-18 22:51:51 +01:00
Aaron Marcher
53e0c4535a
Added CPU iowait to README 2017-09-16 13:54:28 +02:00
Aaron Marcher
8f5219b6da
Added IPv6 address function
- Renamed "ip" function to "ipv4"
- Added "ipv6" function
- Adjusted README and config.def.h accordingly
2017-08-14 18:00:46 +02:00
Aaron Marcher
779f611208
slstatus != dmenu lol 2017-08-12 13:37:12 +02:00
Aaron Marcher
d35e518e39
New README in plain text 2017-08-10 21:49:37 +02:00