• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login

Midnight Joy [Scriptlet]

Scheduled Pinned Locked Moved Ideas and Development
cyperghostmidnightcommander
12 Posts 4 Posters 2.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    cyperghost
    last edited by cyperghost 13 Sept 2018, 22:48

    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

    C 1 Reply Last reply 14 Sept 2018, 13:34 Reply Quote 11
    • C
      cyperghost @cyperghost
      last edited by cyperghost 14 Sept 2018, 13:34

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

      D C 2 Replies Last reply 15 Sept 2018, 11:46 Reply Quote 1
      • D
        darknior @cyperghost
        last edited by 15 Sept 2018, 11:46

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

        Life is game, just play it !

        1 Reply Last reply Reply Quote 1
        • C
          Clyde @cyperghost
          last edited by 15 Sept 2018, 14:20

          @cyperghost Great idea, great name. 😄

          1 Reply Last reply Reply Quote 1
          • B
            BiZzAr721
            last edited by 16 Sept 2018, 07:39

            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)

            C C 2 Replies Last reply 16 Sept 2018, 07:48 Reply Quote 1
            • C
              Clyde @BiZzAr721
              last edited by 16 Sept 2018, 07:48

              @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?

              1 Reply Last reply Reply Quote 1
              • C
                cyperghost @BiZzAr721
                last edited by cyperghost 16 Sept 2018, 11:32

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

                C B 2 Replies Last reply 16 Sept 2018, 18:31 Reply Quote 0
                • C
                  Clyde @cyperghost
                  last edited by 16 Sept 2018, 18:31

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

                  1 Reply Last reply Reply Quote 0
                  • C
                    cyperghost
                    last edited by cyperghost 16 Sept 2018, 19:03

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

                    C 1 Reply Last reply 17 Sept 2018, 11:26 Reply Quote 0
                    • B
                      BiZzAr721 @cyperghost
                      last edited by 17 Sept 2018, 02:33

                      @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!

                      1 Reply Last reply Reply Quote 0
                      • C
                        Clyde @cyperghost
                        last edited by Clyde 17 Sept 2018, 11:26

                        @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. :)

                        C 1 Reply Last reply 17 Sept 2018, 17:47 Reply Quote 0
                        • C
                          cyperghost @Clyde
                          last edited by cyperghost 17 Sept 2018, 17:47

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

                          1 Reply Last reply Reply Quote 0
                          12 out of 12
                          • First post
                            12/12
                            Last post

                          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.

                            This community forum collects and processes your personal information.
                            consent.not_received