Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotkey for Grab Focus #62

Closed
kikecalpe opened this Issue Apr 18, 2013 · 22 comments

Comments

Projects
None yet
10 participants
@kikecalpe
Copy link

kikecalpe commented Apr 18, 2013

Hotkey for Grab Focus http://guake.org/ticket/480
Reported by: Nicolas Owned by: somebody
Priority: minor Milestone: 0.5.0
Component: guake Version:
Keywords: Cc:
Description

Hi, this is a very great tool! I use it everywhere - at work, at home, in my dreams... kidding. ;-)

What I miss most is the possibility to grab the guake focus via hotkey, because guake is not in the alt+tab window switcher.

This would be a handy enchancement!

Regards, Nicolas

@smasty

This comment has been minimized.

Copy link

smasty commented May 4, 2013

Just change /usr/share/guake/guake.glide, line 8 to

<property name="skip_taskbar_hint">False</property>

And it will appear in Alt+Tab.

@gsemet

This comment has been minimized.

Copy link
Member

gsemet commented Feb 13, 2014

Why do you want this hotkey?

@gsemet gsemet added Sandbox and removed Sandbox labels Feb 13, 2014

@gsemet gsemet added this to the 0.5.0 milestone Feb 13, 2014

@gsemet gsemet added the Priority:Low label Feb 15, 2014

@steverob

This comment has been minimized.

Copy link

steverob commented May 2, 2014

This shortcut would be awesome as sometimes I would wanna go do something in another app while leaving guake on. So if I need to come back, Im having to press F12 twice to get focus. Or click with mouse which is worse. 👍

@pypingou

This comment has been minimized.

Copy link
Member

pypingou commented May 2, 2014

I did some work a while ago so that if you press F12 and the window is opened it gives focus back to the window instead of hiding it. I don't remember where that went though 😢

@steverob

This comment has been minimized.

Copy link

steverob commented May 2, 2014

Wow thats a great solution to the problem 👍 Too bad its lost :( :(

@gsemet

This comment has been minimized.

Copy link
Member

gsemet commented May 2, 2014

Indeed, that's a pretty simple change to do.

  • if window is displayed but not focussed, press on the show/hide hotkey would focus back the window instead of hiding it

@gsemet gsemet added Priority:High and removed Priority:Low labels May 2, 2014

@gsemet gsemet self-assigned this May 2, 2014

@pypingou

This comment has been minimized.

Copy link
Member

pypingou commented May 2, 2014

#214 apparently it didn't get lost :D

@gsemet

This comment has been minimized.

Copy link
Member

gsemet commented May 2, 2014

I need to rework this, because once you uncheck the "hide on focus loss", guake mess it up, you cannot hide the main window anymore,...

@pypingou

This comment has been minimized.

Copy link
Member

pypingou commented May 2, 2014

it's related to this change? that surprises me

@gsemet

This comment has been minimized.

Copy link
Member

gsemet commented May 2, 2014

no that's an old bug, I don't have hide of focus loss unchecked on my system so I never saw it

@gsemet gsemet modified the milestones: 0.5.1, 0.5.0 Jul 11, 2014

@gsemet gsemet modified the milestones: 0.5.1, 1.0.0 Sep 7, 2014

@wranvaud

This comment has been minimized.

Copy link

wranvaud commented Feb 24, 2015

Just having the option "Alt+TAB" in the preferences would be awesome

@gsemet

This comment has been minimized.

Copy link
Member

gsemet commented Feb 24, 2015

I do'nt think this will be allowed by your window manager, since it is the standard hotkey for switching app...

@wranvaud

This comment has been minimized.

Copy link

wranvaud commented Feb 24, 2015

That's exactly what I would like, switch between apps, including Guake. I've done what smasty suggested to achieve this but a checkbox in preferences would be more user friendly ;)

@MatthiasKauer

This comment has been minimized.

Copy link

MatthiasKauer commented Jun 11, 2015

@smasty Is that workaround still functional?
I find a /usr/share/guake/guake.glade (instead of .glide), but it doesn't have that option on line 8. I changed the one I found further down but it didn't seem to help (after restart of guake only). Guake is nowhere to be found in Alt-tab list. This is guake 0.7.2 on debian testing with xfce 4.12.

@smasty

This comment has been minimized.

Copy link

smasty commented Jun 11, 2015

@MatthiasKauer Yes, it should still work.
In 0.7.2, the line is 378, and yes, the file is /usr/share/guake/guake.glade, there is a typo in my original comment.

@gsemet

This comment has been minimized.

Copy link
Member

gsemet commented Jun 11, 2015

actually guake is made not to appear in alt tab and react only to our magic hotkey....

@MatthiasKauer

This comment has been minimized.

Copy link

MatthiasKauer commented Jun 12, 2015

@stibbons Yes, but if guake is not set to auto-hide I cannot get back into its window without using the mouse otherwise. Are there are other options?
@smasty Thank you!

@silgon

This comment has been minimized.

Copy link

silgon commented Feb 7, 2016

Got the same problem, whenever the gnome keyring is shown (let's say for a git pull or any ssh activity) guake gets out of focus and then it doesn't come back, so I have to click with the mouse or toggle hide/show twice. My nasty wayaround is a keybinding that does "xdotool click 1", because my mouse is usually in the position of the terminal. I'm using xubuntu 14.04, any news about this topic?

@felipeespic

This comment has been minimized.

Copy link

felipeespic commented Apr 21, 2017

No news yet? Having this feature would be really useful.

@denis-gonzo

This comment has been minimized.

Copy link
Contributor

denis-gonzo commented Apr 21, 2017

I tried to deal with it, and here what I came to:
The reason is that keybinder takes away focus every time when processes the key assigned globally. Therefore, it is impossible to know whether the guake terminal had a focus or any other window when show_hide is executed.

I have an idea around losefocus_time, something like:
if losefocus_time < event_time:
restore_focus()
else:
hide()

I apologize for the Google Translate

gsemet added a commit that referenced this issue Apr 22, 2017

@gsemet

This comment has been minimized.

Copy link
Member

gsemet commented Jan 11, 2018

Should be fixed

@felipeespic

This comment has been minimized.

Copy link

felipeespic commented Jan 6, 2019

@gsemet

Should be fixed

So what's the solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.