Clean nivm cfg && update qtile, git, zsh, bspwm

This commit is contained in:
Smirnov Olexandr 2021-02-11 16:45:55 +02:00
parent 64007489ce
commit 3ebe332854
13 changed files with 303 additions and 178 deletions

View file

@ -3,7 +3,7 @@ For working widget install `xkblayout`
$ yay -S xkblayout
"""
from libqtile.widget import base
import os
from os import popen
KBCMD = """
@ -18,11 +18,11 @@ esac
class KBLayout(base.InLoopPollText):
"""Widget for displaying the current keyboard layout"""
orientations = base.ORIENTATION_HORIZONTAL
def __init__(self, **config):
base.InLoopPollText.__init__(self, **config)
def poll(self):
kb = os.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