From 88d437d72d298f0884e3f573fa15d3c809805775 Mon Sep 17 00:00:00 2001 From: enkore Date: Sat, 17 Oct 2015 11:39:00 +0200 Subject: [PATCH] Add docs for xkblayout --- i3pystatus/xkblayout.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/i3pystatus/xkblayout.py b/i3pystatus/xkblayout.py index 79c7839..e41a4d2 100644 --- a/i3pystatus/xkblayout.py +++ b/i3pystatus/xkblayout.py @@ -3,11 +3,18 @@ import subprocess class Xkblayout(IntervalModule): + """Displays and changes current keyboard layout. + + ``change_layout`` callback finds the current layout in the + ``layouts`` setting and sets the layout following it. + """ + interval = 1 format = u"\u2328 {name}" settings = ( - ("layouts", "Layouts list"), + ("layouts", "List of layouts"), ) + layouts = [] on_leftclick = "change_layout" def run(self):