Question about LM 14 w/ Cinnamon (mintmenu)

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon

Question about LM 14 w/ Cinnamon (mintmenu)

Postby dondizzurp on Tue Dec 11, 2012 7:52 pm

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 dondizzurp on Sat Feb 09, 2013 3:09 pm, edited 7 times in total.
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Linux Mint is funded by ads and donations.
 

Re: A few questions about LM 14 w/ Cinnamon

Postby dondizzurp on Thu Dec 13, 2012 2:57 am

this would probably be better in the cinnamon section.
could a mod please move it?
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Re: A few questions about LM 14 w/ Cinnamon

Postby Orbmiser on Thu Dec 13, 2012 3:05 am

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!
.
User avatar
Orbmiser
Level 7
Level 7
 
Posts: 1514
Joined: Thu Oct 18, 2012 5:16 pm
Location: Portland,Oregon

Re: A few questions about LM 14 w/ Cinnamon

Postby abnvolk on Thu Dec 13, 2012 8:33 am

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.
abnvolk
Level 4
Level 4
 
Posts: 495
Joined: Thu May 10, 2012 11:05 am

Re: A few questions about LM 14 w/ Cinnamon

Postby dondizzurp on Thu Dec 13, 2012 5:29 pm

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.
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Re: A few questions about LM 14 w/ Cinnamon

Postby herbie643 on Fri Dec 21, 2012 10:35 pm

Add the shutdown applet to the panel.
herbie643
Level 3
Level 3
 
Posts: 125
Joined: Tue Oct 19, 2010 9:16 pm

Re: A few questions about LM 14 w/ Cinnamon

Postby dondizzurp on Fri Feb 08, 2013 6:29 pm

updated OP instead
dondizzurp
Level 1
Level 1
 
Posts: 11
Joined: Thu Dec 06, 2012 11:56 pm

Linux Mint is funded by ads and donations.
 

Return to Cinnamon

Who is online

Users browsing this forum: No registered users and 6 guests