Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Midnight Joy [Scriptlet]



  • Hello the usage of Midnight Commander is useless without keyboard. So I arranged a small script that makes it possible to navigate through MC just with gamepad.
    Let it call us .....

    Midnight Joy

    You can place the script right to ~/RetroPie/retropiemenu

    Please install via githubwget "http://raw.githubusercontent.com/crcerror/RetroPie-Shares/master/Midnight Joy.sh" -O "$HOME/RetroPie/retropiemenu/Midnight Joy.sh"

    After that Restart ES and the script should appear in your Configuration Section

    If you want insight to code rush to my github account here

    If an installation/setup of Midnight Commander is present this script creates a new config in $HOME/.config/mc/mc.midnightjoy so nothing will be overwritten or changed from your old setup!

    I choosed dark theme as default -- Midnight Joy ;) Just as the name says ;)

    Keylayout

    UP/DOWN -- Moves selector up/down, navigate through option menus
    LEFT/RIGHT -- Select neighbour window, navigate through option menus
    A = Enter -- Execute commands, Press dialog buttons
    B = F10 -- Terminate MC, Go back to main window, I've activated YES/NO to end MC
    X = Space -- Marks files, Select dialog boxes
    Y = F9 -- Activate File Menu

    In Action



  • Did a complete new rewrite. No it sets up Midnight Command and uses one Keylayout.



  • @cyperghost WOAW excellent, good idea :)
    I will try it monday :)
    Thanks a lot



  • @cyperghost Great idea, great name. 😄



  • I do most of everything through my PC but wanted to help test out your script. Got an error couldn't find file when using wget "http://raw.githubusercontent.com/crcerror/RetroPie-Shares/master/Midnight Joy.sh" -O "$HOME/RetroPie/retropiemenu/Midnight Joy.sh" so I just manually copied it to ~/RetroPie/retropiemenu
    It worked beautifully. Another job well done by @cyperghost
    You don't rest, do you? (as I'm testing OpenBOR at nearly 3:30am)



  • @bizzar721 said in Midnight Joy [Scriptlet]:

    I do most of everything through my PC but wanted to help test out your script. Got an error couldn't find file

    That's strange. I just tested the command on my Pi and it works. A temporary network problem perhaps?



  • @bizzar721 said in Midnight Joy [Scriptlet]:

    wget "http://raw.githubusercontent.com/crcerror/RetroPie-Shares/master/Midnight Joy.sh" -O "$HOME/RetroPie/retropiemenu/Midnight Joy.sh" so I just manually copied it to ~/RetroPie/retropiemenu

    As @Clyde said, there seems no error. Or maybe you don't read the first textoutput. You have to start the script a second time. First run only initiates config files (only once!) and the all further starts call Midnight Commander.

    How about your OpenBOR experience? It is great luck to met a developer like @zanac and who is willing to help and share binaries. Actually I've a great lack in time but luckily everything worked at first attempt. So I think at end of month there can be a PR added to RetroPie setup.



  • @cyperghost By the way, do you know a way to browse the bash history and execute the selected command with a controller? (That means the controller's up and down would work like cursor keys and one of its buttons would work like pressing enter.)

    Since I have many common commands in my bash history, I could use them and exit back to ES without having to connect a keyboard or login via ssh.

    Just asking because it seems similar to Midnight Joy in function, only for the console instead of mc.



  • @Clyde This is no problem. Midnight Commander is very powerfull. You can write a small script within USERMENU (F2-key) you can access the config within File-Menu. There select "Edit UserMenu" and store the new commands - Use a clear name for this, maybe "Call last Bash inputs...."

    I would use tail command and limit to last 25 calls or you can use history command. Then you build a dialog with menulist and execute selected entry. It's maybe a five liner.



  • @cyperghost said in Midnight Joy [Scriptlet]:

    How about your OpenBOR experience? It is great luck to met a developer like @zanac and who is willing to help and share binaries. Actually I've a great lack in time but luckily everything worked at first attempt. So I think at end of month there can be a PR added to RetroPie setup.

    Zanac has been awesome - very much appreciate him taking the time and sharing his work. That's what the retro community is all about. Heck, we all spend more time creating/customizing than playing the games! Now that everything is converted BACK to .paks I've been enjoying testing out all these newer games. Time to unlock some Family guy in Simpson's Tree House of Horror!



  • @cyperghost Thanks, I'll look into that, although I would prefer a solution without mc, but in the console directly. If you stumble across something like this, I would be happy to hear about it. :)

    edit: I found a way through some research, and made a short How-To about it. :)



  • @clyde Now I understood. Yes if you launch the joy2key command you can use up and down to switch through bash history. But the way you made it is a bit confusing as the joy2key programm is always active in background. This can cause behaviour you do not want to happen. I would suggest to use dialog function for this.



Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.