sc-controller icon indicating copy to clipboard operation
sc-controller copied to clipboard

Close Window menu

Open bell07 opened this issue 3 years ago • 1 comments

Some emulators does not have a way for exit in full-screen. Therefore the sc-controller menu is useful to close such applications. The current "kill current window" with kill -9should be the last way, if the application is really not responding. I created a new menu for closing screen, with different killing ways

  • Send ALT+F4 to close window
  • kill
  • kill -9
[{
    "action": "button(Keys.KEY_LEFTALT) and button(Keys.KEY_F4)", 
    "icon": "system/turn-off", 
    "id": "item1", 
    "name": "Close window"
}, {
    "action": "name('Send Kill signal', shell('kill $(xdotool getwindowfocus getwindowpid)'))", 
    "icon": "weapons/pistol-gun", 
    "id": "item3", 
    "name": "Send Kill signal"
}, {
    "action": "shell('kill -9 $(xdotool getwindowfocus getwindowpid)')", 
    "icon": "weapons/grenade", 
    "id": "item4", 
    "name": "Force kill"
}]

bell07 avatar Oct 02 '22 07:10 bell07

Good idea, sounds like something that could be toggle-able in Settings->Menu.

kozec avatar Oct 02 '22 20:10 kozec