Laslo Hunhold and Aaron Marcher
ecf2779904
Remove unnecessary blank lines after license-notice
2017-08-13 23:31:56 +02:00
Laslo Hunhold and Aaron Marcher
1814061396
Add and use LEN() macro
2017-08-11 13:43:11 +02:00
Laslo Hunhold and Aaron Marcher
178c23e3d2
Refactor battery_state()
2017-08-11 00:20:47 +02:00
Laslo Hunhold and Aaron Marcher
00ce7a746a
Print usage() when we are left with arguments
2017-08-10 22:33:05 +02:00
Laslo Hunhold and Aaron Marcher
c9d47405f4
Reduce -o | -n to -s
...
What we really want is to either output to WM_NAME or stdout. If we want
just one single line, we do slstatus | head -n 1.
2017-08-10 22:32:57 +02:00
Laslo Hunhold and Aaron Marcher
4d33c36014
Remove d- and v-flags
...
d-flag: There's no need for that, use the &-operator or fork+exec in a
non-shell-context. In the latter case you get the PID for free.
v-flag: If you want to find out which version of a package is installed,
consult your package manager. That's his job.
2017-08-10 22:32:48 +02:00
Laslo Hunhold and Aaron Marcher
958c34052a
Convert slstatus.1 to mandoc, simplify it and remove -h
...
We also change the semantics of -v to only return the version
information.
There is now no need for usage() to exit with anything other than 1.
2017-08-10 22:32:28 +02:00
Laslo Hunhold and Aaron Marcher
8dad4910bf
Refactor build system
2017-08-10 22:32:14 +02:00