mirror of https://github.com/polybar/polybar.git
Page:
Module: xkeyboard
Pages
Compiling
Configuration
Debugging your Config
Distro Specific Setup
Fonts
Formatting
Home
Inter process messaging
Known Issues
Module: alsa
Module: backlight
Module: battery
Module: bspwm
Module: cpu
Module: date
Module: filesystem
Module: github
Module: i3
Module: ipc
Module: memory
Module: menu
Module: mpd
Module: network
Module: pulseaudio
Module: script
Module: temperature
Module: text
Module: xbacklight
Module: xkeyboard
Module: xwindow
Module: xworkspaces
Release Guidelines
Style Guide
Testing
User contributed modules
11
Module: xkeyboard
patrick96 edited this page 2022-03-02 14:00:36 +01:00
Table of Contents
This module shows the current layout and active indicators.
If there are more than one layout configured for the keyboard there will be a click handler attached to the module that will cycle the ones found.
Basic settings
[module/xkeyboard]
type = internal/xkeyboard
; List of indicators to ignore
blacklist-0 = num lock
blacklist-1 = scroll lock
Additional formatting
; Available tags:
; <label-layout> (default)
; <label-indicator> (default)
format = <label-layout> <label-indicator>
format-spacing = 0
; Available tokens:
; %layout%
; %name%
; %number%
; %icon%
; %variant% (New in version 3.6.0)
; Default: %layout%
label-layout = %name%
label-layout-padding = 2
label-layout-background = #bc99ed
label-layout-foreground = #000
; Available tokens:
; %name%
; Default: %name%
; @deprecated, use label-indicator-on
label-indicator = %name%
; layout-icon-[0-9]+ = layout;icon
; layout-icon-[0-9]+ = layout;variant;icon (New in version 3.6.0)
; Assign each layout an icon that will be available as %icon% token for the
; <label-layout> tag.
; In the first configuration form, the `layout` will try to match %layout%
; value ignoring the variant
; In the second configuration form,
; the `layout` will try to match %layout% value and the `variant` matches %variant%.
; the `variant` can be empty (layout;;icon) to match against a %layout%
; with an empty %variant%
; the `variant` can be the wildcard '_' to match a %layout% and any variant.
; This is equivalent to the first configuration form
; the `layout` cannot be empty (;variant;icon)
; the `layout` can be the wildcard '_' to match any %layout% with a
; specific %variant%
; Do not use the wildcard '_' for both `layout` and `variant`
layout-icon-default = some-icon
layout-icon-0 = ch;C
layout-icon-1 = us;U
; indicator-icon-[0-9]+ = indicator;off icon;on icon
; Provides the content of the %icon% token in label-indicator-*
indicator-icon-default =
indicator-icon-0 = caps lock;-CL;+CL
indicator-icon-1 = scroll lock;;+SL
indicator-icon-2 = num lock;-NL;+NL
; Replaces label-indicator
; Available tokens:
; %name%
; %icon%
; Default: %name%
label-indicator-on = +%name%
; Available tokens:
; %name%
; %icon%
; Default: (none)
label-indicator-off = -%name%
; Replaces label-indicator-* if for specific indicators
; Available tokens:
; %name%
; %icon%
label-indicator-on-capslock =
label-indicator-off-capslock =
label-indicator-on-numlock =
label-indicator-off-numlock =
label-indicator-on-scrolllock =
label-indicator-off-scrolllock =
This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- 🏠 Home
- ℹ️ Help
- ⚙️ Configuration
- 🎨 Formatting
- 🗛 Fonts
- 💥 Actions
- 🏗️ Compiling
- 🔧 Debugging your Config
- 💬 Inter process messaging
- 🤫 Known Issues
- 📦 Packaging Polybar
- For Developers:
- Modules: