Yuriy Skvortsov n00b
Joined: 30 Dec 2012 Posts: 33 Location: Odessa, Ukraine
|
Posted: Fri Jan 04, 2013 2:54 pm Post subject: xkbcomp doesn't work from terminal |
|
|
Hi!
Here I'll try to describe a weird situation I've got and hope someone could give me an advice on that.
I have a laptop with a fresh Gentoo install with X and Awesome WM without any DE / login manager. I used to login into terminal as user and startx. I also use a custom keyboard layout and apply it in ~/.xinitrc via setlayout which is a script in my ~/bin/
Code: |
#!/bin/bash
xkbcomp -I/home/yuriy/.xkb /home/yuriy/.xkb/keymap/mykeymap $DISPLAY
|
It works just Ok being executed from both .xinitrc and urxvt console in X.
But then I've discovered that my layout settings disappear after suspend/resume. I wanted to add a hook through pm_utils but oops, it didn't work and I've started investigating. I've googled a few posts about similar problem:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661754
http://linux.derkeiler.com/Mailing-Lists/Fedora/2010-03/msg01620.html
But this was not really helpful. When I login into another terminal (outside X) and type
Code: |
export DISPLAY=':0'
export XAUTHORITY='/home/yuriy/.Xauthority'
setlayout
|
It executes but no changes appear to X while the same in urxvt changes layout just as supposed.
I really can not get what could be the difference between executing this in terminal and in urxvt and have no idea how to get this working.
Any suggestions? |
|