dwmblocks/statusbar/dwm_keyboard_layout

7 lines
142 B
Plaintext
Raw Permalink Normal View History

#!/bin/bash
k_layout_icon=
k_layout=$(setxkbmap -query | grep layout | awk '{print $NF}')
printf "$k_layout_icon ^c#f7ca88^$k_layout^d^"