.config/i3/scripts/get_lang.sh
This commit is contained in:
parent
b5be64a202
commit
2eeff86faa
13
.config/i3/scripts/get_lang.sh
Executable file
13
.config/i3/scripts/get_lang.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f /usr/bin/setxkbmap ] ; then
|
||||
get_lang=$(setxkbmap -query 2> /dev/null | grep "layout:" | tr -s " " | cut -d ":" -f 2)
|
||||
if [ -z ${get_lang} ] ; then
|
||||
echo " us "
|
||||
else
|
||||
echo " ${get_lang} "
|
||||
fi
|
||||
else
|
||||
echo " us "
|
||||
fi
|
||||
|
@ -8,7 +8,8 @@ while [ ${status_bar} -eq 0 ] ; do
|
||||
cpuinfo=$(~/.config/i3/scripts/cpu_info.sh)
|
||||
meminfo=$(~/.config/i3/scripts/mem_info.sh)
|
||||
volume=$(~/.config/i3/scripts/get_volume.sh)
|
||||
lang=$(~/.config/i3/scripts/get_lang.sh)
|
||||
date=$(~/.config/i3/scripts/current_date.sh)
|
||||
echo "${updates} ${kernel} ${cpuinfo} ${meminfo} ${volume} ${date}"
|
||||
echo "${updates} ${kernel} ${cpuinfo} ${meminfo} ${volume} ${lang} ${date}"
|
||||
sleep 2
|
||||
done
|
||||
|
Loading…
x
Reference in New Issue
Block a user