You are not logged in.

#1 2017-04-10 19:22:32

BazookaChicken
Member
Registered: 2017-04-10
Posts: 2

I3wm with Gnome Session

Hi
I want to load Gnome Session within I3.
If i run

startx

and then

gnome-session

it runs perfectly fine. But when I first load I3 and then start the Gnome Session it seams to start (the appearance of some applications change) but the top panel dont show up. If I start

gnome-panel

manually on the top and the bottom of the screen appear blank bars.
Does anyone know how i could get this running?

Offline

#2 2017-04-12 16:16:48

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: I3wm with Gnome Session

i have xfce4 panels with i3. starting i3 from xfce4 sessions. in the ~/.cache/sessions i have the session file with the i3 and the xfce4 entry with desktop disabled etc. in .xinit i start xfce4 . dont know gnome but maybe this helps.

Last edited by boban_dj (2017-04-12 16:17:14)

Offline

#3 2017-04-14 19:25:36

BazookaChicken
Member
Registered: 2017-04-10
Posts: 2

Re: I3wm with Gnome Session

Thanks for your replay,
but I am not quite sure what kind of file i should create in this folder because mine is empty and if I google this term I get only xfce4 specivic informations.
Maybe it has something to to with dbus registration.
I have noticed that I get this error message when I start gnome tweak tool in my i3 gnome session

WARNING : Error detecting shell
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_group_shell_extensions.py", line 275, in __init__
    raise Exception("Shell not running or DBus service not available")
Exception: Shell not running or DBus service not available

in the gnome only session this error doesnt show up.
In one tutorial for i3 plus gnome it was mentioned that it is necessary to start following script in the i3 config file:

#!/bin/bash - 
if [ -n "$DESKTOP_AUTOSTART_ID" ]; then  
echo "Registering with Gnome Session Manager via Dbus and id $DESKTOP_AUTOSTART_ID"  
dbus-send --session --print-reply=string --dest=org.gnome.SessionManager "/org/gnome/SessionManager" org.gnome.SessionManager.RegisterClient "string:i3" "string:$DESKTOP_AUTOSTART_ID"  
else  
echo "DESKTOP_AUTOSTART_ID not set."  
fi  

I did not notice any diffrence with running this but I am not sure what this script should do.
I think it would be helpfull if somone with kind of knowledege about whats going on there could it explain to me or send my a link / keywords i can google that i can inform me about this topic.

Offline

#4 2017-04-14 20:02:15

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: I3wm with Gnome Session

The AUR has a package named "i3-gnome-git" for this.

But you should be aware that this idea to run Gnome in i3 is probably not as nice as you imagine it. It looks just like using i3 by itself. The only thing you get is background machinery from Gnome, like it's monitor setup and I don't know what else. There's a lot of things from Gnome that you won't get because they are done by its window manager. You won't be able to use the hotkeys you've configured in the Gnome settings for example. The top panel and the dock is built into the Gnome window manager and you won't get those.

Last edited by Ropid (2017-04-14 20:02:40)

Offline

#5 2017-04-15 05:12:05

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: I3wm with Gnome Session

I've done the same with cinnamon, but as Ropid said already, you I didn't get as much from it as I hoped, since in cinnamon as in gnome 3, a lot of stuff is embedded in the Window Manager, that you won't get if you replace it with i3. Because of this I now use mate as my "backend" for i3, where stuff like hotkeys with nice overlay for brightness / volume etc, Powermanagement, Display Configuration etc.. work nicely because they are separate components. You also can get the panels since they are a separate instance as well (but I don't use those).

Setting this up is just a matter of changing some dconf keys to replace the window manager in the mate session, and possibly turning of panels and desktop icons if you don't want those.


My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP

Offline

#6 2017-04-15 05:38:44

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,433

Re: I3wm with Gnome Session

Setting up hotkeys etc, are not very difficult to do with i3 itself. Point of using gnome-session was to keep the same configuration in i3 if you are already using gnome, which makes migration easy. However if it doesn't work for some reason, it would be reasonable to setup things in i3 itself, and that would be much more robust and futureproof. I would also recommand to use i3 as-such to get the actual feel.
Archwiki and i3-wm's official documentation are good guides to begin with.

Offline

Board footer

Powered by FluxBB