You are not logged in.
Hi, I'm using i3, dmenu and I want to launch chrome shortcut ".Desktop" in dmenu, is this possible? Can I make it auto launch when booting on specific workspace?
Last edited by vietphi (2017-02-07 05:29:33)
Offline
You can use "i3-dmenu-desktop", included with i3 to launch applications that have desktop entries.
You can autolaunch applications in i3, by specifying in i3/config, and you can specify workspace for any application
exec --no-startup-id chromium
assign [class="chromium"] 2Arch is home!
https://github.com/Docbroke
Offline
You can use "i3-dmenu-desktop", included with i3 to launch applications that have desktop entries.
You can autolaunch applications in i3, by specifying in i3/config, and you can specify workspace for any applicationexec --no-startup-id chromium assign [class="chromium"] 2
This will start chromium instead of specific web app I want.
Offline
that was an example, replace chromium with id of application you want to start
Arch is home!
https://github.com/Docbroke
Offline
that was an example, replace chromium with id of application you want to start
How can I find ID of the web apps? it is inside chrome
Offline
AFAIK, chrome webapps can be installed on desktop, as i3 has no desktop, you shall still find webapp in Desktop folder in your home. Have you looked there?
Arch is home!
https://github.com/Docbroke
Offline
AFAIK, chrome webapps can be installed on desktop, as i3 has no desktop, you shall still find webapp in Desktop folder in your home. Have you looked there?
I known it but what is the class? it is just a long .Desktop app (chrome-lbfehkoinhhcknnbdgnnmjhiladcgbol-Default.Desktop) and I can't find this in dmenu
Offline
You shall find executable command "Exec=?" in that .Desktop file, (assuming it is regular desktop file), run it and use xprop to find out window class.
Another options is to copy that .Desktop file into /usr/share/applications, that will make this application listed in i3-dmenu-desktop.
EDIT: please post the content of that .Desktop file here
Last edited by Docbroke (2017-02-06 09:15:54)
Arch is home!
https://github.com/Docbroke
Offline
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Terminal=false
Type=Application
Name=Evernote Web
Exec=/opt/google/chrome/google-chrome --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol
Icon=chrome-lbfehkoinhhcknnbdgnnmjhiladcgbol-Default
StartupWMClass=crx_lbfehkoinhhcknnbdgnnmjhiladcgbolThe class is "crx_lbfe..."
Offline
Is it solved then? Now you have both executable command and wm class
Arch is home!
https://github.com/Docbroke
Offline
Is it solved then? Now you have both executable command and wm class
I can finally start it on boot but the xprop class is Google-chrome so it will assign all the chrome windows to the wokspace instead of specific Windows with Apps ID,
Last edited by vietphi (2017-02-06 11:33:19)
Offline
you can add "--class=webapp" flag in your exec=? line, that would start webapp with xprop class of webapp, works with chromium, so it should work with google-chrom hopefully.
Arch is home!
https://github.com/Docbroke
Offline
you can add "--class=webapp" flag in your exec=? line, that would start webapp with xprop class of webapp, works with chromium, so it should work with google-chrom hopefully.
Well, the result is both main chrome windows and the webapp start in the Workspace I set
Offline
have you removed Google-chrom class assignment?, as class=webapps is specifically used only for webapps it should not affect main google chrom window
Arch is home!
https://github.com/Docbroke
Offline
have you removed Google-chrom class assignment?, as class=webapps is specifically used only for webapps it should not affect main google chrom window
this is my i3 config
exec google-chrome-stable
exec google-chrome-stable --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol --class=webapp
assign [class="webapp"] $ws3
anything wrong?
Offline
My guess here is as you have both webapp and google-chrome main window starting at boot, your worksapce that is focused for webapp is used also used for google-chrome. To avoid that you can try assigning class=Google-chrome to some other workspace.
Arch is home!
https://github.com/Docbroke
Offline
My guess here is as you have both webapp and google-chrome main window starting at boot, your worksapce that is focused for webapp is used also used for google-chrome. To avoid that you can try assigning class=Google-chrome to some other workspace.
it freezes the webapp
exec google-chrome-stable
assign [class="Google-chrome"] $ws1
exec google-chrome-stable --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol --class=webapp
assign [class="webapp"] $ws3Offline
I tried to start two different instances of chromium with two different window ids, but once you create one instance of chromium all other instances start with the same window-id. It looks like this is not going to work.
Arch is home!
https://github.com/Docbroke
Offline
This solved the problem:
exec google-chrome-stable
assign [class="Google-chrome" instance="google-chrome"] $ws1
exec google-chrome-stable --profile-directory=Default --app-id=lbfehkoinhhcknnbdgnnmjhiladcgbol
assign [class="Google-chrome" instance="crx_lbfehkoinhhcknnbdgnnmjhiladcgbol"] $ws3 Offline