LinuxQuestions.org
Help answer threads with 0 replies.
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
  Search this Thread
Old 02-05-2014, 01:20 PM   #16
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546

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,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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: Slackware64
Posts: 364

Rep: Reputation: 67
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.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Look, Ma! No Windows keys!
Attached Thumbnails
Click image for larger version

Name:	DSC00078.JPG
Views:	66
Size:	66.8 KB
ID:	14690  
 
Old 02-10-2014, 03:41 PM   #21
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
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.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
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: Slackware64
Posts: 364

Rep: Reputation: 67
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: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
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: 111

Rep: Reputation: 23
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
 
Old 04-24-2014, 05:42 PM   #26
j_v
Member
 
Registered: Oct 2011
Distribution: Slackware64
Posts: 364

Rep: Reputation: 67
http://www.linuxquestions.org/questi...se-4175501546/ deals with a similar problem to the one in this thread. When op reported success, it got me thinking of this thread again. I thought that while the two threads deal with different desktop environments, the underlying problems might be the same or related.
 
Old 04-24-2014, 08:08 PM   #27
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,310
Blog Entries: 28

Rep: Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137Reputation: 6137
Another name for the Win keys that I have seen is "Super L."

On my systems, the Win keys are read as "Mod4." I use them to create my own keybindings in Fluxbox and E17, since they are commonly not used by default.
 
Old 04-26-2014, 10:32 AM   #28
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 342

Rep: Reputation: 59
Talking Stickers

I also happen to hate the Windows logo on my keyboards, but just for the sake of disliking its appearance. I do use the (Super? Tux?) key and it's kinda useful here, but it might be an acquired taste.

I found these useful and good looking stickers that might help, if you still want to keep that key and make it look a little better:

STICKERS
---------

Round version -> https://www.thinkpenguin.com/gnu-lin...yboard-sticker

Square version -> http://www.getdigital.eu/Key-Sticker-Tux.html

Yes, we still lack a Slackware version (and I haven't gotten it right when it comes to cut the stickers myself - I have some sheets of metallic paper waiting to be cut, for it doesn't look quite right, do they cut them with a template cutter or what?), otherwise i'd just printed the sticker myself.

Have fun!
 
Old 04-26-2014, 11:01 AM   #29
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
My Zero keyboard Windows key has an image of the Zero Duck's head (at least I think that's what it is).

Besides having Cherry keyswitches (oh, such great feel), there is not indication of Intel, Windows or any other pollution on it.

Well, the Zero logo, but nobody knows what that is anyway.
 
Old 04-26-2014, 03:52 PM   #30
1337_powerslacker
Member
 
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 862
Blog Entries: 9

Rep: Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592Reputation: 592
Quote:
Originally Posted by brianL View Post
Look, Ma! No Windows keys!
They're still there, just relabeled as Tux.

I am using this keyboard with no Windows keys (just the way I like it):

I used this kind of keyboard back when I was attending HS in the mid-late 80's (Model M).
Attached Thumbnails
Click image for larger version

Name:	unicomp_model_m.jpg
Views:	23
Size:	125.9 KB
ID:	15330  
 
  


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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:34 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration