PEP8 compliance
This commit is contained in:
parent
0a63932c62
commit
0a17ee2bfb
@ -20,7 +20,7 @@ class Xkblayout(IntervalModule):
|
|||||||
on_leftclick = "change_layout"
|
on_leftclick = "change_layout"
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
kblayout = subprocess.check_output("setxkbmap -query | awk '/layout/,/variant/{print $2}'", shell=True).decode('utf-8').replace("\n"," ").strip()
|
kblayout = subprocess.check_output("setxkbmap -query | awk '/layout/,/variant/{print $2}'", shell=True).decode('utf-8').replace("\n", " ").strip()
|
||||||
|
|
||||||
self.output = {
|
self.output = {
|
||||||
"full_text": self.format.format(name=kblayout).upper(),
|
"full_text": self.format.format(name=kblayout).upper(),
|
||||||
@ -29,7 +29,7 @@ class Xkblayout(IntervalModule):
|
|||||||
|
|
||||||
def change_layout(self):
|
def change_layout(self):
|
||||||
layouts = self.layouts
|
layouts = self.layouts
|
||||||
kblayout = subprocess.check_output("setxkbmap -query | awk '/layout/,/variant/{print $2}'", shell=True).decode('utf-8').replace("\n"," ").strip()
|
kblayout = subprocess.check_output("setxkbmap -query | awk '/layout/,/variant/{print $2}'", shell=True).decode('utf-8').replace("\n", " ").strip()
|
||||||
if kblayout in layouts:
|
if kblayout in layouts:
|
||||||
position = layouts.index(kblayout)
|
position = layouts.index(kblayout)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user