aboutsummaryrefslogtreecommitdiff
path: root/.i3-blocks/blocks/locale
blob: e517c44e9a219f41e86688b16716f94a2de0b8cc (plain)
1
2
3
4
5
6
7
8
9
10
#!/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