- This topic has 23 replies, 5 voices, and was last updated May 7-8:33 pm by blur13.
-
AuthorPosts
-
May 4, 2023 at 8:29 pm #105992Member
shloz
Is there a command I can use in the terminal or a script to invoke the IceWM system dialog? The dialog that opens when pressing ctrl+alt+del or whatever is configured as KeySysDialog…
Searched all over and can’t seem to find what the command for that would be.
Thanks
May 5, 2023 at 5:08 pm #106047ModeratorBobC
::It still works from a terminal in mine, but maybe yours is configured differently.
xdotool should be able to send the keystrokes?
May 5, 2023 at 6:13 pm #106052Membershloz
::I’m using a converted Chromebook (Dell 3180) which doesn’t have a delete key. ctrl+alt+backspace brings up the dialog but no matter what I try with xdotool, no luck. So I changed KeySysDialog to ctrl+alt+x and now xdotool works. I was wondering if there is a direct command that invokes that dialog so I can keep KeySysDialog at default and still invoke that dialog from a terminal or script… (I need it for my custom menu)
May 5, 2023 at 6:27 pm #106056Moderator
Brian Masinick
::We have a few Chromebook users here who DO run antiX; hopefully one of them with specific knowledge will provide their expertise and assistance.
--
Brian MasinickMay 5, 2023 at 6:52 pm #106062MemberRobin
::if there is a direct command that invokes that dialog so I can keep KeySysDialog at default and still invoke that dialog from a terminal or script
I have searched also for this some time ago, but it looks to me this is an icewm internal thing you can’t invoke from outside. Maybe I’m wrong, so somebody else might be able to show us how to achieve this.
Windows is like a submarine. Open a window and serious problems will start.
May 6, 2023 at 7:50 am #106098ModeratorBobC
::On a machine with Ctrl+Alt+Del keys this dialog box comes up. The menu and toolbar are disabled at that point. Did you try my xdotool suggestion?
Attachments:
May 6, 2023 at 9:07 am #106102MemberRobin
::Did you try my xdotool suggestion?
No, not by now, but it’s a great suggestion, Bob. many thanks for the hint. Personally I don’t need it right now, but it’s good to keep this in mind. The interesting question will be: to which window ID should we send the keystrokes to bring up the logoff dialog?
Windows is like a submarine. Open a window and serious problems will start.
May 6, 2023 at 11:19 am #106105Member
blur13
::Cool, I had no idea about this menu. But why are the Reboot and Shutdown options greyed out? That makes it a lot less useful.
May 6, 2023 at 1:24 pm #106113ModeratorBobC
::I am not running from USB, so didn’t try the logout, reboot and shutdown options.
I was surprised that nothing else works while its displayed.
May 6, 2023 at 1:51 pm #106115Member
blur13
May 6, 2023 at 3:44 pm #106120ModeratorBobC
::If one was installing IceWM and X-Windows on a generic core system, you wouldn’t have things like antiX’s desktop system with its logout exit program, so you would need those functionalities provided somehow or the user would need to add them or create them, or key commands by hand for each.
IceWM is available for many systems and needs to fill the gaps of window manager functions expected wherever its installed.
May 6, 2023 at 4:33 pm #106121Moderator
Brian Masinick
::If one was installing IceWM and X-Windows on a generic core system, you wouldn’t have things like antiX’s desktop system with its logout exit program, so you would need those functionalities provided somehow or the user would need to add them or create them, or key commands by hand for each.
IceWM is available for many systems and needs to fill the gaps of window manager functions expected wherever its installed.
There are “many ways to skin a cat”, as the expression goes.
I’ve had the practice of using alias commands since before I used Linux – on my UNIX workstation, and before that, I had VAX/VMS command definitions, and when I used both VMS and UNIX systems, I created common shortcuts, whether keys bound to definitions or short abbreviations as defined on both systems to perform similar tasks.With that background, here are two of the many convenience aliases I currently have; these are for rebooting and powering off my system:
alias pow='sudo poweroff' alias rb='sudo reboot'--
Brian MasinickMay 6, 2023 at 7:26 pm #106126Member
blur13
::I’ve got icewm installed on a MX linux system and there all the entries are available, including shutdown and reboot. I looked into the preference file in antix and the shutdown/reboot commands are defined as follow:
# Command to shutdown the system
ShutdownCommand=”sudo halt”# Command to reboot the system
RebootCommand=”sudo reboot”I dont see why these cant be run from the system dialog.
May 6, 2023 at 8:19 pm #106133Moderator
Brian Masinick
::I’m not sure what, if anything, those commands are “connected to”, but I can tell you this, if you bind an IceWM key to either or both of these commands then they will work as expected, whether another mechanism is present or not.
If you need specifics let me know and I’ll provide a couple of specifics, including the names of the files and resources; looks like you already found the command, just not what “invokes it”.
I’m on another system right now, or I’d tell you now.
--
Brian MasinickMay 6, 2023 at 10:04 pm #106143Moderator
Brian Masinick
::I rebooted to antiX 22 so I could provide you with a direct answer.
In the ~/.icewm/keys file, you can set assign specific keys to particular functions.
For instance, I have these keys set at the moment.
`more keys
key “Ctrl+Space” app-select
key “Ctrl+Alt+b” desktop-defaults-run -b
key “Alt+g” firefox
key Alt+1 /bin/sh -c “wmctrl -s 0
key Alt+2 /bin/sh -c “wmctrl -s 1
key Alt+3 /bin/sh -c “wmctrl -s 2
key Alt+4 /bin/sh -c “wmctrl -s 3So when I press Alt G I open Firefox, I get Firefox. When I press Alt 1, 2, 3, or 4 I switch between my four workspaces. Ctrl space opens app-select.
If you want to run specific commands, such as reboot or halt, associate them with keys that are not already defined.
Note, however, that you can easily halt or reboot using the current antiX Menu with IceWM – Menu –> Logout, which brings up the dialog allowing you to
Lock Screen, Logout, Restart Session, Reboot, Suspend, or Shutdown. I hope that helps.--
Brian Masinick -
AuthorPosts
- You must be logged in to reply to this topic.
