Showing posts with label xephyr. Show all posts
Showing posts with label xephyr. Show all posts

2012/12/18

Letters have no meaning

Xephyr occasionally gets more than a little confused about the current keyboard settings (caps lock get forced on... etc). One or more of the following sometimes restore normality:
  • xkbset nullify lock
  • setxkbmap gb
  • restart the window manager as a last resort 

2012/01/07

Back-words & fore-words

xsel to move text selections back and forth from a tvtwm nested in a Xephyr and another display (e.g. the parent):

"C"   = m4 : all : f.exec "xsel -o | xsel --display :0.0 -i"
"V"   = m4 : all : f.exec "xsel --display :0.0 -o | xsel -i"


Super_L+C copies the current selection in a tvtwm managed display to :0.0
Super_L+V copies the current selection from :0.0 into the tvtwm managed display selection

mod4 (m4)  is Super_L, mapped to the MSWin key, when:
  1. Windows Key is Super_L from xev 
  2. Super_L is mapped inside Xephyr to mod4
And the mapping from inside the Xephyr display can be determined by:

$ xmodmap -p|grep Super_L
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
$

The opposite direction from KDE4 to Xephyr:

System-Settings->Shortcuts and Gestures->Custom Shortcuts->Edit->New->Global Shortcut->Command/URL

The two new shortcuts can be put into a their own group and then exported/imported.

2011/10/30

Nesting X

The Xephyr kdrive X server for running a more development oriented X11 window manager (xterm's) inside another environment (e.g. kde). For gentoo setting the kdrive use flag will cause Xephyr to be built.

#!/bin/bash
# kde system-settings->keyboard settings->advanced->Alt/Win key behaviour->
#   -> Meta is mapped to Left Win
nest_display=${1:-":7"}
geometry=${2:-"1915x1150"}

nohup Xephyr -ac -screen $geometry -nolisten inet6 $nest_display &

sleep 2

export DISPLAY=$nest_display

delayed()
{
    xrdb ~/.Xdefaults
    setxkbmap ie
    xmodmap ~/.xmodmap
}

(sleep 7; delayed ) &

# -s : only manage the specified display (DISPLAY)
exec tvtwm -s