Debian LXDE Keyboard Configuration

Updated 20-Sep-2023

DRAFT

For Debian LXDE there are a few places to configure the keyboard and keyboard shortcuts.

LXPanel

  • Enable the Keyboard Layout Handler in Panel Preferences > Panel Applets
  • Once enabled, right-click on the Keyboard Layout Handler and select "Keyboard Layout Handler" Settings
  • Change Layout Option set to grp:lwin_toggle which sets the left windows key to toggle between keyboard layouts

For Alt-Gr International English which sets the right alt key to act as an alt-greek

LXDE Preferences

  • Preferences > Setup Hot Keys

The Input Method

Login environment for Bash

nano ~/.bashrc

Set aliases and tty interrupt. The aliases are to enhance some of the basic commands with extensions, turning the shortened command versions into shortcuts. The reason to reset the tty interrupt is the conflict between Windows/OSX ctrl-c copy command and the linux ctrl-c command interrupt. Decades of use of Windows and OSX makes it more comfortable for me to use ctrl-t as the interrupt and map ctrl-c, ctrl-x, and ctrl-v to copy, cut, and paste.

# Aliases
alias fd='fdfind'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias lx='ls -la --color=auto'
alias rx='rm -rf'
alias python=python3

# Set the interrupt keystroke to ctrl-t
stty sane
stty intr ^T

# Set path and editor
PATH=$PATH:$HOME/bin:~/.local/bin:/usr/local/bin:/home/jeff/critical/scripts
export PATH
export EDITOR=nano

# Calibre dark mode
export CALIBRE_USE_SYSTEM_THEME=0
export CALIBRE_USE_DARK_PALETTE=1

LXTerminal

  • LXTerminal > Preferences > Shortcuts

More resources