linux:terminal-focus
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| linux:terminal-focus [2026/04/27 13:41] – created Wuff | linux:terminal-focus [2026/04/27 13:55] (current) – Wuff | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Terminal focus ====== | ====== Terminal focus ====== | ||
| - | On Linux mint 22.3 the terminal does not get focus when opened via taskbar button. | + | On Linux mint 22.3 the terminal does not get focus when opened via taskbar button |
| Workaround as described here: https:// | Workaround as described here: https:// | ||
| - | System Settings | + | settings |
| - | Possibly also "Bring windows which require attention to the current workspace" | + | |
| + | <code bash> | ||
| + | |||
| + | Search for the initialization block. It looks like this: | ||
| + | |||
| + | <code javascript> | ||
| + | Mainloop.timeout_add_seconds(4, | ||
| + | log(" | ||
| + | global.display.connect(' | ||
| + | global.display.connect(' | ||
| + | |||
| + | return GLib.SOURCE_REMOVE; | ||
| + | }) | ||
| + | </ | ||
| + | Add this line inside that block: | ||
| + | <code javascript> | ||
| + | global.display.connect(' | ||
| + | </ | ||
| + | The result should look like this: | ||
| + | <code javascript> | ||
| + | Mainloop.timeout_add_seconds(4, | ||
| + | log(" | ||
| + | global.display.connect(' | ||
| + | global.display.connect(' | ||
| + | // START FIX | ||
| + | global.display.connect(' | ||
| + | // END FIX | ||
| + | |||
| + | return GLib.SOURCE_REMOVE; | ||
| + | }) | ||
| + | </ | ||
| + | Save and Exit | ||
| + | |||
| + | Then add to whitelist: | ||
| + | Check settings: | ||
| + | < | ||
| + | < | ||
| + | Then add gnome terminal or other to the list. Check with xprop if unsure what the wm classes would be: | ||
| + | < | ||
| + | </ | ||
| + | May need cinnamon restart. | ||
linux/terminal-focus.1777293694.txt.gz · Last modified: by Wuff