Question about LM 14 w/ Cinnamon (mintmenu)

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dondizzurp

Question about LM 14 w/ Cinnamon (mintmenu)

Post by dondizzurp »

1. How can I change the "log out" button in the menu to a "sleep/suspend" button?

EDIT:

i went into /usr/share/cinnamon/applets/menu@cinnamon.org

opened the .js file and searched for "logout" and found this section:

//Suspend button
let button = new SystemButton(this, "gnome-Suspend", launchers.length + 3);
button.actor.connect('enter-event', Lang.bind(this, function() {
this.selectedAppTitle.set_text(_("Suspend"));
this.selectedAppDescription.set_text(_("Suspend the computer"));
}));
button.actor.connect('leave-event', Lang.bind(this, function() {
this.selectedAppTitle.set_text("");
this.selectedAppDescription.set_text("");
}));
button.actor.connect('clicked', Lang.bind(this, function() {
this.menu.close();
this._session.SuspendRemote(0);
}));

this.leftBox.add_actor(button.actor, { y_align: St.Align.END, y_fill: false });


i changed the section name, button name, button description from Logout to Suspend which all work perfectly after rebooting cinnamon (everywhere you see Suspend, it was originally Logout)
however, when i open the menu and click on the newly modified suspend button, nothing happens

the line:
this._session.SuspendRemote(0);

was originally:
this._session.LogoutRemote(0);


im assuming that code is incorrect. what would be the correct code to suspend?

heres a screen of the button in action if this helps anyone understand what im trying to do lol
Image


2. Are transparent window title bars possible? I found a transparent metacity theme but it didn't work. Are beryl or compiz compatible? nevermind this question

Any help is greatly appreciated. Thanks!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 8 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
dondizzurp

Re: A few questions about LM 14 w/ Cinnamon

Post by dondizzurp »

this would probably be better in the cinnamon section.
could a mod please move it?
Orbmiser

Re: A few questions about LM 14 w/ Cinnamon

Post by Orbmiser »

That would be a hack and difficult. Easier would be to add a applet to task bar.
Shutdown Applet 1.4
http://cinnamon-spices.linuxmint.com/applets/view/49
Download the zip file, unzip it and copy the folder to .local -> share->cinnamon->applets folder
Might have to restart Cinnamon.

Then just add it to the taskbar. Enable panel edit to move it where you want.
Left or right side. Works for Me!
.
abnvolk

Re: A few questions about LM 14 w/ Cinnamon

Post by abnvolk »

Cinnamon is NOT compatible with Compiz, so you may wanna try MATE if you want Compiz. I don't think Muffin, the WM, can use transparent theme, as Mutter of GNOME Shell doesn't.
dondizzurp

Re: A few questions about LM 14 w/ Cinnamon

Post by dondizzurp »

Orbmiser wrote:That would be a hack and difficult. Easier would be to add a applet to task bar.
Shutdown Applet 1.4
http://cinnamon-spices.linuxmint.com/applets/view/49
Download the zip file, unzip it and copy the folder to .local -> share->cinnamon->applets folder
Might have to restart Cinnamon.

Then just add it to the taskbar. Enable panel edit to move it where you want.
Left or right side. Works for Me!
.
so, whats the hard way? lol i dont mind tweaking to learn and figure it out but im not sure what directory the menu-related files are stored on the system
abnvolk wrote:Cinnamon is NOT compatible with Compiz, so you may wanna try MATE if you want Compiz. I don't think Muffin, the WM, can use transparent theme, as Mutter of GNOME Shell doesn't.
thanks. i can survive without it. im sure cinnamon will have some sort of alternate as it matures.
herbie643
Level 3
Level 3
Posts: 190
Joined: Tue Oct 19, 2010 9:16 pm

Re: A few questions about LM 14 w/ Cinnamon

Post by herbie643 »

Add the shutdown applet to the panel.
dondizzurp

Re: A few questions about LM 14 w/ Cinnamon

Post by dondizzurp »

updated OP instead
Locked

Return to “Cinnamon”