PEP8 compliance
This commit is contained in:
parent
0a63932c62
commit
0a17ee2bfb
@ -20,7 +20,7 @@ class Xkblayout(IntervalModule):
|
||||
on_leftclick = "change_layout"
|
||||
|
||||
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 = {
|
||||
"full_text": self.format.format(name=kblayout).upper(),
|
||||
@ -29,7 +29,7 @@ class Xkblayout(IntervalModule):
|
||||
|
||||
def change_layout(self):
|
||||
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:
|
||||
position = layouts.index(kblayout)
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user