xkblayout color (#702) [Originally by Ghost]

This commit is contained in:
chestm007 2018-12-29 13:47:27 +11:00 committed by GitHub
parent 78aa40c98c
commit ca4ced20c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,10 +31,12 @@ class Xkblayout(IntervalModule):
"""
interval = 1
color = "#FFFFFF"
format = "\u2328 {symbol}"
layouts = []
uppercase = True
settings = (
("color", "RGB hexadecimal color code specifuer, defaults to #FFFFFF"),
("format", "Format string"),
("layouts", "List of layouts"),
("uppercase", "Flag for uppercase output"),
@ -90,5 +92,5 @@ class Xkblayout(IntervalModule):
self.data = cdict
self.output = {
"full_text": full_text,
"color": "#FFFFFF",
"color": self.color,
}