Document how to switch focus to mail client on left click.

This commit is contained in:
facetoe 2014-10-12 21:50:52 +08:00
parent 850c0f11dc
commit a5915a0999

View File

@ -17,6 +17,8 @@ class Mail(IntervalModule):
""" """
Generic mail checker Generic mail checker
The `backends` setting determines the backends to use. For available backends see :ref:`mailbackends` The `backends` setting determines the backends to use. For available backends see :ref:`mailbackends`
""" """
@ -26,7 +28,12 @@ class Mail(IntervalModule):
("backends", "List of backends (instances of ``i3pystatus.mail.xxx.zzz``, i.e. ``i3pystatus.mail.imap.IMAP``)"), ("backends", "List of backends (instances of ``i3pystatus.mail.xxx.zzz``, i.e. ``i3pystatus.mail.imap.IMAP``)"),
"color", "color_unread", "format", "format_plural", "color", "color_unread", "format", "format_plural",
("hide_if_null", "Don't output anything if there are no new mails"), ("hide_if_null", "Don't output anything if there are no new mails"),
("email_client", "The email client to open on left click"), ("email_client", "The command to run on left click."
"For example, to launch Thunderbird set command_on_click to 'thunderbird'."
'Alternatively, to bring Thunderbird into focus, '
'set command_on_click to \'i3-msg -q [class="^Thunderbird$"] focus\'.'
'Hint: To discover the X window class of your email client run \'xprop | grep -i class\''
'and click on it\'s window'),
) )
required = ("backends",) required = ("backends",)