1
0
mirror of https://github.com/Foltik/dotfiles synced 2024-11-28 05:27:06 -05:00
dotfiles/cfg/i3blocks/laptop/blocks/locale
2017-07-26 11:05:09 -07:00

10 lines
230 B
Bash
Executable File

#!/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