Minimaze nvim config, update git config, clean configs

This commit is contained in:
Smirnov Olexandr 2021-02-14 18:06:43 +02:00
parent 9b2871dd65
commit 1f5249ea78
25 changed files with 183 additions and 663 deletions

View file

@ -9,7 +9,6 @@ from os import popen
KBCMD = """
case "$(xkblayout)" in
"Eng") echo "us" ;;
"Rus") echo "ru" ;;
"Ukr") echo "ua" ;;
esac
"""
@ -23,6 +22,8 @@ class KBLayout(base.InLoopPollText):
base.InLoopPollText.__init__(self, **config)
def poll(self):
kb = popen(KBCMD).read().rstrip('\n') \
.encode('utf-8').decode('utf-8')
kb = popen(KBCMD).read() \
.rstrip('\n') \
.encode('utf-8') \
.decode('utf-8')
return kb