<?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/"
	>

<channel>
	<title>./alexandru &#187; .screenrc</title>
	<atom:link href="http://alexandrulazar.com/category/screenrc/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexandrulazar.com</link>
	<description>mnml</description>
	<lastBuildDate>Sun, 01 Apr 2012 01:32:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>GNU Screen, Window Manager.</title>
		<link>http://alexandrulazar.com/gnu-screen-window-manager/</link>
		<comments>http://alexandrulazar.com/gnu-screen-window-manager/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 12:54:08 +0000</pubDate>
		<dc:creator>Alexandru</dc:creator>
				<category><![CDATA[.screenrc]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[color wrapper]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[command-line interface]]></category>
		<category><![CDATA[cw]]></category>
		<category><![CDATA[gnu screen]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[window manager]]></category>
		<category><![CDATA[yakuake]]></category>
		<category><![CDATA[screen_ssh]]></category>

		<guid isPermaLink="false">http://alexandrulazar.com/?p=14</guid>
		<description><![CDATA[GUI is for the weak. Meet my window manager, GNU screen: 0. Build screen from source to fix the slowdown when scrolling in a vertical split. 1. This is my .screenrc with keyboard shortcuts and a nifty status bar.  &#8211;help? Control + Up:  previous split screen Control + Down: next split screen Control + Left:  [...]]]></description>
			<content:encoded><![CDATA[<p>GUI is for the weak.  Meet my window manager, <a href="http://www.gnu.org/software/screen/">GNU screen</a>:</p>
<p><a href="http://alexandrulazar.com/wp-content/uploads/2010/06/screen2.jpg"><img class="aligncenter size-full wp-image-27" title="screen1" src="http://alexandrulazar.com/wp-content/uploads/2010/06/screen1.jpg" alt="Small image of GNU screen setup" width="500" height="374" /></a></p>
<p>0. Build screen <a href="http://savannah.gnu.org/git/?group=screen">from source</a> to fix the slowdown when scrolling in a vertical split.</p>
<p>1.  This is <a href="http://www.alexandrulazar.com/junk/articles/.screenrc">my .screenrc</a> with keyboard shortcuts and a nifty status bar.  &#8211;help?</p>
<pre style="padding-left: 60px;">Control + Up:  previous split screen</pre>
<pre style="padding-left: 60px;">Control + Down: next split screen</pre>
<pre style="padding-left: 60px;">Control + Left:  previous screen window</pre>
<pre style="padding-left: 60px;">Control + Right: next screen window</pre>
<pre style="padding-left: 60px;">F1: kill current tab</pre>
<pre style="padding-left: 60px;">F2: write paste buffer to file</pre>
<pre style="padding-left: 60px;">F3: split horizontally</pre>
<pre style="padding-left: 60px;">F4: split vertically</pre>
<pre style="padding-left: 60px;">F5: remove single split</pre>
<pre style="padding-left: 60px;">F6: remove all splits</pre>
<pre style="padding-left: 60px;">F7: <a href="http://gd.tuwien.ac.at/linuxcommand.org/man_pages/urlview1.html">urlview</a> pulls URL's from your current output, very useful</pre>
<pre style="padding-left: 60px;">F8: new tab</pre>
<pre style="padding-left: 60px;">F9: resize split +1 line</pre>
<pre style="padding-left: 60px;">F10: resize split -1 line</pre>
<p>2. <a href="http://www.tenshu.net/screen_ssh/" target="_self">Install screen_ssh.sh</a> so your window title automatically renames to your ssh destination.  To have the title revert after closing your shell <a href="http://old.nabble.com/Dynamic-Title-tp23754108p23840219.html">follow this</a>.</p>
<p>3. color = readability.  <a href="http://freshmeat.net/projects/cw/">Install color wrapper</a> to colorize your terminal output.  Alias <em>man</em> to use <em>most</em> as its pager.  Use the following for a colorful prompt with $? in $2:</p>
<p><strong><span style="color: #00ccff;">00:43:18</span> <span style="color: #00ff00;">0</span> <span style="color: #3366ff;">user@hostname</span>:<span style="color: #ffff00;">~/<span style="color: #00ff00;">$</span></span></strong></p>
<p><code>\[\033[1;36m\]\t\[\033[0m\] `LastExitValue=$?; if [ $LastExitValue = 0 ]; then echo \[\033[1\;32m\]$LastExitValue\[\033[0m\]; else echo \[\033[1\;31m\]$LastExitValue\[\033[0m\]; fi` \[\033[1;34m\]\u@\h\[\033[0m\]:\[\033[1;33m\]\w\[\033[0m\]\[\033[1;32m\]\$\[\033[0m\]</code></p>
<p>To remove color use:  <code>s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g</code></p>
<p>4.  <a href="http://extragear.kde.org/apps/yakuake/">Yakuake is the best terminal emulator<strong>.</strong></a> Configure these shortcuts:</p>
<pre style="padding-left: 60px;">Shift + Left: previous shell</pre>
<pre style="padding-left: 60px;">Shift + Right: next shell</pre>
<pre style="padding-left: 60px;">F11: full screen</pre>
<pre style="padding-left: 60px;">F12: drop down</pre>
<img src="http://alexandrulazar.com/?ak_action=api_record_view&id=14&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://alexandrulazar.com/gnu-screen-window-manager/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

