Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
02-05-2014, 02:20 PM
|
#16
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
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.
|
02-05-2014, 02:24 PM
|
#17
|
LQ Veteran
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
|
Quote:
Originally Posted by TobiSGD
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.
|
|
|
02-05-2014, 04:27 PM
|
#18
|
Member
Registered: Oct 2011
Distribution: Slackware64
Posts: 364
Rep:
|
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 04:34 PM.
|
|
|
02-05-2014, 07:53 PM
|
#19
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
I login at the command line and use startx.
|
|
1 members found this post helpful.
|
02-06-2014, 06:25 AM
|
#20
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,311
Rep:
|
Look, Ma! No Windows keys!
|
|
|
02-10-2014, 04:41 PM
|
#21
|
Member
Registered: Oct 2011
Distribution: Slackware64
Posts: 364
Rep:
|
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.
|
|
|
02-10-2014, 07:00 PM
|
#22
|
Senior Member
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482
Original Poster
|
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.
|
|
|
02-10-2014, 07:18 PM
|
#23
|
Member
Registered: Oct 2011
Distribution: Slackware64
Posts: 364
Rep:
|
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 :
|
|
|
02-11-2014, 08:57 AM
|
#24
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
|
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.
|
|
|
02-11-2014, 12:18 PM
|
#25
|
Member
Registered: Oct 2009
Posts: 111
Rep:
|
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
|
|
|
04-24-2014, 06:42 PM
|
#26
|
Member
Registered: Oct 2011
Distribution: Slackware64
Posts: 364
Rep:
|
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.
|
|
|
04-24-2014, 09:08 PM
|
#27
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,736
|
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.
|
|
|
04-26-2014, 11:32 AM
|
#28
|
Member
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344
Rep:
|
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!
|
|
|
04-26-2014, 12:01 PM
|
#29
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
|
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.
|
|
|
04-26-2014, 04:52 PM
|
#30
|
Member
Registered: Nov 2009
Location: Kansas, USA
Distribution: Slackware64-15.0
Posts: 865
|
Quote:
Originally Posted by brianL
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).
|
|
|
All times are GMT -5. The time now is 04:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|