Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xkbcomp doesn't work from terminal
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Yuriy Skvortsov
n00b
n00b


Joined: 30 Dec 2012
Posts: 33
Location: Odessa, Ukraine

PostPosted: Fri Jan 04, 2013 2:54 pm    Post subject: xkbcomp doesn't work from terminal Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum