Comments (7)
It's a good idea. Take a look at PR #8 for one way to do it. The person who submitted the PR had luck switching between Chromium apps by filtering on the window title. Does that method work for your needs too?
from jumpapp.
Thanks for the quick reply.
The tips in that pull request are great, filtering by window title works almost flawlessly! The only problem is that if I launch e.g. Gmail with jumpapp, it will not launch the exact same instance of chromium that is in the app sitting in my dock. So if I then click the dock app to minimize Gmail, it will instead launch a new window. However, it does work the other way around, if I launch Gmail from the dock, using jumpapp will then switch to that window instead of launching a new window.
And thank you so much for making jumpapp! If it didn't exist, I would probably still be stuck on Ubuntu because Unity is the only dock with keyboard shortcuts. Now I can try out Arch without changing my workflow, wohooo! =)
from jumpapp.
To add to the above: When webapps are starting with the jumpapp -t
shortcut, they are grouped under the browser window rather than getting their own icon in the Alt+Tab application switcher (naturally, since they launch a browser window rather than the webapp).
from jumpapp.
So it sounds like if you could get jumpapp to emulate however the dock app opens Gmail, it should all work. It's probably very doable.
I don't use Chromium apps personally, so I probably won't look into this in the near future, but pull requests are more than welcome. A pull request updating the README explaining how to use jumpapp with Chromium apps (using -t
or something like that) would be more than welcome too.
Feel free to leave the issue open as I imagine other people are interested in this functionality as well.
from jumpapp.
I would be in need of such an enhancement too, for the same reason. At the moment I'm using
wmctrl -xa crx_pjkljhegncpnkpknbcohdijeoejaedia || chromium-browser --profile-directory=Default --app-id=pjkljhegncpnkpknbcohdijeoejaedia
Which works fine.If the app isn't running, jumpapp -c won't load it but will just focus on an another chromium app window
If the app is running, jumpapp -c won't load it but will just focus on an another chromium app window
if there's a non-app chromium window runnning:
Error: found running process for 'chromium-browser', but found no window to jump to
From xprop on the app window
WM_CLASS(STRING) = "crx_pjkljhegncpnkpknbcohdijeoejaedia", "Chromium-browser"
from jumpapp.
I ran into this as well, the problem would be solved by allowing -c
to match on the full class name including instance name that comes back from wmctrl. If no .
is in the -c
argument, it can match on only the class (the second half of the instance.class
string).
In other words, jumpapp -c crx_pjkljhegncpnkpknbcohdijeoejaedia.Chromium-browser chromium-browser --profile-directory=Default --app-id=pjkljhegncpnkpknbcohdijeoejaedia
should work if this was implemented.
Would you be open to a PR for this?
from jumpapp.
the problem would be solved by allowing -c to match on the full class name including instance name that comes back from wmctrl
Nice, thank you for figuring this out.
How likely do you think such a behavior change could trip up someone using jumpapp -c
today? I think it's OK to slightly mess up a few users in exchange for the benefits pointed out on this thread. Especially because we could probably introduce a new option if it turns out such a behvaior change messes anyone's workflow up.
Would you be open to a PR for this?
I'm kind of an absentee maintainer, but chances are I will eventually check-in after a PR is submitted, and I can't think of any reason why I wouldn't merge it, should someone want to put the PR together.
from jumpapp.
Related Issues (20)
- Announcement: Looking for maintainers
- Super button with xbindkeys? HOT 7
- restore minimized client in Awesome
- There seems to be no way to match windows using an exact match HOT 4
- separate multiple terminal instances HOT 1
- change behaviour? HOT 3
- Works differently from terminal HOT 1
- unable to launcher a program if the program is in the process list
- the man page should say Jumps to (focus) the "last" open window for an application HOT 3
- Need to install xdotool on ubuntu 18.04 HOT 1
- Add a --no-launch flag (feature request) HOT 3
- Activity
- wmctrl only reads _NET_WM_NAME
- Wayland compability HOT 2
- -p not working
- Unable to report version HOT 1
- Move app to current desktop and then focus?
- Move to cursor
- found running process for 'masterpdfeditor5', but found no window to jump to
- the ww alternative for kde plasma has now its own github project page https://github.com/academo/ww-run-raise HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jumpapp.