|
|
@@ -105,7 +105,7 @@ font-3 = "Hack Nerd Font:style=Bold:size=18;3"
|
|
|
separator = |
|
|
|
modules-left = arch-icon bspwm xwindow
|
|
|
modules-center = date
|
|
|
-modules-right = pulseaudio network-wired bluetooth updates cpu memory filesystem temperature battery powermenu
|
|
|
+modules-right = pulseaudio network-wired bluetooth updates cpu memory filesystem temperature battery xkeyboard powermenu
|
|
|
|
|
|
; Включить поддержку IPC (для отправки команд в polybar)
|
|
|
enable-ipc = true
|
|
|
@@ -165,7 +165,7 @@ font-3 = "Hack Nerd Font:style=Bold:size=18;3"
|
|
|
separator = |
|
|
|
modules-left = arch-icon bspwm xwindow
|
|
|
modules-center = date
|
|
|
-modules-right = network-wireless
|
|
|
+modules-right = network-wireless xkeyboard
|
|
|
|
|
|
; Включить поддержку IPC (для отправки команд в polybar)
|
|
|
enable-ipc = true
|
|
|
@@ -225,7 +225,7 @@ font-3 = "Hack Nerd Font:style=Bold:size=18;3"
|
|
|
separator = |
|
|
|
modules-left = arch-icon bspwm xwindow
|
|
|
modules-center = date
|
|
|
-modules-right = pulseaudio network-wired bluetooth updates cpu memory filesystem temperature battery powermenu
|
|
|
+modules-right = pulseaudio network-wired bluetooth updates cpu memory filesystem temperature battery xkeyboard powermenu
|
|
|
|
|
|
; Включить поддержку IPC (для отправки команд в polybar)
|
|
|
enable-ipc = true
|
|
|
@@ -285,7 +285,7 @@ font-3 = "Hack Nerd Font:style=Bold:size=18;3"
|
|
|
separator = |
|
|
|
modules-left = arch-icon bspwm xwindow
|
|
|
modules-center = date
|
|
|
-modules-right = pulseaudio network-wireless bluetooth updates cpu memory filesystem temperature battery powermenu
|
|
|
+modules-right = pulseaudio network-wireless bluetooth updates cpu memory filesystem temperature battery xkeyboard powermenu
|
|
|
|
|
|
; Включить поддержку IPC (для отправки команд в polybar)
|
|
|
enable-ipc = true
|
|
|
@@ -593,6 +593,34 @@ content-padding = 1
|
|
|
; ЛКМ: запустить скрипт powermenu
|
|
|
click-left = ~/.config/polybar/scripts/powermenu.sh
|
|
|
|
|
|
+; [Модуль] Раскладка клавиатуры
|
|
|
+[module/xkeyboard]
|
|
|
+type = internal/xkeyboard
|
|
|
+
|
|
|
+; Список игнорируемых индикаторов
|
|
|
+blacklist-0 = num lock
|
|
|
+blacklist-1 = scroll lock
|
|
|
+
|
|
|
+; Иконка и формат
|
|
|
+format = <label-layout> <label-indicator>
|
|
|
+format-prefix = " "
|
|
|
+format-prefix-foreground = ${colors.secondary}
|
|
|
+
|
|
|
+; Отображение раскладки (RU, EN и т.д.)
|
|
|
+label-layout = %icon%
|
|
|
+label-layout-padding = 1
|
|
|
+label-layout-foreground = ${colors.foreground}
|
|
|
+
|
|
|
+; Настройка иконок для разных раскладок
|
|
|
+layout-icon-default = some-icon
|
|
|
+layout-icon-0 = us;EN
|
|
|
+layout-icon-1 = ru;RU
|
|
|
+
|
|
|
+; Индикатор Caps Lock
|
|
|
+label-indicator-on-capslock =
|
|
|
+label-indicator-on-capslock-foreground = ${colors.alert}
|
|
|
+label-indicator-padding = 1
|
|
|
+
|
|
|
; -------------------------------------------------------------------
|
|
|
; Прочие настройки
|
|
|
; -------------------------------------------------------------------
|