1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-30 14:32:08 -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