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):