Re: .kde4/Autostart/xmod.sh && xmodmap's

2017-03-25 Thread Tobias C. Berner
it's quite possible that there is a KDE austart process interfering with
your script, which, with the timeout, gets overriden again :)

On 25 March 2017 at 21:59, Matthias Apitz  wrote:

> El día domingo, marzo 12, 2017 a las 07:03:26p. m. +0100, Matthias Apitz
> escribió:
>
> > I have a script ~/.kde4/Autostart/xmod.sh which does some keyboard
> > adjustments with xmodmap on KDE4 start, for example:
> >
> > echo $0 >> /tmp/autostart.txt
> > date>> /tmp/autostart.txt
> > echo DISPLAY: $DISPLAY >> /tmp/autostart.txt
>
> The problem seems to be a raise between the script and the upcoming KDE
> desktop. If I put a sleep of 10 secs into the script, all is fine.
>
> --
> Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎
> +49-176-38902045
> Aus "Nie wieder Krieg!" wurde "Nie wieder Krieg ohne Deutschlands Truppen"
> The "No wars anymore!" changed now to "No wars anymore without German
> battle groups!"
> El "¡Nunca jamás guerra!" ha cambiado a "¡Nunca jamás guerra sin tropas
> alemanas!"
>


Re: .kde4/Autostart/xmod.sh && xmodmap's

2017-03-25 Thread Matthias Apitz
El día domingo, marzo 12, 2017 a las 07:03:26p. m. +0100, Matthias Apitz 
escribió:

> I have a script ~/.kde4/Autostart/xmod.sh which does some keyboard
> adjustments with xmodmap on KDE4 start, for example:
> 
> echo $0 >> /tmp/autostart.txt
> date>> /tmp/autostart.txt
> echo DISPLAY: $DISPLAY >> /tmp/autostart.txt

The problem seems to be a raise between the script and the upcoming KDE
desktop. If I put a sleep of 10 secs into the script, all is fine.

-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
Aus "Nie wieder Krieg!" wurde "Nie wieder Krieg ohne Deutschlands Truppen"
The "No wars anymore!" changed now to "No wars anymore without German battle 
groups!"
El "¡Nunca jamás guerra!" ha cambiado a "¡Nunca jamás guerra sin tropas 
alemanas!" 


.kde4/Autostart/xmod.sh && xmodmap's

2017-03-12 Thread Matthias Apitz

Hello,

I have a script ~/.kde4/Autostart/xmod.sh which does some keyboard
adjustments with xmodmap on KDE4 start, for example:

echo $0 >> /tmp/autostart.txt
date>> /tmp/autostart.txt
echo DISPLAY: $DISPLAY >> /tmp/autostart.txt

/usr/local/bin/setxkbmap -model pc105 \
  -layout de   \
  -option "altwin:swap_alt_win"   \
  -option "lv3:ralt_switch"
#
# we use the Win-key to add more (esp. Spanish) letters to the keys:
#
xmodmap -e "keycode 145 = Delete Delete Delete Delete"
#
# Spanish tilded chars (use Mode_switch + char)
#
xmodmap -e "keycode 0x40 =  Mode_switch"
xmodmap -e "keycode 0x39 =  n N ntilde Ntilde"
...

The script works fine when fired up within the KDE session, but does not
seem to work when launched as Autostart (it gets launched as I can see in
the file /tmp/autostart.txt), but it seems that the changes done by
xmodmap are somehow re-setted again during start of KDE.

Any ideas?

matthias


-- 
Matthias Apitz, ✉ g...@unixarea.de, ⌂ http://www.unixarea.de/  ☎ 
+49-176-38902045
Aus "Nie wieder Krieg!" wurde "Nie wieder Krieg ohne Deutschlands Truppen"
The "No wars anymore!" changed now to "No wars anymore without German battle 
groups!"
El "¡Nunca jamás guerra!" ha cambiado a "¡Nunca jamás guerra sin tropas 
alemanas!"