Задача: Активировать кнопку Home на клавиатуре линуксового ASUS PC EEE под UbuntuДля чего: Чтобы при нажатии кнопки Home отображать десктоп.
Что делать:1. Создаем в пользовательской папке файл .Xmodmap
2. В файле прописываем
3. Перезапускаем X-сервер
4. Соглашаемся на загрузку .Xmodmap
5. Открываем Keyboard Shortcuts, в разделе Window Management для Hide all normal windows and set focus to the desktop устанавливаем шорткат нажатием теперь нормально работающей кнопки Home.
По мотивам:
Enabling the Home key to activate the popup Applications menuBy default the Home key (the one between the Fn and Alt keys) is set as a 'modifier key' by X, (e.g. like control or alt). To remove this create/edit .Xmodmap in your home directory.
and add the line:
Save the file and restart Xfce, ctrl+alt+backspace. When you've logged back in, go to Settings > Settings Manager, and click on Keyboard. Now click on the Shortcuts tab. At the end of the Themes column, click add. Call your new theme a name, clicking OK will select your new theme and the Shortcuts will now be selectable. click Add in the Shortcuts section, type your command xfce4-popup-menu Click OK, it will ask you to press a key. Press the Home button. The shortcut xfce4-popup-menu Super+Super_L should now of appeared on the list.
Отображение состояния CapsLock, NumLock, ScrollLock
apt-get install lock-keys-applet
Заставляем работать Scroll LockИсточник:
Getting Scroll Lock to Work in UbuntuFor some odd reason the Scroll Lock button doesn’t work in an Xsession in Ubuntu. There’s an old bug report here. However it works as it should in a virtual terminal. The interesting thing though is that Xev will detect the key press. So how do you get the Scroll Lock functioning again? Well first let’s run this command
xmodmap -pm
You should get an output like this
xmodmap: up to 3 keys per modifier, (keycodes in parentheses):
shift Shift_L (0×32), Shift_R (0×3e)
lock Caps_Lock (0×42)
control Control_L (0×25), Control_R (0×6d)
mod1 Alt_L (0×40), Alt_L (0×7d), Meta_L (0×9c)
mod2 Num_Lock (0×4d)
mod3
mod4 Super_L (0×7f), Hyper_L (0×80)
mod5 Mode_switch (0×5d), ISO_Level3_Shift (0×7c)
Notice mod3 has nothing listed. This will be what we will use to assign Scroll Lock. It may be a different mod for some people. Either way use the one that has nothing listed.
Before we do anything else let’s test this to make sure it works. We’re going to run this command
xmodmap -e ‘add mod3 = Scroll_Lock’
Replace mod3 with whatever the blank mod listing was. Your Scroll Lock should work now.
I hate making changes like this locally to only my user, so I’m going to do this globally.
Now we need to create a file in /etc/X11 called Xmodmap. So start up Gedit or your favorite text editor
gksudo gedit /etc/X11/Xmodmap
Now add this to the file
add mod3 = Scroll_Lock
again, change mod3 to the one that was empty from the first command. Now the Scroll Lock key should get set when X starts now.