Home   Notes   Contact Me

X Windows

Local

External


geometry flag info

# Size the window: xload -g 100x200 # Size and position the window, 0 pixels from the LEFT and 0 pixels from the top: xload -g 100x200+0+0 # Size and position the window, 0 pixels from the RIGHT and 0 pixels from the top: xload -g 100x200-0+0

xterm

Here are some useful command line options

optionDescription
-geom {wide}x{tall}
-geom 120x32
Set the size in characters
-bg {color}
-bg black
Set the Background color
-fg {color}
-fg yellow
Set the Text color (Foreground color)
-T {title}
-T "redhat compile"
Set the title of the xterm
-e {command and args}
-e /usr/bin/ssh username@computer
A command to execute in the xterm

Title, changing it for the current window

# bash examples (The following are for use with bash) # changing it one time: echo -ne "\033]0;This is the new name\007" # changing it each time the prompt is shown: export PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME} - ${PWD}\007"

Reference http://tldp.org/HOWTO/Xterm-Title.html


Mouse Handedness

Show Settingxmodmap -pp
pp means print pointer map
Left Handedxmodmap -e "pointer = 3 2 1 4 5"
Right Handedxmodmap -e "pointer = 1 2 3 4 5"