Hello.
At startup I want to run a script that will swap my caps-lock and ctrl keys.

So I decided to leave a file in ~/.config/autostart/swap-caps-ctrl.desktop:
    [Desktop Entry]
    Type=Application
    Exec=~/.swap-caps-ctrl.sh
    StartupNotify=false
    Terminal=true
    Hidden=false

And this script ~/.swap-caps-ctrl.sh

    #! /usr/bin/bash
    /usr/bin/setxkbmap -option 'ctrl:menu_rctrl' -option 'ctrl:swapcaps'

This script runs perfectly fine when I leave it in .bashrc. But in this
case, .bashrc is first execute when I start a terminal.

So, to recapitulate, how do I leave a bash script for lxde to execute at
login?

Thanks for your kind help in advance.

P.S
The file ~/.swap-caps-ctrl.sh can be executed.




------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to