RinRi
ee935920b4
2023-08-02
9 meses atrás
RinRi
ff3c5cde9b
add brightness
3 anos atrás
RinRi
3243b2a03b
added username@hostname
3 anos atrás
RinRi-D
32b6139ac0
volume
3 anos atrás
Michael Buch
a1ac203d16
Add ram and swap components on FreeBSD
5 anos atrás
Ingo Feinerer
10bdf01b71
cpu_perc: Check for division by zero
5 anos atrás
Ingo Feinerer
d518472e62
Fix CPU frequency on OpenBSD
5 anos atrás
Michael Buch
a9193a757a
close file descriptors and fix return values
5 anos atrás
Ingo Feinerer
c1dc896c80
Add native OpenBSD support for mute/volume
Based on functionality in dstat by Joerg Jung.
5 anos atrás
Michael Buch
e724907cc3
wifi component on FreeBSD
5 anos atrás
Michael Buch
86849d295b
Add FreeBSD support for netspeeds, entropy and ip components
5 anos atrás
Michael Buch
120d150594
Add support for cpu and uptime components on FreeBSD
5 anos atrás
Michael Buch
ec306623df
Add FreeBSD support for temperature and battery components
5 anos atrás
Aaron Marcher
dd7f1896aa
ram: Consistency with line breaks
5 anos atrás
Aaron Marcher
e213b48122
Fix whitespace
5 anos atrás
Aaron Marcher
96ddf4e1de
Consistency with 80 char limit and breaks
5 anos atrás
Aaron Marcher
c93971748c
wifi_perc: Simplify on Linux
Remove unnecessary variable
5 anos atrás
Aaron Marcher
acfa1f50c2
Simplify format specifiers for uintmax_t
5 anos atrás
Aaron Marcher
c2492c3f99
cpu_freq: Simplify with E-notation
Thanks to the FRIGN
5 anos atrás
Aaron Marcher
e20b50112e
cpu_freq: Change to 64 bit integers
Remove unnecessary cast to size_t
5 anos atrás
Aaron Marcher
43a12832a3
Change uint64_t to uintmax_t
5 anos atrás
Aaron Marcher
d76b1a21fc
battery: 64 bit ints on Linux
5 anos atrás
Aaron Marcher
b792b7ab69
cpu: Use uint64_t on OpenBSD
5 anos atrás
Aaron Marcher
609ef3aa1f
battery: Remove unnecessary defines for paths
5 anos atrás
Aaron Marcher
16e15217c6
uptime: Improve typing and sort headers
5 anos atrás
Aaron Marcher
d1e3398822
temperature: Improve types
5 anos atrás
Aaron Marcher
ab4f24a612
ram: Check for theoretical division by zero
5 anos atrás
Aaron Marcher
fa7c266e2b
ram: Use POSIX types
5 anos atrás
Aaron Marcher
b65c058598
entropy: Use POSIX types for format specifiers
5 anos atrás
Aaron Marcher
c59b64e643
entropy: Improve types
5 anos atrás
Aaron Marcher
51ff7ce2b9
Consistent paramter naming for components
5 anos atrás
Ian Remmler
32e0a2bfcc
Add flexible formatting to keyboard_indicators.
Updated for style.
6 anos atrás
Tobias Tschinkowitz
005b541717
uptime: unification of the uptime function for linux/openbsd
6 anos atrás
Tobias Tschinkowitz
8c8091f4f1
wifi: fixed disconnected wifi status on openbsd
6 anos atrás
Aaron Marcher
b0401b13bb
Clean up header includes
- Remove <errno.h> because related functions are in util.c now
- Remove corresponding <string.h> if not used otherwise
6 anos atrás
Tobias Tschinkowitz
0c29fc56f9
swap: removed unused include
6 anos atrás
Laslo Hunhold
a18439af11
Refactor swap.c to use getline() instead of buf-filling
This drops a lot of code and even though we are using a common function,
the specification of only the needed things keeps it very efficient and
even more efficient in memory and time than the previous solution.
6 anos atrás
Laslo Hunhold
682c0fedde
Use E-notation for large powers of 10
6 anos atrás
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.
6 anos atrás
Tobias Tschinkowitz
5db729fedb
ram: fixed int overflow on pagetok macro
6 anos atrás
Laslo Hunhold
f17f39d0a2
Refactor keymap.c
- Get rid of camel-casing
- Don't use all-caps for variable names
- use LEN()-macro
- use strncmp() rather than strstr() for prefix-checking
- clean up the tokenizer-loop and don't use copies
- make the loop more readable by separating different breaking
conditions
- stricter error-checking and cleanup
- store the layout directly with bprintf rather than having
a separate buffer
6 anos atrás
Aaron Marcher
d6ad87ce06
keymap: Add braces for for loop
6 anos atrás
Michael Buch
943b42de05
Add keymap component
Adding a new keymap component that will
indicate the current keyboard layout (language)
and variant if any was set. I use the
standard X11 XKB APIs to retrieve and parse
the xkb_symbols set with setxkbmap.
6 anos atrás
Aaron Marcher
825f637e20
netspeeds: Fix indentation
6 anos atrás
David Demelier
37724ac2c3
Add basic backlight percentage support
At the moment linux only, but will add support for OpenBSD as well.
6 anos atrás
Aaron Marcher
cbbf59fd3d
Change to fmt_human in netspeeds on OpenBSD
Thanks to Hiltjo
6 anos atrás
Laslo Hunhold
7f91ce265e
swap.c: Refactor getstats() and its usage
Add a return value so we are able to check any errors and actually fail
when there has been a critical error instead of carrying on uselessly.
6 anos atrás
Aaron Marcher
10dbc9543e
Merge fmt_human_2 and fmt_human_10 to one function
Now only one function, fmt_human, takes an additional argument "base".
6 anos atrás
Aaron Marcher
fc0dde5a60
Remove fmt from load_avgs for consistency
In a later commit something like that will be enabled for every
component
6 anos atrás
Aaron Marcher
aa8654795d
battery_remaining: check for division by zero
6 anos atrás