powerline-keebs
A custom Powerline segment for displaying currently connected keyboards.
Keyboard detection and parsing based off of kbdetector.
Installation
Using pip
$ pip install powerline-keebs
Configuration
Colorscheme
Add the following config items to your Powerline colorscheme config file (usually located at ~/.config/powerline/colorschemes/),
see Powerline Colorschemes for more info.
{
"keebs": { "fg": "solarized:base3", "bg": "solarized:base01", "attrs": ["bold"] },
"keebs:divider": { "fg": "gray4", "bg": "solarized:base02", "attrs": [] }
}
Segment
Add the following config item to your Powerline segments config file, see Powerline Segment reference for more info.
{
"function": "powerline_keebs.keebs",
"priority": 30,
"args": {
"no_dongles": true,
"exclude_list": "comma,separated,keyboard,list"
}
}
- If adding the segment to the shell, edit
~/.config/powerline/themes/shell/default.json. - If adding the segment to the tmux status line, edit
~/.config/powerline/themes/tmux/default.json.
Configuration items
| config_item | description | value |
|---|---|---|
| no_dongles | exclude keyboard dongles and/or receivers | true or false (defaults to false) |
| exclude_list | exclude pre-defined keyboard(s) from the result | comma-separated string |
Toggle visibility
Toggle entire segment or specific section's visibility with the following environment variables:
POWERLINE_KEEBS_SHOW
# toggle segment visibility
$ POWERLINE_KEEBS_SHOW=0 powerline-daemon --replace # hide powerline-keebs segment
$ POWERLINE_KEEBS_SHOW=1 powerline-daemon --replace # show powerline-keebs segment (default)
Alternatively you can add the following function to your shell for easier toggling:
toggle_powerline_keebs() {
case "$1" in
# toggle segment visibility
if [[ "${POWERLINE_KEEBS_SHOW:-1}" -eq 1 ]]; then
export POWERLINE_KEEBS_SHOW=0
else
export POWERLINE_KEEBS_SHOW=1
fi
;;
esac
}
Stats
Release files for powerline-keebs 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| powerline_keebs-0.2.3.tar.gz | 4.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| powerline_keebs-0.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.5 kB
Release files / powerline_keebs-0.2.3.tar.gz
| Download URL | powerline_keebs-0.2.3.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b83045c748297966e16b0ff496298d14c8268874291c563b546e0b67aff8a2b0
|
|
BLAKE2b-256 checksum How to use checksums |
54766550daeffdd5b394566a66e0a8413122d3784a141c68967337bf6dda82ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / powerline_keebs-0.2.3-py3-none-any.whl
| Download URL | powerline_keebs-0.2.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7a4fe0f77f334dd45c05129ca490c8c1dd870329f2517754b58feb9d05fd76e
|
|
BLAKE2b-256 checksum How to use checksums |
703d6ca80277dfa0dabc2fdd4be37dad46b813536ab86a3a55977bfe62fa1895
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|