Remove extra newline in lang.sh. Change parsing queue to writing queue

This commit is contained in:
kuben
2019-09-19 09:55:42 +02:00
parent 9f5078611c
commit 9097a98884
4 changed files with 15 additions and 20 deletions

View File

@@ -16,16 +16,16 @@ if [ "$1" == "next" ]; then
fi
setxkbmap $next
if [ -e $panel_fifo ]; then
echo -e "LANG$next\n" > "${panel_fifo}"
echo -e "LANG$next" > "${panel_fifo}"
fi
if [ -e $panel_commands ]; then
echo -e "setlang $next\n" > "${panel_commands}"
echo -e "setlang $next" > "${panel_commands}"
fi
elif [ "$1" == "qset" ]; then
next=$2
setxkbmap $next
if [ -e $panel_fifo ]; then
echo -e "LANG$next\n" > "${panel_fifo}"
echo -e "LANG$next" > "${panel_fifo}"
fi
elif [ "$1" == "show" ]; then
show