LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-05-2014, 01:20 PM   #16
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,260

Original Poster
Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481

Quote:
I have marked the important parts in bold, basically it says: If a file sysmodmap=/etc/X11/xinit/.Xmodmap exists, load it, but override it with ~/.Xmodmap, if it exists.
My xinit scripts for Trinity and KDE4 have the same snippets, although I edited my scripts to

sysmodmap=/etc/X11/xinit/Xmodmap

The Trinity script executes /etc/X11/xinit/Xmodmap. KDE4 executes ~/.Xmodmap but not /etc/X11/xinit/Xmodmap. Whether the system file is name Xmodmap or .Xmodmap is irrelevant --- the scripts do the work through the xmodmap command. The xmodmap command doesn't care what the file name is.
 
1 members found this post helpful.
Old 02-05-2014, 01:24 PM   #17
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,417
Blog Entries: 1

Rep: Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951Reputation: 951
Quote:
Originally Posted by TobiSGD View Post
rc.local will be of no help, when that is run the X server is not running.
You're right. I didn't think of it.
 
Old 02-05-2014, 03:27 PM   #18
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 139

Rep: Reputation: Disabled
OK, I didn't think about KDE. Are you using kdm as greeter? If so, the I now find the xinit for kdm is run from /etc/kde/kdm/Xsession file. It looks for /usr/lib64/X11/xinit/.Xmodmap. I suppose on a 32bit system, that would probably be /usr/lib/X11/xinit/.Xmodmap.

I use xdm, and it uses /etc/X11/xdm/Xsession. I'm not sure about gdm or other greeter/login managers.

Last edited by j_v; 02-05-2014 at 03:34 PM.
 
Old 02-05-2014, 06:53 PM   #19
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,260

Original Poster
Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
I login at the command line and use startx.
 
1 members found this post helpful.
Old 02-06-2014, 05:25 AM   #20
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,702
Blog Entries: 51

Rep: Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244Reputation: 1244
Look, Ma! No Windows keys!
Attached Images
File Type: jpg DSC00078.JPG (66.8 KB, 37 views)
 
Old 02-10-2014, 03:41 PM   #21
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 139

Rep: Reputation: Disabled
Have you made any head way with this? I fired up a Slackware-14.1 virtual machine that has KDE setup this last weekend to test out a few ideas, but nothing I did disabled the win keys globally. I haven't given up. I'll try to give it some more time this week.
 
Old 02-10-2014, 06:00 PM   #22
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.0
Posts: 3,260

Original Poster
Rep: Reputation: 481Reputation: 481Reputation: 481Reputation: 481Reputation: 481
Quote:
Have you made any head way with this?
Only what I described previously. Trinity works fine with a global Xmodmap file, which is what I desire, while KDE4 works only with a user .Xmodmap. My reprieve is I don't use the laptop for serious work, mostly testing, and I have only three user accounts on that system, pretty much only for testing.

KDE4 is not my primary desktop so I'm not losing sleep over this. I'm not tagging the thread as solved because KDE4 doesn't recognize the global Xmodmmap.
 
Old 02-10-2014, 06:18 PM   #23
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware
Posts: 139

Rep: Reputation: Disabled
I fired up the vm again, just to retry the xmodmap stuff. I haven't messed with Trinity, since you said that it did the right thing with the Xmodmap. I tried a few of different things. To note, my keyboard only has the left Win key. I also tested to make sure that I got some sign that the key was mapped in KDE without any changes to the default configs for X11. I only found one mapping, win_left+q brought up a search panel widget just above to main panel.

1. I edited the /etc/X11/xinit/xinitrc.kde so that it referenced /etc/X11/xinit/Xmodmap rather than /etc/X11/xinit/.Xmodmap. Wrote an /etc/X11/xinit/Xmodmap file (1). Then I ran startx as normal user. I couldn't get any responses to Win key presses. It shows up in xev. But nothing seems to be mapped to it.

2. I copied the /etc/X11/xinit/xinitrc.kde to ~/.xinitrc, `chmod +x` to it, then startx. Same result as with 1.

3. I copied the /etc/X11/xinit/Xmodmap to ~/.Xmodmap, then startx. Same result as 1.

4. Same as 3, but I renamed: `mv /etc/X11/xinit/Xmodmap{,.bak}`. Same result.

My thought is that there is another factor outside of the X11 startup scripts. I know that the ~/.xinitrc will preclude the system /etc/X11/xinit/xinitrc.* files, so I wonder if that could be a factor.

(1) /etc/X11/xinit/Xmodmap and ~/.Xmodmap :
Code:
keycode 133 =
 
Old 02-11-2014, 07:57 AM   #24
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,871

Rep: Reputation: 700Reputation: 700Reputation: 700Reputation: 700Reputation: 700Reputation: 700Reputation: 700
Slightly tongue-in-cheek (but not so much)...

Something you might try -- costs a few bucks, but worth it -- is get a Zero keyboard. Cherry key switches (with astounding feel). Heavy bugger (doesn't slide around on ya). Rock solid feel. LED in the Num Lock and Caps Lock keys (nice green ones). Sized for male hands (sorry, ladies, but most guys have bigger hands than you do). It does have the Windows keys but they're darned hard to hit (and I haven't managed to fumble-finger either of 'em yet). Best source: MicroCenter.

My old Dell keyboard crapped out, I bought a Logitech K120 (for $20, brand new at Wally World) and used that for a while (just barely too small, slid all over the place, paint wore off the keys). Never did hit the Windows keys on it either but, dang, that Zero is so much better.

I use the Logitech with the lap top (a Dell Inspiron 1750) and that's OK but if I'm doing serious work on it (not too often, I usually SSH into it) I'll plug in the Zero. First thing I do with any lap top is turn off that damned finger pad right where my thumbs rest and plug in a mouse, just need to type and click on some stuff now and again.

The problem with fiddling around with keyboard mapping is... you have to fiddle with keyboard mapping, remember what you did and keep a copy somewhere or other so you can migrate it to a new box or new release. PITA! An equipment upgrade (yeah, a Zero keyboard costs $60 - $80) might just fix the problem with the added plus that you'll have the thing for a long, long time.

Hope this helps some.
 
Old 02-11-2014, 11:18 AM   #25
bimboleum
Member
 
Registered: Oct 2009
Posts: 38

Rep: Reputation: 4
Hi,
Of course, I don't have any truck with KDE ... I am an xfce user BUT I have a window pager with 6 windows .. I presume that KDE does provide a similar function ... anyway I remap the "windows" keys to cycle backwards and forwards through the pager windows ... as was previously remarked, they are just keys.

cheers
pete

pete hilton
saruman@ruvolo-hilton.org
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem re-mapping non-standard keys to modifier keys tias42 Linux - General 4 04-09-2011 05:03 AM
mouse keys as modifier keys (ctrl & alt) belda Linux - Desktop 3 06-25-2009 10:37 AM
USB keyboard function keys/numeric keys on boot raypen Linux - Hardware 4 04-17-2008 03:07 PM
WOL lin->win fails, win->win works? c0uchm0nster Linux - Networking 1 01-07-2007 11:33 PM
howto enable win keys for mandrake spikeyklitske Linux - Software 0 10-31-2004 06:40 AM


All times are GMT -5. The time now is 05:03 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration