How to hack the budgie desktop on ubuntu

Thanks @fossfreedom for this. And thank you @rbreaves from bringing back this topic from the dead.

I managed to tinker slightly into the code and made a two line change (while not being able to code at all myself), so that now raven appears on the left when the applet is on a left panel set to autohide. Even the icon arrows are in the correct direction (right by default and left when open). This was something I wanted instead of having to go all the way to the right!

For anyone interested:

in src/panel/manager.vala (search for raven_screen = area.area;)
Change:

 if (left != null & right == null) {
            if (this.is_panel_huggable(left)) {
                /* Hug left */
                raven.screen_edge = Gtk.PositionType.LEFT;
                raven_screen.x += left.intended_size;
            } else {
                /* Stick right */
                raven.screen_edge = Gtk.PositionType.RIGHT;

To

if (left != null & right == null) {
            if (this.is_panel_huggable(left)) {
                /* Hug left */
                raven.screen_edge = Gtk.PositionType.LEFT;
                raven_screen.x += left.intended_size;
            } else {
                /* Still left */
                raven.screen_edge = Gtk.PositionType.LEFT;
                raven_screen.x += left.intended_size;

I suppose it could be summarized into one, but I’m lazy.

1 Like