• Startup script under gnome


    Hey, I was trying to save:

    xmodmap ~/.Xmodmap
    xset r rate 150 25
    

    into ~/.xinitrc ~/.xsession and ~/.xprofile but none of these seems to be executed on login.

    Where should I save such config? I basically want to remap caps lock to ctrl and set higher rate for keypress. It works when executed manually in terminal.

    Thanks!

  • @Blizz Include the commands to a .desktop file, which, when placed in your .config/autostart folder will lauch on startup.

    In case you need it, some more detail

    In your text editor, create a file with the contents:

    #!/usr/bin/env xdg-open
    [Desktop Entry]
    Exec=sh -c 'xmodmap ~/.Xmodmap ; xset r rate 150 25' 
    StartupNotify=false
    Type=Application
    

    Save the file in .config/autostart under a name of your choice, e.g. ‘keyboardsetting.desktop’ (extension .desktop required). This way, it should autoatically be executed when logging in to the shell.

    If it does not work, try adding some delay before execution, e.g.

    Exec=sh -c ‘sleep 5 ; xmodmap ~/.Xmodmap ; xset r rate 150 25’

    to introduce a delay of 5 seconds before the other commands get executed (this will not delay logging in).

  • nice tool to reimplement something GNOME has before ;)
    If this is what GNOME will stay in the future i am happy to find i3wm …

  • @joekamprad
    after learning how to use i3 has the easiest startup i have ever know!

  • @fernandomaroto said in Startup script under gnome:

    @joekamprad
    after learning how to use i3 has the easiest startup i have ever know!

    Of course, but use some keyboard mod there to press the key with the Windows logo … uffff

    $mod+d
    

    :) ;)
    https://wiki.archlinux.org/index.php/i3

  • @judd said in Startup script under gnome:

    @fernandomaroto said in Startup script under gnome:

    @joekamprad
    after learning how to use i3 has the easiest startup i have ever know!

    Of course, but use some keyboard mod there to press the key with the Windows logo … uffff

    $mod+d
    

    :) ;)
    https://wiki.archlinux.org/index.php/i3

    Hi @judd, no, we’re talking about an app being automatically launched at startup, in that case adding the app to i3-wm config file. You’re talking about one way to launch an app after startup.

gnome321 startup23 Posts 7Views 1378
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.