From 368c357e69ce82626160da6ea72d58833223f8b1 Mon Sep 17 00:00:00 2001 From: tiago Date: Mon, 13 Nov 2023 11:38:11 +0000 Subject: [PATCH] polybar keyboard indicator --- .config/polybar/config.ini | 2 +- .config/polybar/modules.ini | 15 +++++++++++++++ .config/polybar/themes/macchiato.ini | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.config/polybar/config.ini b/.config/polybar/config.ini index b0bc307..fd45bd4 100644 --- a/.config/polybar/config.ini +++ b/.config/polybar/config.ini @@ -41,7 +41,7 @@ offset-y = 0.5% modules-left = i3 sep title modules-center = date dot time -modules-right = cpu dot gpu dot memory dot backlight dot pulseaudio sep filesystem sep battery +modules-right = xkeyboard dot cpu dot gpu dot memory dot backlight dot pulseaudio sep filesystem sep battery background = ${colors.base} foreground = ${colors.text} diff --git a/.config/polybar/modules.ini b/.config/polybar/modules.ini index 7381e44..b862372 100644 --- a/.config/polybar/modules.ini +++ b/.config/polybar/modules.ini @@ -39,6 +39,21 @@ label-urgent-padding = 1 label-empty = %name% label-empty-padding = 1 +[module/xkeyboard] +type = internal/xkeyboard + +format = +format-prefix = 󰌌 +format-prefix-foreground = ${colors.mauve} +format-prefix-padding-right = 1 +format-spacing = 0 + +label-layout = %layout% +label-layout-padding = 0 +label-layout-background = ${colors.base} +label-layout-foreground = ${colors.text} + + [module/title] type = internal/xwindow format =