lemonbar: Screen working somewhat. Remove one fifo

This commit is contained in:
kuben
2019-08-11 20:12:04 +02:00
parent 9bb8df11c8
commit 4aba84ced0
6 changed files with 137 additions and 89 deletions

View File

@@ -3,7 +3,7 @@ panel_fifo="/tmp/i3_lemonbar1_${USER}"
panel_commands="/tmp/i3_lemonbar2_${USER}"
function show(){
setxkbmap -print -display :0 | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}'
setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}'
}
if [ $# -lt 1 ]; then
echo LANG$(show)
@@ -14,7 +14,7 @@ if [ "$1" == "next" ]; then
if [ "$cur" == "se" ]; then
next='pl'
fi
setxkbmap -display :0 $next
setxkbmap $next
if [ -e $panel_fifo ]; then
echo -e "LANG$next\n" > "${panel_fifo}"
fi
@@ -23,7 +23,7 @@ if [ "$1" == "next" ]; then
fi
elif [ "$1" == "qset" ]; then
next=$2
setxkbmap -display :0 $next
setxkbmap $next
if [ -e $panel_fifo ]; then
echo -e "LANG$next\n" > "${panel_fifo}"
fi