<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>kwin Archives - Pietari Heino&#039;s personal website</title>
	<atom:link href="https://www.extreg.com/blog/tag/kwin/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.extreg.com</link>
	<description></description>
	<lastBuildDate>Sun, 29 Jul 2018 10:51:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.6.7</generator>
<site xmlns="com-wordpress:feed-additions:1">99365322</site>	<item>
		<title>Center current window in KDE Plasma</title>
		<link>https://www.extreg.com/blog/2018/07/center-current-window-in-kde-plasma/</link>
					<comments>https://www.extreg.com/blog/2018/07/center-current-window-in-kde-plasma/#respond</comments>
		
		<dc:creator><![CDATA[Pietari]]></dc:creator>
		<pubDate>Sun, 29 Jul 2018 10:48:03 +0000</pubDate>
				<category><![CDATA[random]]></category>
		<category><![CDATA[center window]]></category>
		<category><![CDATA[kde plasma]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[kwin]]></category>
		<category><![CDATA[ubuntu]]></category>
		<guid isPermaLink="false">https://www.extreg.com/?p=336</guid>

					<description><![CDATA[<p>I&#8217;ve got a nice Samsung 27&#8243; 2K monitor at my home office. The one and only pain I have got with the resolution and size of the monitor is that most programs don&#8217;t need that much of horizontal space and become mostly useless and horrible to use. For instance your web browser very rarely needs ... <span class="more"><a class="more-link" href="https://www.extreg.com/blog/2018/07/center-current-window-in-kde-plasma/">[Read more...]</a></span></p>
<p>The post <a rel="nofollow" href="https://www.extreg.com/blog/2018/07/center-current-window-in-kde-plasma/">Center current window in KDE Plasma</a> appeared first on <a rel="nofollow" href="https://www.extreg.com">Pietari Heino&#039;s personal website</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve got a nice Samsung 27&#8243; 2K monitor at my home office. The one and only pain I have got with the resolution and size of the monitor is that most programs don&#8217;t need that much of horizontal space and become mostly useless and horrible to use. For instance your web browser very rarely needs to be that wide if you&#8217;re not staring at a dashboard or a video or something. Usually I want the browser to be a little more than half of the width of the screen and in the center if I&#8217;m doing web surfing etc.</p>
<p>KDE Plasma 5.12 doesn&#8217;t come with the required functionality to get the window resized to half of the screen and positioned in the center so I needed to dig in to KWin scripting and do it myself. I now have three shortcuts that let me:</p>
<ol>
<li>resize the current window to 1/2 of screen width and center it</li>
<li>grow it horizontally by 40 px</li>
<li>shrink it horizontally by 40 px</li>
</ol>
<p>This is super useful – one button to get the size where it functions nicely 99 % of time and then a few pushes more to grow/shrink it if needed.</p>
<p>You may find my KWin script as a git repository that may be installed into your Plasma system with one command <a href="https://github.com/piehei/kde-plasma-center-window">right here over at Github</a>. The script itself is very simple and might even give you nice pointers on how to achieve something similar with the KWin&#8217;s scripting facilities. More details on KWin scripting (and Plasma UI manipulation) may be found from <a href="https://techbase.kde.org/Development/Tutorials/KWin/Scripting">the official documentation</a>.</p>
<p>The post <a rel="nofollow" href="https://www.extreg.com/blog/2018/07/center-current-window-in-kde-plasma/">Center current window in KDE Plasma</a> appeared first on <a rel="nofollow" href="https://www.extreg.com">Pietari Heino&#039;s personal website</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.extreg.com/blog/2018/07/center-current-window-in-kde-plasma/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">336</post-id>	</item>
	</channel>
</rss>
