I bought new laptop that doesn't have Home and End keys. I need both keys when I type code in Vim.
I installed Debian with the i3WM desktop environment on my laptop. I remapped my keyboard using the xmodmap
command to replace Pause/Break and PrtScn with Home and End.
This works perfectly, but I want a new language in my keyboard. I use setxkbmap
to set up two layouts: US and IR.
Here is my i3 configuration:
#language
exec "setxkbmap -layout us, ir"
exec "setxkbmap -option 'grp:alt_shift_toggle'"
#remap keyboard
exec xmodmap ~/.Xmodmap
When I restart my computer, I can change my keyboard language with alt+shift but Pause/Break and PrtScn are not mapped to Home and End.
I run the command xmodmap ~/.Xmodmap
in my terminal. This works fine but doesn't change my keyboard layout.
How can I fix it so that I can use both?