repsac-by / gnome-shell-extension-quake-mode Goto Github PK
View Code? Open in Web Editor NEWIt's a GNOME Shell extension adds support quake-mode for any application
License: MIT License
It's a GNOME Shell extension adds support quake-mode for any application
License: MIT License
Thanks for this extension !!
It works after a restart.
Is it possible to publish it on extensions.gnome.org so it benefit from semi-automatic upgrades ?
Would be amazing, if I could set 'CapsLock' key as a shortcut for quake-mode. It's a key I never use on my keyboard, but unfortunately, it's impossible to set as a shortcut.
First of all, thank you for working on this extension. Recently I switched to kitty terminal and it is not working properly with the extension. Extension seems to handle other terminals fine.
Everything works fine but as soon as I quit the terminal it does not open properly again unless I disable and re-enable the extension.
Hi,
Thanks a lot for the extension, it's really great and much more convenient that old "drop-down terminal" I used before :)
I would love if the extension allowed me to "detach" from the quake mode. Currently if I move the window created with the extension and use the toggle shortcut, it will always close the window. After using this "detach", pressing the toggle would only create an other window.
I often find myself scrathing a few command in the drop-down terminal, realize that these commands are more important than I initially realised and that I need them in a "real" terminal other than this "scratch" one.
I can mimic the behaviour I want with the original gnome-terminal: open a tab, right-click on the first tab and "Detach".
I hope you understand my use-case :), sorry if it's a little bit confusing.
I think the "Detach" can be both a shortcut and available trough right-clicking the icon in the tray.
I'm not begging for this feature and will probably try to implement it myself but I'm not familiar with extension development.
Thanks a lot !
With automatic screen rotation in gnome, quake-mode set to 100% width will correctly reduce its width going from landscape to portrait but won't correctly increase its width going from portrait to landscape.
Firstly, great extension!
I just wondered if you would consider adding an option to have an application instance per workspace? I think it would be handy to have a separate terminal open for each workspace. Unfortunately the terminal I use (Alacritty) doesn't support tabs.
Would it be possible to add GNOME 40 to the metadata.json
file?
Extension appears to work fine in GNOME 40, but can only be enabled if version validation is disabled
Thanks for the great extension btw, life-saver with tilix
I loved your extension best one out there, i recently updated to fedora 35 would be cool if you can release with support to Gnome 41
I was playing with configuration and added second accelerator with its shorcut key. Now I can't remove it via settings GUI. Can you add some kind of clear button?
It's me again, sorry for the bad news :).
Sometimes the tilix keep get stuck for me in the quake mode. Hitting the configured button to toggle it (F12 for me) does not have any effect. Not sure if anyone else is observing the same.
I'd like to see the text (percentage) of the Battery Bar rendered centrally over the Bar. Currently, the text gets "pushed" to the right when the Bar fills (loading).
Reason: Now a wide enough bar is required, but I like mine rather short. Also with this change the text can be centered on the Bar.
Problem: I get this behavior was chosen to avoid the problem of contrast of the text and the different colors charging, discharging, background, etc. of the level. But I think by choosing a grey color for the text should work, but comments are highly welcome as I don't know anything about colors or design.
First of all, great extension, I like it very much and using it without any significant problem! But here is one little problem that annoys me:
I use simply-workspaces as a workspace indicator. It normally shows the workspace number if it has windows open, like this:
But if I use quake-mode, it thinks every workspace has a window in it and shows all of them:
Is there way to prevent this? I'm already using "Hide from Overview" but that does not help.
I made two fixes in the GitLab fork which might be interesting:
Fixed Tweener in coming Gnome 3.37
https://gitlab.com/JasMich.de/gnome-shell-extension-quake-mode/-/tree/gnome-3-37
and
Fixed instillation instructions
https://gitlab.com/JasMich.de/gnome-shell-extension-quake-mode/-/tree/readme
After running gnome-shell-extension-prefs [email protected]
I get an error: "There was an error loading the preferences dialog for quake-mode".
Error: Argument 'icon' (type interface) may not be null
Stack trace:
buildRow@/home/Timur/.local/share/gnome-shell/extensions/[email protected]/prefs.js:134:18
_init/<@/home/Timur/.local/share/gnome-shell/extensions/[email protected]/prefs.js:125:30
_init@/home/Timur/.local/share/gnome-shell/extensions/[email protected]/prefs.js:123:3
_init@/home/Timur/.local/share/gnome-shell/extensions/[email protected]/prefs.js:207:20
buildPrefsWidget@/home/Timur/.local/share/gnome-shell/extensions/[email protected]/prefs.js:213:17
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:91:22
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:243:17
wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22
main@resource:///org/gnome/shell/extensionPrefs/main.js:397:5
@<main>:1:43
Tried it with CRT https://github.com/Swordfish90/cool-retro-term
At first attempt, it works. Then i found a situation when terminal window does not show up. How to reproduce:
Reason: when you run CRT for the first time, it starts un-maximized, in a window. Extension resizes it and everything is OK. When you launch CRT next time, it starts maximized (try to run it manually without extension). For some reason, extension breaks.
If you run CRT manually, un-maximize it and exit, then extension is able to run it and display window again.
Right now the extension opens the drop down window in the configured monitor.
It would be great if the chosen screen can be automatically selected by the active window or mouse position (if my focused window is in monitor 1, then open the drop down there).
Hello ๐๐ผ
Can you publish the latest version, ie. master
/HEAD
containing the Gnome 40 compatibility fixes on https://extensions.gnome.org/?
https://extensions.gnome.org/extension/1411/quake-mode/ is still showing the previous versions and people using Gnome 40 for the last 3 weeks can't access your extension (which is great by the way) anymore.
Hi,
With the release of Fedora 38, Gnome 44 is also available.
Can someone please update this extensions to support Gnome 44?
Thank you for your efforts :)
Thanks this extension!
I have this weird behavior: when I press the shortcut in another workspace, it brings me back to the 1st workspace before displaying the window. Is this intentional?
Because I often switch between 1 and 2 monitors, sometimes the extension gets confused regarding which monitor should be used.
Could we imagine the possibility to bind a shortcut that would move the quake window to another workspace?
Tilix and most quake/visor capable terminals support this feature to follow the mouse when opening the terminal, in the display where the mouse pointer is currently at.
I would love for this extension to be able to do the same, so in multi-monitor situations is becomes quite the useful little tool that I'm familiar with, but allowing me more control over which terminal application to use. Tilix is what I use now because it's the most reliable in my experience because the same command to open the terminal also can start it and toggle it's visibility.
Trying to use gnome-shell-extension-quake-mode
with Emacs, with an emacsclient.desktop
file that does Exec=emacsclient -c
, the Emacsclient frame/window appears on the first invocation (though it seems to default to the Emacs-specified window size rather than what's set in gnome-shell-extension-quake-mode
), but then trying to minimise it with another press of the shortcut key, nothing happens for a while, and then a pop-up message appears "Quake-mode launch 'emacsclient.desktop' timeout". After that I can sometimes get it to minimise with another press, but frequently the "timeout" message appears instead.
I'm guessing this is something about how emacsclient -c
creates the window, and so possible beyond the scope of gnome-shell-extension-quake-mode
, but I thought I'd report this just in case there is some possible resolution or workaround.
If it is on the possibility for a gnome extension, would be great to run the app but doesn't show it on dock/taskbar. This is the default behavior when using Guake.
Right now I'm reproducing this behavior with
Exec=sh -c "~/.local/bin/alacritty & sleep 1;/usr/bin/wmctrl -x -r Alacritty.Alacritty -b add,skip_taskbar"
But this not always work (couldn't find a pattern, when exactly it doesn't).
Tilix (1.9.3-4) on gnome 3.38.2 not working in quake mode when launched from $HOME/.local/share/applications. Works ok when launched from /usr/share/applications.
For native Wayland applications running in this extension, is there a way to keep them "on top" even when they lose focus? I could not find such an option. (But my understanding is that an extension like quake-mode is really the only viable way to handle this sort of window interaction under GNOME Shell Wayland.)
[In connection with Equake issue: potential workarounds for usage on GNOME Shell (Wayland) ]
Hey there, let me say that quake-mode is amazing and has become a requirement in my setup. I've been running into a constant issue to prevent this though...it is very common that I get a "quake-mode timeout" notification that also blurs all apps when using this extension. I'm using gnome. Is there something in the code I can change or look at to prevent this from occuring? I've tried switching to Wayland (where it works great) but guake's dropdown terminal doesn't work properly in there :( -- thanks in advanced!
I'm using the extension to run terminal.
I do not want to see the terminal window with list of opened apps.
Is there a solution for that ?
Hi!
Is it possible to choose where the quake-application will appear?
Currently it shows on the top half of the screen. I'd like to have it on the bottom.
Have you considered such feature? :)
Great extension to fix the Wayland support for Tilix. The builtin Tilix quake mode however hides the app from the Gnome dock and dash. Any possibilities to do it with this extension as well?
Hi,
Great extension, been looking for a drop-down window for emacs (not in terminal). Is it possible to add the support for multiple applications? Right now I am using emacs on F1, it would be great if I can also bind Firefox on F12, Mathematica on F9 and Mendeley Desktop on F8 :-)
again thanks for the extension.
When using e.g. alacritty with light theme and decorations: none
in configuration it is very hard to distinguish terminal window and other app with light background.
Can you please add ability to show borders around? Preferably with ability to select it's color.
Changing the position of the terminal to the x y position. Or some default settings;
Top left - bottom - right
Bottom left - center - right etc.
After I manually tweaked metadata.json
to enable extension on version 43 of Gnome, I can use my toggle accelerator to open tilix, but it doesn't slide up after second press of accelerator.
Would provide more info, but no observable errors are thrown in Gnome's Looking Glass, and I just don't know where to look for logs.
quake-mode
already has the options to vertically align the window to "Top" or "Bottom". I'd like to have an option to do "middle"/"center" vertical alignment too. This helps to click windows title bars and - I think - will look better, though this might be opinionated.
Fedora 35 with Gnome 41 is out
If it is on the possibility for a gnome extension, would be great to just set quake-mode to run a command. Sometimes there is the need to run the terminal with special parameters, or running a terminal that doesn't have a registered .desktop file.
Running Dash to Dock on GNOME Shell 3.36.9 to run fullscreen Alacritty. If it is possible for the extension, would be nice to hide the app from the Dock (as Guake behavior) regardless of window visibility state.
If we could just run a command instead of only an App/.desktop would make things easier. xdotool windowunmap $(wmctrl -l -p | grep $(pgrep alacritty) | awk '{print $1}')
unmap a window, and this hide it from dock/taskbar. On .desktop:
Exec=sh -c '~/.local/bin/alacritty & sleep 1;/usr/bin/wmctrl -x -r Alacritty.Alacritty -b add,skip_taskbar'
Can someone please add 43 as supported version?
Not sure if any other changes are required because I failed to test it in a virtual machine (some node errs that I don't understand).
According to this user's experience, it works, but it might need more testing: #56
Update or no update, thanks for your work ๐
Pressing the shortcurt after unlocking the screen brings up a new instance of the application instead of focusing the initial one.
Gnome Version: 3.28.0
Hi,
I love the extension, I've used it as part of my day to day workflow. I even modified a version to create a sidebar.
Gnome 3.38 breaks the extension due to missing JS module tweener.
In the gnome extensions manager I get the following error for the extension:
Error: No JS module 'tweener' found in search path
And some other shell extensions (like pomodoro for example) show the same error.
Is there a quick fix or workaround for this issue?
(Tested on 2 Debian sid PCs)
Is there a timeline when support for Gnome 42 (now available e.g. in ubuntu 22.04 beta) will come?
The iusse appears after upgrading to Gnome 3.30 (running wayland), using the extension with tilix. The extension appears to run, but when pressing the accelerator key or clicking the icon, there appears to be no effect. However, going to the activities overview or alt-tabbing reveals that the extension did create a tilix window, but that window is invisible/hidden. The invisible window also appears to have Tilix's default launch geometry rather than the geometry configured in the extension. Let me know if I can provide any more info to help troubleshoot.
Also, while I'm here, I wanted to say "thank you" for your very helpful extension. I've been using it happily on Gnome-shell 3.28 for a few months!
If you name a tab in Tilix in quake mode then it always drops down on the same workspace.
In case you are on other workspace and call the quake mode of tilix it will first change workspace and then drop down.
This is the bug report I had filed for gnome-shell:
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2830
This happens in Wayland whenever the terminal is in full-screen mode.
Somehow, having a terminal in full-screen using this extension negates this bugfix:
https://gitlab.gnome.org/GNOME/gnome-shell/-/commit/dec0baa147003c534a08f5b9172d750ad8030604
When trying to open Settings of the extension on PopOS 22.04 running wayland one hits
Gjs-Message: 10:24:46.340: JS LOG: Ignored exception from dbus method: Gio.IOErrorEnum: GDBus.Error:org.gnome.gjs.JSError.Error: Already showing a prefs dialog
seems similar to GSConnect/gnome-shell-extension-gsconnect#1213
The configuration window show this error.
TypeError: Gdk.Display.get_default().get_monitors is not a function
Stack trace:
_init@/home/solid/.local/share/gnome-shell/extensions/[email protected]/prefs.js:78:54
_init@/home/solid/.local/share/gnome-shell/extensions/[email protected]/prefs.js:220:20
buildPrefsWidget@/home/solid/.local/share/gnome-shell/extensions/[email protected]/prefs.js:227:17
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
When used Fn (F12, F10 or any F key) the related Shift+Fn key is captured by quake-mode but do nothing. For example, when used with Gnome Terminal, Shift+F10 is used to show the context menu near the pointer (usually like mouse right-clic). If F10 is used to pop-up Gnome Terminal then Shift+F10 event never reach the app.
This is particular inconvenient when using F12 and byobu, since Shift+F12 toggle on/off Byobu's keybindings.
Tried with several virtual terminals and Fn keys. Also on Pop!_OS 22.04 and Ubuntu 20.04. Could reproduce the issue on all the cases.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.