13 lines
176 B
Ruby
13 lines
176 B
Ruby
# vim: ft=ruby
|
|
|
|
class Layout < Worker
|
|
def mainloop()
|
|
loop do
|
|
self.write `xkblayout-state print "%s"`.upcase
|
|
sleep(0.1)
|
|
end
|
|
end
|
|
end
|
|
|
|
Modules.add("layout", "Layout")
|