Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 500  / 2 Years ago, tue, february 8, 2022, 11:37:42

Recently I wanted to test a keyboard shortcut, which is supposed to kill X server (hence very useful when you have a crash). That shortcut is not dependent on any particular window manager (like lxde, unity, kwin etc). So, it must work, even when you have unresponsive (to keybings) window manager (as opposed to Alt+Ctrl+Backspace which kills the session, and bring you a login screen).



That's why I interested to make my window manager(unity) unresponsive. Is past, it was very easy. Opening a terminal, typing unity --replace and then force close the terminal, was the simplest procedure. But unfortunately, This is not true in Ubuntu 12.04, (they make it very robust) Because whenever I kill the terminal, Unity automagically restart itself.



I also tried compiz --replace but wasn't successful.



My question is: How can I make Unity unresponsive to any keyboard shortcuts (of it's keybindings) while I am in Unity session, so that I can test the global shortcut.


More From » unity

 Answers
3

The answer from Eliah Kagan was great, But I think, I can answer now from my experience in less technical words.



There are two ways (as revealed to me) to test that keyboard shortcut:




  • Open a terminal and type unity or unity --replace (both are same) and hit Enter



    If you want a crash like look of Unity




    • While you are on the terminal, Press Ctrl + C, the unity will be stopped immediately.

    • Then try your global shortcut.



    If you want a decent look of Unity (Freeze)




    • While you are on the terminal, Press Ctrl + Z (as suggested by @Eliah Kagan), the unity will be suspended immediately. Everything will be freezed, except the cursor.

    • Then try your global shortcut.







keyboard shortcut to kill X:



That particular keyboard shortcut was : Alt + PrtSc + K . You will need this, if you wanted to try.






Thanks to @Mahesh, for revealing that shortcut


[#37377] Thursday, February 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
amacal

Total Points: 457
Total Questions: 102
Total Answers: 116

Location: Thailand
Member since Thu, Apr 22, 2021
3 Years ago
;