Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • InsecureSpike
    Participant
    Post count: 571

    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

    herbfargus
    Member
    Post count: 1858

    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:

    InsecureSpike
    Participant
    Post count: 571

    awesome! thanks

    InsecureSpike
    Participant
    Post count: 571

    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

    herbfargus
    Member
    Post count: 1858

    Maybe this?

    #!/bin/bash
    cat /proc/meminfo
    sleep 5
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.