• 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 …

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

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

    Antergos (default OS) - WIN10 (abandoned)
    I3wm - Mate desktop
    AMD - A4 7300 Radeon graphics
    16 GB ram
    HD 1 TB
    Linux newbie since 06/2016

  • @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.

    Antergos (default OS) - WIN10 (abandoned)
    I3wm - Mate desktop
    AMD - A4 7300 Radeon graphics
    16 GB ram
    HD 1 TB
    Linux newbie since 06/2016

startup14 gnome244 Posts 7Views 355
Log in to reply