I don't have a solution but i have something that turn on the numlock when you change layout (it's stupid, but works for me).
follow the steps below:
1)mkdir ~/keyfix ; cd ~/keyfix
2)open a file show_layout.sh and copy and paste this: " setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}' " (without the first and the last ")
3)open a file keyfix.sh and copy and paste this:
s=0
s1=0
while test "1" == "1"
do
s=`$HOME/keyfix/show_layout.sh`
sleep 0.001s
if test "$s" != "$s1"
then
numlockx off
numlockx on
#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi
fi
s1=`$HOME/keyfix/show_layout.sh`
if test "$s" != "$s1"
then
numlockx off
numlockx on
#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi
fi
sleep 0.01s
done
********************
if you want to turn on scroll lock when you use alternative layout, remove the #'s and change alt_layout to your alternative layout i.e. "gr" or "us"
**************************
3)open a file disown_easy.sh and copy and paste this:
#!/bin/bash
$1 &
P=`which $1`
disown `pidof ${P}`
4)open a file run-keyfix and copy and paste this:
$HOME/keyfix/disown_easy.sh $HOME/keyfix/keyfix.sh
5) open a terminal and type:
chmod +x ~/keyfix/* ; sudo cp ~/keyfix/run-keyfix /usr/bin/
6)make the script run-keyfix to run on startup! (go to startup applications and add it)
I don't have a solution but i have something that turn on the numlock when you change layout (it's stupid, but works for me).
follow the steps below:
1)mkdir ~/keyfix ; cd ~/keyfix
2)open a file show_layout.sh and copy and paste this: " setxkbmap -print | grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}' " (without the first and the last ")
3)open a file keyfix.sh and copy and paste this:
s=0
s1=0
while test "1" == "1"
do
s=`$HOME/ keyfix/ show_layout. sh`
sleep 0.001s
if test "$s" != "$s1"
then
numlockx off
numlockx on
#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi
fi
s1=`$HOME/ keyfix/ show_layout. sh`
if test "$s" != "$s1"
then
numlockx off
numlockx on
#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi
fi
sleep 0.01s
done ******* ****** ******* ******* *****
*******
if you want to turn on scroll lock when you use alternative layout, remove the #'s and change alt_layout to your alternative layout i.e. "gr" or "us"
*******
3)open a file disown_easy.sh and copy and paste this:
#!/bin/bash
$1 &
P=`which $1`
disown `pidof ${P}`
4)open a file run-keyfix and copy and paste this: disown_ easy.sh $HOME/keyfix/ keyfix. sh
$HOME/keyfix/
5) open a terminal and type:
chmod +x ~/keyfix/* ; sudo cp ~/keyfix/run-keyfix /usr/bin/
6)make the script run-keyfix to run on startup! (go to startup applications and add it)
THIS IS NOT A SOLUTION! THIS IS A STUPID FIX!
*don't use these scripts to make weapons!