1
0
Fork 0
Commit graph

14 commits

Author SHA1 Message Date
Laslo Hunhold
57f69e900b Remove o-flag as it is redundant
Even if we extend the flag to be an n-flag with a numerical input, we
already have other Unix-tools to take care of us much more flexibly,
e.g. with head(1) you can easily get the first 10 outputs with

	slstatus -s | head -n 10,

but also e.g. discard the first one and then get the consecutive 10
outputs.

For the X11-root-window-name, you can limit the runtime with timeout(1)
or a comparable solution.

This reverts commit fa8b939990.
2018-05-22 13:27:11 +02:00
Aaron Marcher
fa8b939990 Add option to output only once and exit 2018-05-21 14:07:41 +02:00
Aaron Marcher
6a33d6c875
Fix man page .Os field 2017-08-13 23:25:44 +02:00
Laslo Hunhold
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
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
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
Aaron Marcher
870d68d44e
added option to output only once and exit afterwards 2017-05-11 19:06:45 +02:00
Aaron Marcher
8fa6229759
why releases for such a small project? useless and overhead! 2016-12-29 23:36:05 +01:00
Ali H. Fardan
f4a383382c several changes 2016-09-18 22:27:04 +03:00
Aaron Marcher
fd36f65cc7 updated man page according to readme 2016-09-18 21:08:21 +02:00
Aaron Marcher
fad39093cc added -v to manpage 2016-09-18 21:07:02 +02:00
Aaron Marcher
915eeb8b49 lol, dwm != slstatus in manpage :D 2016-09-18 21:06:28 +02:00
Aaron Marcher
14749b6c87 added -v command line option 2016-09-18 17:03:53 +02:00
Aaron Marcher
2fdb2ede04 added man page 2016-09-17 22:51:59 +02:00