-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Moving Notification pop-up on Cinnamon desktop #4892
Comments
+1 |
+1 |
You guys do realize that people who follow github get an email for every reply? Please stop with all the +1's if you have nothing useful to add. |
greating idea 👍 |
@JosephMcc Thanks and regards, |
@dirent1 the missing of like buttons is obviously a github issue. @JosephMcc i know it is quite annoying, but i personally use the plus ones to keep track of the issues i am interested in in cases everything has already been said |
My comment was mostly made because someone was jumping around adding +1's to feature requests. This is something users obviously like the idea of so I'm not sure anyone needs to get multiple emails a day to let them know ;) |
@JosephMcc |
I just want to add I would like to see this too. By default popups cover window controls and other important parts of the screen. An option to choose a window corner would be nice. Personally I just wish they were bottom left or right corner. |
If you want to move notification pop-up vertically, temporary solution would be changing /usr/share/cinnamon/js/ui/messageTray.js like in my comment #5130 . It will work until next cinnamon update. |
Thanks very much @piotrekkr for the useful workaround. The notification covering my window controls and Firefox tabs was driving me crazy. |
Thanks very much @piotrekkr, worked for me too, kudos |
It's a must have feature i think, hope it will be implemented ASAP. |
@piotrekkr Hmm, the hack doesn't seem to work anymore on Cinnamon 3.0. |
@geckolinux I'm waiting for Linux Mint 18, there should be cinnamon 3.0 included, I think. Meanwhile I'll find some live cd with cinnamon 3.0 and try to move notification there. I'll let you know if I succeed. |
@piotrekkr Thanks, much appreciated! I'll have a live CD of openSUSE with Cinnamon 3.0 out in the next few days. I'll give you the link ASAP. |
@geckolinux I tried installing cinnamon 3.0 in when using I just viewed cinnamon code on github and it seems that
restart cinnamon and check if it is working? Basically do same thing like in #5130 (comment) |
Thanks very much! That did the trick. |
As I don't have a top panel, only on the bottom, this trick doesn't work for me, but with a small tweak it does. In the same file
replacing 768 with you vertical resolution.[1] You may have to adjust the 60 value, it work great for me. Then restart Cinnamon, in [1] You can find it under The downside of editing those files, is that the will be overwritten on the next update. I don't know if an extension could be made to solve this, maybe the Cinnamon JS API already enables this. Having the possibility to move the notification bubble in an more user-friendly way would be very useful in those cases where it hides some window elements or if the panel is on the bottom, as it seems to be better down there. |
@goetzc I don't quite get why you did calculate like that. I have also only bottom panel and adding 50 to |
@piotrekkr because I want the notification on the bottom :) |
Yeah but there can be a problem when there is multi line notification since it will probably be over bottom panel. Try this in console:
To overcome this you can do something simplier. You need to get screen height, notification height and substract them. Also substract some more pixels to make some margin between bottom panel and notification:
Try it, it worked for me: |
@piotrekkr oh you are right, and this is much better now! EDIT: And what about |
Hello, everybody. I already added my thumbs up to this feature request with the hope to see the notifications popup position be allowed to be changed from Cinnamon settings. In the meantime, and thanks to the exchange between @goetzc and @piotrekkr on this issue, I managed to position the notifications popup at the bottom right of the screen. Next I will describe the exact changes that I made. I opened as root the file /usr/share/cinnamon/js/ui/messageTray.js, located the _onNotificationExpanded method and edited it as follows: Disclaimer!!! Cinnamon 3.0.7 stable specificChange this line... let panel = Main.panelManager.getPanel(0, false); ...like this... let panel = Main.panelManager.getPanel(0, true); Cinnamon 3.0.7 nightly specific (installed from this repository)Change this line... let panel = Main.panelManager.getPanel(0, 0); ...like this... let panel = Main.panelManager.getPanel(0, 1); Cinnamon stable and nightly alikeChange this line... let newY = monitor.y + height; ...like this... let newY = monitor.height - this._notificationBin.height - height - 10; At this point, if the file is saved and Cinnamon is restarted, notifications will start to show up at the bottom right of the screen but with a little drawback. The notification will still be animated from the top of the screen to its final position at the bottom. And will travel all the way back from the bottom of the screen to the top when the notification is hidden. The only way that I found to avoid all this dancing around of the notification popup is as follows: const ANIMATION_TIME = .2; ...like this... const ANIMATION_TIME = .001; This change will make the notification popup to show up without animation. Do not try to set it to 0 (zero) because it will break the notifications. |
You can easily change Cinnamon's notification position with following Cinnamon Tweaks extention. |
@kelebek333 Hey, nice find! Thanks very much, works great. |
i would suggest the instructions indicate positioning described relative to location on display regardless of panel location, i keep the panel (any desktop) on top, so distance from panel may not be distance from display 'top' or 'botton' :) |
@kelebek333 Is this extension available in System Settings => Applets? I have Mint 18 and just refreshed applet list but can't find it there. |
Ok at last I found how to install it manually. Download it and decompress it in ~/.local/share/cinnamon/applets. //EDIT Was this really tested because I have big red ! beside this applet and after clicking "Add to panel" I get errors from glass.log:
Seems like applet.js is missing. I have cinnamon 3.0.7. |
@piotrekkr You need to read more carefully. This is your fault and not the fault of the developer. It isn't an applet. It's an extension. You can download it and install it from Cinnamon Settings->Extensions. Remove the one you copied to the applets folder. |
@JosephMcc Ok, I thought that extension is same as applet just different name, my fault. |
There are 3 different types of xlets in Cinnamon (4 if you count themes). Applets, desklets, and extensions. Each has their own page in Cinnamon settings. Of the 3, extensions are the most likely to break when a new version of Cinnamon is released. Unlike an applet or desklet, an extension actually patches new code into Cinnamon's javascript code. Because of that extensions are capable of doing more than an applet or desklet but are much more susceptible to breakage if the code around them changes between versions. |
Thanks for the hint with cinnamon tweaks. Finally was easy to move the notification to the bottom. Would be nice to have that as an option without having install extra software. |
The tweaks presented here seem to no longer be effective. Cinnamon Tweaks has also been removed for unknown reasons, so there currently seems no way to move notifications - a fact that, together with the lack of a "close" button and a few other quirks, is making me think of moving away from this desktop environment which is rapidly falling behind in usability. |
@JosephMcc this feature seems like something to be added into cinnamon's core to prevent such issues. The settings for this feature can be easily added to the Notifications section in cinnamon settings, and a simple algorithm to take into consideration the total size of each notification, on the fly to prevent multiline ones cutting through panels or screen edges, could be implemented without too much resource usage. Right now, firefox is unusable if I'm in a lively chat because the constant notifications block the tabs on the right side, with my panel at the top of the screen |
i tried to move the notification down a bit in // let newY = monitor.y + height;
let newY = monitor.y + height + 50;
// if (this._notificationBin.y < expandedY)
// this._notificationBin.y = expandedY;
// else if (this._notification.actor.y != expandedY)
// this._tween(this._notificationBin, '_notificationState', State.SHOWN,
// { y: newY,
// time: ANIMATION_TIME,
// transition: 'easeOutQuad'
// });
this._tween(this._notificationBin, '_notificationState', State.SHOWN,
{ y: newY,
time: ANIMATION_TIME,
transition: 'easeOutQuad'
}); i don't quite understand why.. didn't dig into the code that much.. |
After two years a still no feature in cinnamon. Even the cinnamon tweaks is deleted. What a shame |
Still nothing? |
Same here. After upgarde to 18.3 cinnmon tweaks does not work anymore |
@nikhilw it's only been two years for such a basic feature. Don't be so hasty! |
Hi, for version 18.3: sudo vim /usr/share/cinnamon/js/ui/messageTray.js function: _showNotification, forward of the line:1674 change: let topGap = 5; and tweak topGap value to your preferences reset cinnamon with alt+F2 and enter r |
@chrispoket99 solution works for me. |
@chrispoket99 I recommand to start from the bottom, like this : in one command to edit the file : |
@Z-42PO cuts the notifications for me, does not consider the bottom panel |
How can i activate cinnamion 3.8 branch? It the commit working? |
While the PR is not live yet, you can already use it by following the instructions outlined by @jaszhix here. |
Hello,
Greetings from Turkey.
As I know, users can change notifications pop-up position in MATE but we can't in Cinnamon.
It always shows at the top-right corner but I would like to see at right-bottom area, over on clock, sound applets for example. Many of users want to change the place too.
In previously versions of Cinnamon's, users can change this situation via to modify Cinnamon.css but in 17.2 we can't even modify.
If you give some permissions to modify Cinnamon.css it would be great for us.
If you add an option to user interface of Notification Settings can change it like in MATE, it would be greater than.
Thanks in advance.
Best Regards,
dirent
The text was updated successfully, but these errors were encountered: