i want set keyboard spanish using setxkbmap es, long have opened .txt file using mousepad (if keyboard spanish file better) example. use alias mpes opens file , sets keyboard spanish.
is there way script this, such when file gets closed keyboard returns automatically english?
you can following :
function mpes { setxkbmap es; gedit viva_espagna.txt; setxkbmap en; } it set keyboard es, open viva_espagna.txt , set keyboard en (when previous has returned (eg closed editor)
you can add ~/.bashrc file make permanent when open new terminal (source ~/.bashrc)
Comments
Post a Comment