- This topic has 23 replies, 5 voices, and was last updated May 7-8:33 pm by blur13.
-
AuthorPosts
-
May 6, 2023 at 10:19 pm #106145Moderator
Brian Masinick
::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 MasinickMay 6, 2023 at 10:40 pm #106147Moderator
Brian Masinick
::See post
https://www.antixforum.com/forums/topic/what-are-you-here-with-today/page/93/#post-106146I 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 MasinickMay 7, 2023 at 10:56 am #106162Member
blur13
::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.
May 7, 2023 at 2:55 pm #106174Moderator
Brian Masinick
::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 likekey Super+h ShutdownCommand
key Super+r RebootCommandand 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 MasinickMay 7, 2023 at 4:17 pm #106190Moderator
Brian Masinick
::I just rebooted my system and I’m running antiX 23 Beta 1 live.
I went in and explicitly setkey 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 MasinickMay 7, 2023 at 4:23 pm #106191Moderator
Brian Masinick
::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 MasinickMay 7, 2023 at 4:50 pm #106192Moderator
Brian Masinick
::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 MasinickMay 7, 2023 at 6:51 pm #106204Moderator
Brian Masinick
::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 MasinickMay 7, 2023 at 8:33 pm #106220Member
blur13
::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.
-
AuthorPosts
- You must be logged in to reply to this topic.