Implement shmlog command

Add shmlog command that takes <size>|toggle|on|off. Separate logbuffer
management into open_logbuffer() and close_logbuffer(). Make
t/187-commands-parser.t expect 'shmlog'. Add update_shmlog_atom() to
update the SHMLOG_PATH. Document the shmlog command in userguide.
This commit is contained in:
Alexander Berntsen
2013-06-05 15:04:57 +02:00
committed by Michael Stapelberg
parent 684a77442e
commit f9d93d75b3
9 changed files with 116 additions and 11 deletions

View File

@ -1762,6 +1762,22 @@ stack-limit rows 5
image:stacklimit.png[Container limited to two columns]
///////////////////////////////////////////////////////////////////////////////
== Starting/stopping/changing the size of the shm log
You may start or stop the shm log with +shmlog+, or change the size of the log.
If you pass a size to the shmlog command, it will change the running log's
size, or, if the log is not running, start the log with the provided size. You
may also toggle the log. This is useful if you want to bind the command to a
key.
*Examples*:
---------------
shmlog 26214400
shmlog toggle
shmlog on
shmlog off
---------------
=== Reloading/Restarting/Exiting
You can make i3 reload its configuration file with +reload+. You can also