IceWM system dialog

Forum Forums General Software IceWM system dialog

  • This topic has 23 replies, 5 voices, and was last updated May 7-8:33 pm by blur13.
Viewing 9 posts - 16 through 24 (of 24 total)
  • Author
    Posts
  • #106145
    Moderator
    Brian Masinick
      Helpful
      Up
      0
      ::

      https://forums.debian.net/viewtopic.php?t=5450 has an article that may be helpful too.

      In one post, someone said, “Have you tried replacing Alt+Ctrl with the ‘Windows’ key? in my kbd, saves me one step.

      I went back to the single taskbar and tried your tip, it’s great. Did a Windows Key + Spacebar and entered:

      sudo halt

      --
      Brian Masinick

      #106147
      Moderator
      Brian Masinick
        Helpful
        Up
        0
        ::

        See post
        https://www.antixforum.com/forums/topic/what-are-you-here-with-today/page/93/#post-106146

        I figured out how to add halt and reboot; you can add them or others.
        I can tell you that all the key bindings in the file work.

        --
        Brian Masinick

        #106162
        Member
        blur13
          Helpful
          Up
          0
          ::

          Thank you Brian! I was specifically looking for information on the IceWM system dialog. When running icewm on distros other than antix this is a nice, out-of-the-box, solution for an exit-gui. Antix already has one that does the same thing and looks a bit better with icons. I was just surprised that the shutdown/reboot options were disabled on the IceWM system dialog (in antiX) and was looking for information pertaining to that. Your suggestions are also helpful, of course.

          #106174
          Moderator
          Brian Masinick
            Helpful
            Up
            0
            ::

            Regarding these two specific resources:

            # Command to shutdown the system
            ShutdownCommand=”sudo halt”

            # Command to reboot the system
            RebootCommand=”sudo reboot”

            I STILL haven’t seen a direct way to map ShutdownCommand and RebootCommand to the keys,
            but it may be worth trying something like

            key Super+h ShutdownCommand
            key Super+r RebootCommand

            and see if these work too; I have not tried that, but I did try directly mapping those keys to the command.

            Feel free to experiment and let us know if you discover any other handy ways.
            Usually I just use my own alias commands because they’re only a few characters long, but I may
            get to experimenting further, and if I find anything else, I’ll share it; please do the same
            if you “beat me to it”. Best wishes!

            --
            Brian Masinick

            #106190
            Moderator
            Brian Masinick
              Helpful
              Up
              0
              ::

              I just rebooted my system and I’m running antiX 23 Beta 1 live.
              I went in and explicitly set

              key Super+p ShutdownCommand

              It did not work, so I re-edited .icewm/keys, set it to
              key Super+h sudo halt, tried it and it worked (did it with both
              Super+h and Super+p, both key sequences work, so I am not sure how
              we utilize the ShutdownCommand unless it can be mapped to an
              alias command instead.

              --
              Brian Masinick

              #106191
              Moderator
              Brian Masinick
                Helpful
                Up
                0
                ::

                Maybe using icesh with the reboot or shutdown command and binding it to a key for each would work.
                Let me try that out; as you can see, at least there are multiple different ways we can create
                keystrokes to shutdown or reboot.

                --
                Brian Masinick

                #106192
                Moderator
                Brian Masinick
                  Helpful
                  Up
                  0
                  ::

                  There are ways to use icesh, but I’ve yet to come up with a combination where I can *directly* map the ShutdownCommand or the RebootCommand to a specific keystroke. While it may still be possible, the usefulness of these commands must have to do with a mechanism to tie them directly into the system menu, which is something that the antiX distribution already does.

                  I’m the curious type, so I’m still inclined to poke around and determine if that is the answer or not.
                  Meanwhile, at least you now have multiple ways to reboot, halt, shutdown or poweroff.

                  --
                  Brian Masinick

                  #106204
                  Moderator
                  Brian Masinick
                    Helpful
                    Up
                    0
                    ::

                    I went back to the IceWM documentation, and beneath the title PROGRAMS I found
                    examples for
                    ShutdownCommand=”/bin/sh -c “/sbin/halt”
                    RebootCommand=”/bin/sh -c “/sbin/reboot”

                    This implies to me that these are commands, rather than key sequences.

                    The ~/.icewm/keys file takes a first argument of either key or switchkey, the second of which is
                    for popup menus.

                    The next field after key or switchkey is the key combination field; this accepts a combination
                    of modifiers and a key separated by a plus sign (+). Example Ctrl+Alt+Delete or Alt+1.

                    The third field is program, followed by any program options.

                    RebootCommand and ShutdownCommand, when set, will determine what IceWM will do when
                    you activate a reboot or a shutdown function; there are also commands for several
                    other functions, including starting a terminal (TerminalCommand), and of course
                    the LogoutCommand to start logout.

                    The nuance or difference is that commands directly perform their action from IceWM.
                    The keys send their sequence to the control of the system, which affects both
                    IceWM and any other activities in the system.

                    --
                    Brian Masinick

                    #106220
                    Member
                    blur13
                      Helpful
                      Up
                      0
                      ::

                      Thank you Brian for your thorough investigation. I tried the commands you provided, and some variations thereof, but the menu options to shutdown/reboot are still greyed out. Very strange. I think we’ll leave it as an academic exercise since antiX provides a nice exit-session-gui that works.

                    Viewing 9 posts - 16 through 24 (of 24 total)
                    • You must be logged in to reply to this topic.