http://www.webupd8.org/2012/06/how-to-change-notifications-position-in.html ๊ณผ ๊ฐ์ด ์๋ฆผ ํ์
์ ์์น๋ฅผ โโ๋ณ๊ฒฝํ๋ ค๊ณ ํฉ๋๋ค. ๊ทธ๋ฌ๋ margin-from-top-edge-of-screen
๋ฅผ ์ถ๊ฐํ๊ฑฐ๋ ๋ณ๊ฒฝํด๋ ์ ํ ํจ๊ณผ๊ฐ ์์ต๋๋ค. ๋์กฐ์ ์ผ๋ก margin-from-right-edge-of-screen
๋ณ๊ฒฝํ๋ฉด ์ ์๋ํฉ๋๋ค.
Linux Mint
ํ
๋ง๋ก Linux Mint 17.3์ ์ฌ์ฉํ๊ณ ์์ผ๋ฉฐ #notifications๋ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
#notification {
font-size: 8.5pt;
border-radius: 10px 10px 10px 10px;
border: 2px solid rgba(214,214,214,0.5);
background-gradient-direction: vertical;
background-gradient-start: rgba(66,66,66,0.9);
background-gradient-end: rgba(55,55,55,0.9);
padding: 8px 8px 8px 8px;
spacing-rows: 10px;
spacing-columns: 10px;
margin-from-right-edge-of-screen: 80px;
margin-from-top-edge-of-screen: 350px;
width: 34em;
color: white;
/* The px are a temporary fix until get_theme_node() can return raw numbers. */
opacity:255px;
mouseover-opacity:96px
}
margin-from-top-edge-of-screen
๋ณ๊ฒฝํด๋ ํจ๊ณผ๊ฐ ์๋ ์ด์ ๋ฅผ ์์ญ๋๊น?
ํ๋ฉด ์๋จ ๊ฐ์ฅ์๋ฆฌ์์ ์ฌ๋ฐฑ์ด ์ค์ ์์ฑ์ด ์๋๊ธฐ ๋๋ฌธ์ ๋๋ค. ๊ทธ๋ฐ๊ฑด ์์ด์ ์๋๋ชฌ์ ๊ทธ๋ฅ ๋ฌด์ํฉ๋๋ค. ๋น์ ์ด ์ง์ ํ ๊ฒ์๋ฌผ์ ์ ๋ง ์ค๋๋์์ต๋๋ค. ๊ทธ ์ดํ๋ก ์ํฉ์ด ๋ฐ๋์์ ๊ฒ์ ๋๋ค.
์ข์, ์ต์ํ/์ต๋ํ/๋ซ๊ธฐ ๋ฒํผ์ ๋์ง ์๋๋ก ์ด ํ์ ์ ์ด๋ํ๋ ๋ฐฉ๋ฒ์ด ์์ต๋๊น? ํ๋ฉด ์ฐ์ธก์๋จ์ ํ์ ์ฐฝ ๋์ฐ๋๊ฑฐ ์ ๋ง ์ง์ฆ๋๋ค์...
//ํธ์งํ๋ค
ok ์๋ฆผ์ ๋ฐฐ์นํ๋ ์ฝ๋๋ฅผ ์ฐพ์์ต๋๋ค. /usr/share/cinnamon/js/ui/messageTray.js :
_onNotificationExpanded: function() {
let expandedY = this._notification.actor.height - this._notificationBin.height;
// Don't animate the notification to its new position if it has shrunk:
// there will be a very visible "gap" that breaks the illusion.
// This isn't really working at the moment, but it was just crashing before
// if it encountered a critical notification. expandedY is always 0. For now
// just make sure it's not covering the top panel if there is one.
let monitor = Main.layoutManager.primaryMonitor;
let panel = Main.panelManager.getPanel(0, false); // We only want the top panel in monitor 0
let height = 5;
if (panel)
height += panel.actor.get_height();
let newY = monitor.y + height + 50; // ADDED 50 HERE SO POPUP IS NOT OVER WINDOW CONTROLS
if (this._notificationBin.y < expandedY)
this._notificationBin.y = expandedY;
else if (this._notification.y != expandedY)
this._tween(this._notificationBin, '_notificationState', State.SHOWN,
{ y: newY,
time: ANIMATION_TIME,
transition: 'easeOutQuad'
});
},
์ด ํ์ผ์ ๋ฎ์ด์ฐ๊ฒ ๋๋ฏ๋ก ๊ณํผ ์ ๋ฐ์ดํธ ํ์ ์๋์ ๋ฉ์ถฅ๋๋ค.
์๋ ๋ฌธ์ ๋ ์กด์ฌํ์ง๋ ์๋ ์์ฑ์ ๊ดํ ๊ฒ์ด๊ณ ์๋ฆผ์ ์ด๋ํ ์ ์๋์ง์ ๋ํ ๋ค๋ฅธ ๋ฏธํด๊ฒฐ ๋ฌธ์ ๊ฐ ์์ผ๋ฏ๋ก ๋ซ์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ข์, ์ต์ํ/์ต๋ํ/๋ซ๊ธฐ ๋ฒํผ์ ๋์ง ์๋๋ก ์ด ํ์ ์ ์ด๋ํ๋ ๋ฐฉ๋ฒ์ด ์์ต๋๊น? ํ๋ฉด ์ฐ์ธก์๋จ์ ํ์ ์ฐฝ ๋์ฐ๋๊ฑฐ ์ ๋ง ์ง์ฆ๋๋ค์...
//ํธ์งํ๋ค
ok ์๋ฆผ์ ๋ฐฐ์นํ๋ ์ฝ๋๋ฅผ ์ฐพ์์ต๋๋ค. /usr/share/cinnamon/js/ui/messageTray.js :
},
์ด ํ์ผ์ ๋ฎ์ด์ฐ๊ฒ ๋๋ฏ๋ก ๊ณํผ ์ ๋ฐ์ดํธ ํ์ ์๋์ ๋ฉ์ถฅ๋๋ค.