Here is a small C program I wrote some years ago: Clictap. It’s very convenient and I’m still using it to watch my movies.
It makes use of Xlib and Xtest libraries to replace your mouse buttons by keyboard keys.
I made a small Debian package a few days ago:
soon included in the official repositories ?
Configuration file example including profiles for totem, xmms, rhythmbox and mplayer:
# ClicTap configuration file
# You can copy this example to ~/.clictap.conf
# When this key is pressed, Clictap will ungrab your mouse and quit
# Examples :
# quit_key q
# quit_key ctrl+q
# Profile used by default
# List of profiles
# For each profile, a set of buttons to keys translations is given,
# each translation on a separate line.
# For a translation, the first field is the set of buttons,
# the second is the set of keys.
# Buttons are specified by their numbers.
# Keys are specified by their KeySym (Key Symbols).
# To know the button numbers and KeySyms, use the xev program to test X events.
# Example :
# profile foo
# 1 a
# 2 b+c
# 3+1 space
# 3+2 Control_L+d
Here is how I configured dual screen under Debian unstable.
By default, the video card displays the same on both screens.
We first type the
xrandr command to show the available video outputs.
Then, we issue the magical command:
xrandr --output DVI-1 --left-of DVI-0
xrandr displays an error, add the
Virtual parameter to the
/etc/X11/xorg.conf file and restart X (see below).
--right-of if it’s inverted !
And to set the changes permanently, we edit
Identifier "ATI Technologies Inc RV380 [Radeon X600 (PCIE)]"
Option "Monitor-DVI-0" "Screen 1"
Option "Monitor-DVI-1" "Screen 2"
Identifier "Screen 1"
Identifier "Screen 2"
Option "RightOf" "Screen 1"
Identifier "Default Screen"
Device "ATI Technologies Inc RV380 [Radeon X600 (PCIE)]"
Monitor "DELL 1704FPT"
Modes "1280x1024" "1152x864" "1024x768" "800x600" "720x400" "640x480"
Virtual 2560 1280
- In the “Device” section, we list the different screen as “Monitor-OutputName”.
- Then we put one section by screen, setting the second screen position.
- The subsection “Screen > Display” must contain the “Virtual” parameter with a pixel area big enough to contain both resolutions.
Note: you can also try the graphical grandr frontend.
You now have two screen under Gnome : a main one and a second.
If you want your panels on the other screen, just move them (right click on panel > Properties, uncheck Extend, move the panel, check Extend again).
I also suggest you to add another panel with a new window list on your second screen.