[SOLVED] Change notification placement

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

[SOLVED] Change notification placement

Postby SidharthaXx on Sat Mar 17, 2012 1:31 pm

Hi All,

Not sure if this specifically relates to Cinnamon... but I want to manage my notifications a little more closely.
Move their location for example. How do I do this?

Thanks
Last edited by SidharthaXx on Tue Mar 27, 2012 5:40 pm, edited 1 time in total.
SidharthaXx
Level 3
Level 3
 
Posts: 109
Joined: Fri Feb 10, 2012 8:54 am

Linux Mint is funded by ads and donations.
 

Re: Change notification placement

Postby bimsebasse on Sat Mar 17, 2012 1:51 pm

Yes, this is how the relevant cinnamon.css section looks in the default theme:
Code: Select all
#notification {
   font-size: 8.5pt;
   border-radius: 8px 8px 8px 8px;
   border: 2px solid #a5a5a5;
   background-gradient-direction: vertical;
   background-gradient-start: rgba(85,85,85,0.8);
   background-gradient-end: rgba(85,85,85,0.8);
   padding: 8px 8px 8px 8px;
   spacing-rows: 10px;
   spacing-columns: 10px;
   margin-from-right-edge-of-screen: 20px;
   margin-from-top-edge-of-screen: 30px;
   width: 34em;
   color: white;
}


Just change the margin from edge of screen values to suit your needs. In my themes with floating notifications the equation is thus:
margin-from-right-edge-of-screen = 10px (or 15 or 20)
margin-from-top-edge-of-screen = panel height + margin-from-right-edge-of-screen

This means that in top panel mode the notification dialog is aligned with the bottom of the panel and the right edge of the screen, which in the default theme (panel height 25px) would be:
Code: Select all
   margin-from-right-edge-of-screen: 15px;
   margin-from-top-edge-of-screen: 40px;


If you only use bottom panel setup you just give 2 identical edge-of-screen values to get the same alignment.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Change notification placement

Postby SidharthaXx on Sat Mar 17, 2012 2:14 pm

Thanks.

What about other elements of notification control... e.g. how long they appear for? What they appear for?

Is everything controllable...?

Thanks again
SidharthaXx
Level 3
Level 3
 
Posts: 109
Joined: Fri Feb 10, 2012 8:54 am

Re: Change notification placement

Postby bimsebasse on Sat Mar 17, 2012 2:30 pm

Not on theme level, for that you have to edit core Cinnamon .js files.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: Change notification placement

Postby SidharthaXx on Sat Mar 17, 2012 3:05 pm

Thanks bimsebasse.
SidharthaXx
Level 3
Level 3
 
Posts: 109
Joined: Fri Feb 10, 2012 8:54 am

Re: Change notification placement

Postby Richard85 on Fri Jul 13, 2012 8:49 pm

Where would this file be located in linux mint 11 gnome or openbox??? I too want to move my notifications deal thingy.
Richard85
Level 1
Level 1
 
Posts: 6
Joined: Fri Aug 26, 2011 3:57 pm

Re: [SOLVED] Change notification placement

Postby krsoulsby on Wed Sep 19, 2012 7:49 pm

I've tried to modify the default theme (/usr/share/cinnamon/theme/cinnamon.css) to move the notification to the bottom right hand corner of the screen with

margin-from-right-edge-of-screen: 20px;
margin-from-top-edge-of-screen: 980px;

but the notifications remain in the top right corner, am I doing anything wrong?

Kevin

Linux Mint 13 - Cinnamon (64 bit)
krsoulsby
Level 1
Level 1
 
Posts: 6
Joined: Mon Apr 30, 2012 6:56 am

Re: [SOLVED] Change notification placement

Postby gary.zw on Thu Sep 27, 2012 1:11 pm

I had mine set to the following which worked fine-- but after updating to Cinnamon 1.6 I can not get it to move back to the bottom.

Code: Select all
margin-from-right-edge-of-screen: 20px;
margin-from-top-edge-of-screen: 670px;


krsoulsby wrote:I've tried to modify the default theme (/usr/share/cinnamon/theme/cinnamon.css) to move the notification to the bottom right hand corner of the screen with

margin-from-right-edge-of-screen: 20px;
margin-from-top-edge-of-screen: 980px;

but the notifications remain in the top right corner, am I doing anything wrong?

Kevin

Linux Mint 13 - Cinnamon (64 bit)
gary.zw
Level 1
Level 1
 
Posts: 15
Joined: Thu Sep 13, 2012 4:10 pm

Re: [SOLVED] Change notification placement

Postby bimsebasse on Fri Sep 28, 2012 6:59 pm

Not possible anymore, the notifications are fixed to 5px from top panel - nothing you can do on theme level, you can only move them horizontally.
Thank you for this thread. That’s all I can say. You most definitely have made this forum into something special. You clearly know what you are doing, you’ve covered so many bases. Thanks!
User avatar
bimsebasse
Level 7
Level 7
 
Posts: 1709
Joined: Fri Nov 11, 2011 10:21 am
Location: Scandinavia

Re: [SOLVED] Change notification placement

Postby gary.zw on Fri Sep 28, 2012 7:01 pm

That is sort of disappointing-- wonder why that was done?

bimsebasse wrote:Not possible anymore, the notifications are fixed to 5px from top panel - nothing you can do on theme level, you can only move them horizontally.
gary.zw
Level 1
Level 1
 
Posts: 15
Joined: Thu Sep 13, 2012 4:10 pm

Linux Mint is funded by ads and donations.
 

Return to Cinnamon

Who is online

Users browsing this forum: No registered users and 9 guests