Thursday 10 March 2011

Setting Display & xServer

on linux box export display variable:
export DISPLAY=my IP

on my box start an XServer:
xServer
remember to SET NO ACCESS CONTROL

Handy xrandr for flipping one monitor vertical:

xrandr --output VGA1 --rotate normal
xrandr --output HDMI1 --rotate left

----home---
xrandr --output eDP-1-1 --mode 1920x1080 --pos 2560x400 --scale 1x1
xrandr --output DVI-I-2-1   --scale 1x1 --mode 2560x1440   --left-of eDP-1-1

http://askubuntu.com/questions/637911/how-to-run-xrandr-commands-at-startup-in-ubuntu

Adjusting trackpad:

Create this .xessionrc file:
                 
# To see input devices:               
#   xinput                            
# Identify a number and list the properties
#   xinput list-props 15              
# now grep for scrollor acceleration                                     
#                                     
# faster accel                        
# Pre steam                           
#xinput --set-prop 14 324 .9          
# post steam:                         
xinput --set-prop 15 285 .8           

# inv scroll                          
# Pre Steam:                          
# xinput --set-prop 14 312 1          
# post steam:                         
xinput --set-prop 15 276 1            
 
# Fix the mouse:
xinput set-button-map `xinput list | grep 'Evoluent VerticalMouse 2' | grep -Eo 'id\=[0-9]+' | grep -oE '[0-9]+'`   3 2 1 4 5 6 7 8 1 10 11 12 13
 

Swapping Keys                     

# ctrl to caps                        
setxkbmap -layout gb -option ctrl:nocaps
 
#  swap CTRL and ALT
clear control
clear mod1
add control = Control_L Control_R
add mod1 = Alt_L
! Make LeftAlt  -> LeftControl
keycode 64  = Control_L
! Make LeftCtrl -> LeftAlt - you need the add and clears above for these to work
keycode 37 = Alt_L

 
 
Inorder to run on startup copy the above file(s) to :
/etc/X11/Xsession.d/45custom_xrandr_settings
 

No comments:

Post a Comment