You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I've found a bug or the like in espeakup daemon...
I have an script for some years to swap the ESCAPE to CAPS-LOCK keys on virtual-consoles...
But, when espeakup daemon is running, I have noticed after installing it, I am unable to swap these keys. Even I issue the raw Linux commands on terminal...
On the other hand, if I disable de daemon, using "sudo systemctl disable espeakup", and reboot my system (Debian), I can swap these two keys again...
Here the script is:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
if [[ $UID -ne 0 ]];
then printf "Non root user :p\n\nPlease run as root or sudo...\n\n"
exit 1
else
echo "Root user"
fi
echo
echo -e "Swapping Caps_Lock to Escape"
loadkeys ~vagner/bin/swap_caps_in_vc.kmap
# see /etc/inputrc for unsetting the bell
# echo -e "Removing pcspkr module"
# sudo rmmod pcspkr
kbdrate -d 300 -r 50
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
And here the file it calls:
# To find the keycodes:
# apt install console-data
# showkey
# press the key
Hi,
I think I've found a bug or the like in espeakup daemon...
I have an script for some years to swap the ESCAPE to CAPS-LOCK keys on virtual-consoles...
But, when espeakup daemon is running, I have noticed after installing it, I am unable to swap these keys. Even I issue the raw Linux commands on terminal...
On the other hand, if I disable de daemon, using "sudo systemctl disable espeakup", and reboot my system (Debian), I can swap these two keys again...
Here the script is:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
if [[ $UID -ne 0 ]];
then printf "Non root user :p\n\nPlease run as root or sudo...\n\n"
exit 1
else
echo "Root user"
fi
echo
echo -e "Swapping Caps_Lock to Escape"
loadkeys ~vagner/bin/swap_caps_in_vc.kmap
# see /etc/inputrc for unsetting the bell
# echo -e "Removing pcspkr module"
# sudo rmmod pcspkr
kbdrate -d 300 -r 50
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
And here the file it calls:
# To find the keycodes:
# apt install console-data
# showkey
# press the key
keymaps 0-255
keycode 1 = Caps_Lock
keycode 58 = Escape
keycode 1 = Escape
# the above code works
# keycode 1 = Escape
# keysym Control_L=Escape
;;;;;;;;;;;;;;;;;;;;;;;;;;;;
The text was updated successfully, but these errors were encountered: