Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap CAPS to ESCAPE on virtual-console #56

Open
OrionRandD opened this issue Feb 18, 2024 · 0 comments
Open

Swap CAPS to ESCAPE on virtual-console #56

OrionRandD opened this issue Feb 18, 2024 · 0 comments

Comments

@OrionRandD
Copy link

OrionRandD commented Feb 18, 2024

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

;;;;;;;;;;;;;;;;;;;;;;;;;;;;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant