15 Commits (aaf279f6ddfb48146fc1a579efd83a55722910b5)

Author SHA1 Message Date
Daniel Moch aaf279f6dd Add a -1 option flag
Allow slstatus to be used by programs that can grab status by calling
an external program on a periodic basis (e.g. tmux)
5 years ago
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.
8 years ago
Aaron Marcher fa8b939990 Add option to output only once and exit 8 years ago
Aaron Marcher 6a33d6c875
Fix man page .Os field 9 years ago
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.
9 years ago
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.
9 years ago
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.
9 years ago
Aaron Marcher 870d68d44e
added option to output only once and exit afterwards 9 years ago
Aaron Marcher 8fa6229759
why releases for such a small project? useless and overhead! 9 years ago
Ali H. Fardan f4a383382c several changes 10 years ago
Aaron Marcher fd36f65cc7 updated man page according to readme 10 years ago
Aaron Marcher fad39093cc added -v to manpage 10 years ago
Aaron Marcher 915eeb8b49 lol, dwm != slstatus in manpage :D 10 years ago
Aaron Marcher 14749b6c87 added -v command line option 10 years ago
Aaron Marcher 2fdb2ede04 added man page 10 years ago