1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-12-11 05:52:21 -05:00
dotfiles/cfg/i3blocks/laptop/blocks/locale

10 lines
230 B
Plaintext
Raw Normal View History

2017-07-26 14:00:04 -04:00
#!/bin/bash
LOCALE_INFO=$(localectl)
LOCALE_NAME=$(echo "${LOCALE_INFO}" | grep "System Locale" | awk -F '=' '{print $2}' | cut -c 1-2)
if [[ "${LOCALE_NAME}" ]]; then
echo "${LOCALE_NAME}"
echo "${LOCALE_NAME}"
echo ""
fi