polybar keyboard indicator

This commit is contained in:
Tiago Sousa 2023-11-13 11:38:11 +00:00
parent c34bce1a44
commit 368c357e69
3 changed files with 17 additions and 2 deletions

View file

@ -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}

View file

@ -39,6 +39,21 @@ label-urgent-padding = 1
label-empty = %name%
label-empty-padding = 1
[module/xkeyboard]
type = internal/xkeyboard
format = <label-layout>
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 = <label>

View file

@ -36,4 +36,4 @@
flamingo = #f0c6c6
rosewater = #f4dbd6
transparent = #FF00000
transparent = #FF00000