Author Topic: <Solved>Disabling Caps Lock  (Read 2759 times)

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1528
Re: <Solved>Disabling Caps Lock
« Reply #15 on: January 08, 2012, 08:15:27 AM »
Thanks. I guess I'll just have to play with it. (Yes, I have tried logging in and out and rebooting. :))
Quote
this is, what i mean with...
« Last Edit: January 08, 2012, 08:17:56 AM by Ray2047 »
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 11057
  • MLUs Forever!
Re: <Solved>Disabling Caps Lock
« Reply #16 on: January 08, 2012, 08:43:58 AM »
Put the file into

/home/<user-name>/.kde4/Autostart/

..... or maybe that is what you have done  ......  ?
MLUs rule the roost!

Linux XPS 3.4.48-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: <Solved>Disabling Caps Lock
« Reply #17 on: January 08, 2012, 09:46:08 AM »

may I suggest to change from:
Quote
xmodmap Xmodmap-my &

to:
Quote
xmodmap /<abslolute-path-to-script>/Xmodmap-my &

substitute <absolute-path-to-script> as required ...

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <Solved>Disabling Caps Lock
« Reply #18 on: January 08, 2012, 09:49:42 AM »

may I suggest to change from:
Quote
xmodmap Xmodmap-my &

to:
Quote
xmodmap /<abslolute-path-to-script>/Xmodmap-my &

substitute <absolute-path-to-script> as required ...


is needed, when you have it installed on a hidden path, but this is stored in your home directory, and will found ;)

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: <Solved>Disabling Caps Lock
« Reply #19 on: January 08, 2012, 09:59:46 AM »

is needed, when you have it installed on a hidden path, but this is stored in your home directory, and will found ;)

Agreed, but: how do you know where it is actually stored ?  Isn't that just an assumption ?

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <Solved>Disabling Caps Lock
« Reply #20 on: January 08, 2012, 10:09:38 AM »

is needed, when you have it installed on a hidden path, but this is stored in your home directory, and will found ;)

Agreed, but: how do you know where it is actually stored ?  Isn't that just an assumption ?

while i have it here generated
xmodmap -pke > Xmodmap-my

But yes, you can use, maybe
Code: [Select]
xmodmap $HOME/Xmodmap-my &
When ever you will save it in your hidden config folder, you must set correct path, for example

Code: [Select]
xmodmap $HOME/.config/Xmodmap-my &

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1528
Re: <Solved>Disabling Caps Lock
« Reply #21 on: January 08, 2012, 10:48:09 AM »
Not in a hidden file. It is home/user/CapsLock_disable.sh
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1528
Re: <Solved>Disabling Caps Lock
« Reply #22 on: January 08, 2012, 10:53:44 AM »
Put the file into

/home/<user-name>/.kde4/Autostart/

..... or maybe that is what you have done  ......  ?
I have it there as a SymLink. Will try actually putting it there.
« Last Edit: January 08, 2012, 11:01:15 AM by Ray2047 »
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline daniel

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3794
  • God knows, i'm not an Angel!
    • Tipps und Tricks
Re: <Solved>Disabling Caps Lock
« Reply #23 on: January 08, 2012, 10:56:15 AM »
we are speaking about autostart function, i wrote about it for a long time ago in kde3.

Read this article from our magazine, under How do I start Wbar automatically upon login? you will found a solution how it should work correctly... I don't use kde4, so i lost here...


Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: <Solved>Disabling Caps Lock
« Reply #24 on: January 08, 2012, 10:59:20 AM »
Put the file into

/home/<user-name>/.kde4/Autostart/

..... or maybe that is what you have done  ......  ?
I have it there as a SymLink. Will try actually putting it there.

where is located the file Xmodmap-my ?

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1528
Re: <Solved>Disabling Caps Lock
« Reply #25 on: January 08, 2012, 11:08:56 AM »
I can't figure out ho to get the file in there I can't use copy or save as because the hidden files don't show up. I tried dragging and it wouldn't drag.
Put the file into

/home/<user-name>/.kde4/Autostart/

..... or maybe that is what you have done  ......  ?
I have it there as a SymLink. Will try actually putting it there.

where is located the file Xmodmap-my ?
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1528
Re: <Solved>Disabling Caps Lock
« Reply #26 on: January 08, 2012, 11:13:22 AM »
where is located the file Xmodmap-my ?
home/user/Xmodmap-my
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1528
Re: <Solved>Disabling Caps Lock
« Reply #27 on: January 08, 2012, 11:30:49 AM »
Created a new SH file in Autostar but still doesn't work.
I can't figure out ho to get the file in there I can't use copy or save as because the hidden files don't show up. I tried dragging and it wouldn't drag.
Put the file into

/home/<user-name>/.kde4/Autostart/

..... or maybe that is what you have done  ......  ?
I have it there as a SymLink. Will try actually putting it there.

where is located the file Xmodmap-my ?
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: <Solved>Disabling Caps Lock
« Reply #28 on: January 08, 2012, 11:49:10 AM »
edit your script /home/user/CapsLock_disable.sh so it will look like
Quote
xmodmap    ~/Xmodmap-my &

also make sure the the symlink:
/home/user/.kde4/Autostart/CapsLock_disable.sh  point to  /home/user/CapsLock_disable.sh