adding custom commands to retropie menu?

Home Forums RetroPie Project Everything else related to the RetroPie Project adding custom commands to retropie menu?

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 4 replies, has 2 voices, and was last updated by Profile photo of herbfargus herbfargus 1 year, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #99079
    Profile photo of InsecureSpike
    InsecureSpike
    Participant

    how can I add a custom command?
    I’m wanting to add one that can show the amount of memory used & remaining.
    I know that df -h via command shows this, but I don’t have a clue how to add that, to make a command

    thanks

    #99081
    Profile photo of herbfargus
    herbfargus
    Moderator

    You can execute it with a shell script – this video shows how to do it for lxde but you can adapt it to your code:

    #99088
    Profile photo of InsecureSpike
    InsecureSpike
    Participant

    awesome! thanks

    #99279
    Profile photo of InsecureSpike
    InsecureSpike
    Participant

    ok, i’m still having issues with this, i’m embarrassed to say!

    i’m trying this now..

    #!/bin/bash
    cat /proc/meminfo

    a brief readout appears but is just as soon gone! any ideas anyone,

    thanks

    #99284
    Profile photo of herbfargus
    herbfargus
    Moderator

    Maybe this?

    #!/bin/bash
    cat /proc/meminfo
    sleep 5
Viewing 5 posts - 1 through 5 (of 5 total)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar