mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Clean nivm cfg && update qtile, git, zsh, bspwm
This commit is contained in:
parent
64007489ce
commit
3ebe332854
13 changed files with 303 additions and 178 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue