lemonbar: Screen working somewhat. Remove one fifo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user