<?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>swedberg.info</title>
	<atom:link href="http://swedberg.info/feed/" rel="self" type="application/rss+xml" />
	<link>http://swedberg.info</link>
	<description>swedberg.info</description>
	<lastBuildDate>Mon, 30 May 2011 18:00:49 +0000</lastBuildDate>
	<language>sv</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Hårddiskvila i Ubuntu</title>
		<link>http://swedberg.info/2011/05/harddiskvila/</link>
		<comments>http://swedberg.info/2011/05/harddiskvila/#comments</comments>
		<pubDate>Thu, 26 May 2011 19:38:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[Dator]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://swedberg.info/?p=49</guid>
		<description><![CDATA[Ett problem jag har i min Ubuntu 10.10-installation är att håddiskarna inte vill gå i vila när de inte används. En av diskarna används enbart för Windows, och har dessutom en klart märkbar ljudnivå. Jag har försökt ändra i diverse konfigurationsfiler för hdparm, udev, osv. men inte hittat någon lösning som fungerar även efter att <a href='http://swedberg.info/2011/05/harddiskvila/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Ett problem jag har i min Ubuntu 10.10-installation är att håddiskarna inte vill gå i vila när de inte används. En av diskarna används enbart för Windows, och har dessutom en klart märkbar ljudnivå.</p>
<p>Jag har försökt ändra i diverse konfigurationsfiler för hdparm, udev, osv. men inte hittat någon lösning som fungerar även efter att datorn vaknat från vila.</p>
<p> Därför gjorde jag ett &#8221;fulhack&#8221;, och lade till</p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Selec All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">hdparm <span style="color: #660033;">-S12</span> <span style="color: #660033;">-M128</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda
hdparm <span style="color: #660033;">-S60</span> <span style="color: #660033;">-M128</span> <span style="color: #660033;">-B127</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb
hdparm <span style="color: #660033;">-S180</span> <span style="color: #660033;">-M128</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdc</pre></div></div></div>

<p>till /etc/rc.local och skapade /etc/pm/sleep.d/50_resume_hdparm med följande innehåll:</p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Selec All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Action script to set hdparm after resume</span>
<span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${1}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
        resume<span style="color: #000000; font-weight: bold;">|</span>thaw<span style="color: #7a0874; font-weight: bold;">&#41;</span>
                hdparm <span style="color: #660033;">-S12</span> <span style="color: #660033;">-M128</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda
                hdparm <span style="color: #660033;">-S50</span> <span style="color: #660033;">-M128</span> <span style="color: #660033;">-B127</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdb
                hdparm <span style="color: #660033;">-S200</span> <span style="color: #660033;">-M128</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdc
                <span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span></pre></div></div></div>

<p>Detta betyder att /dev/sda vilar efter 1 min, sdb efter 5 min och sdc efter 15 min. Dessutom aktiveras AAM (tyst läge) och  APM (strömsparfunktioner) på de av mina diskar som stödjer de funktionerna.</p>
<p>Nu spinner diskarna ner som de ska. Observera att det antagligen går att göra betydligt smidigare lösningar än denna, men denna fungerar för mig.</p>
]]></content:encoded>
			<wfw:commentRss>http://swedberg.info/2011/05/harddiskvila/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XMonad som fönsterhanterare</title>
		<link>http://swedberg.info/2011/04/xmonad-som-f%c3%b6nsterhanterare/</link>
		<comments>http://swedberg.info/2011/04/xmonad-som-f%c3%b6nsterhanterare/#comments</comments>
		<pubDate>Mon, 04 Apr 2011 20:29:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ingen kategori]]></category>
		<category><![CDATA[Artikel]]></category>
		<category><![CDATA[Dator]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Xmonad]]></category>

		<guid isPermaLink="false">http://swedberg.info/wp/?p=7</guid>
		<description><![CDATA[Jag har nyligen börjat använda Xmonad som fönsterhanterare. Konfigurationsmöjligheterna är i stort sett oändliga, men det tar ett tag att klura ut hur saker och ting ska göras. Min konfiguration: Xmonad för fönsterhantering, ingen skrivbordsmiljö dzen2 som statusrad för Xmonad Conky + ytterligare en dzen2 för systeminformation Trayer som statusfält (för Dropbox etc.) rxvt-unicode som <a href='http://swedberg.info/2011/04/xmonad-som-f%c3%b6nsterhanterare/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Jag har nyligen börjat använda Xmonad som fönsterhanterare. Konfigurationsmöjligheterna är i stort sett oändliga, men det tar ett tag att klura ut hur saker och ting ska göras. Min konfiguration:</p>
<ul>
<li>Xmonad för fönsterhantering, ingen skrivbordsmiljö</li>
<li>dzen2 som statusrad för Xmonad</li>
<li>Conky + ytterligare en dzen2 för systeminformation</li>
<li>Trayer som statusfält (för Dropbox etc.)</li>
<li>rxvt-unicode som terminal</li>
<li>xcompmgr för trevliga fönstereffekter (transparens, toningar etc.)</li>
<li>Gnome Tracker för snabb filsökning (funkar utan att använda hela skrivbordsmiljön)</li>
<li>udiskie för automontering av lagringsmedia</li>
</ul>
<p>För att automatiskt starta upp allt används denna .xsessionrc:</p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Selec All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Load your X Resource defaults, if you have them...</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.Xdefaults <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
  xrdb <span style="color: #660033;">-merge</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.Xdefaults
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Hack to make OpenOffice dialogs work with Xmonad</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SAL_USE_VCLPLUGIN</span>=gen
&nbsp;
<span style="color: #666666; font-style: italic;"># Run dropbox</span>
dropbox start<span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Start compositing manager. Light dropshadows and quick fades.</span>
xcompmgr <span style="color: #660033;">-cCfF</span> -o0.40 -D3<span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Start metadata search tool</span>
tracker-control -s<span style="color: #000000; font-weight: bold;">&amp;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Automount removable media</span>
udiskie<span style="color: #000000; font-weight: bold;">&amp;</span></pre></td></tr></table></div></div>

<p>OpenOffice-hacket (export SAL_USE_VCLPLUGIN=gen) är nödvändigt, eftersom dialogrutor mer eller mindre kraschar programmet annars. Jag har inte hittat någon riktigt tillfredställande lösning på problemet, men detta fungerar i alla fall.</p>
<p>.Xdefaults innehåller lite färginställningar med mera för rxvt-unicode:</p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Selec All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">URxvt.foreground: white
URxvt.depth: <span style="color: #000000;">32</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>background: rgba:0000<span style="color: #000000; font-weight: bold;">/</span>0000<span style="color: #000000; font-weight: bold;">/</span>0000<span style="color: #000000; font-weight: bold;">/</span>dddd
&nbsp;
URxvt.fading: <span style="color: #000000;">30</span>
URxvt.fadeColor: <span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">0</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>black
&nbsp;
URxvt.saveLines:<span style="color: #000000;">32767</span>
URxvt.scrollBar: <span style="color: #c20cb9; font-weight: bold;">false</span>
&nbsp;
URxvt.urgentOnBell: <span style="color: #c20cb9; font-weight: bold;">true</span>
&nbsp;
URxvt<span style="color: #000000; font-weight: bold;">*</span>font:xft:Terminus:<span style="color: #007800;">pixelsize</span>=<span style="color: #000000;">14</span>
&nbsp;
URxvt<span style="color: #000000; font-weight: bold;">*</span>color0:    <span style="color: #666666; font-style: italic;">#6c6c6c</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color1:    <span style="color: #666666; font-style: italic;">#e9897c</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color2:    <span style="color: #666666; font-style: italic;">#b6e77d</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color3:    <span style="color: #666666; font-style: italic;">#ecebbe</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color4:    <span style="color: #666666; font-style: italic;">#a9cdeb</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color5:    <span style="color: #666666; font-style: italic;">#ea96eb</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color6:    <span style="color: #666666; font-style: italic;">#c9caec</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color7:    <span style="color: #666666; font-style: italic;">#f2f2f2</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color8:    <span style="color: #666666; font-style: italic;">#747474</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color9:    <span style="color: #666666; font-style: italic;">#f99286</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color10:    <span style="color: #666666; font-style: italic;">#c3f786</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color11:    <span style="color: #666666; font-style: italic;">#fcfbcc</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color12:    <span style="color: #666666; font-style: italic;">#b6defb</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color13:    <span style="color: #666666; font-style: italic;">#fba1fb</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color14:    <span style="color: #666666; font-style: italic;">#d7d9fc</span>
URxvt<span style="color: #000000; font-weight: bold;">*</span>color15:    <span style="color: #666666; font-style: italic;">#e2e2e2</span></pre></td></tr></table></div></div>

<p>Nedan följer min xmonad.hs, &#8221;huvudsaken&#8221; med det här inlägget. Det finns mycket som kan förbättras och städas upp, jag får nog anledning att återkomma.</p>

<div class="my_syntax_box"><span class="my_syntax_selecall"><a href="javascript:;" onclick="selectCode(this); return false;">Selec All</a> </span><span class="my_syntax_Bar">Code:</span><div class="my_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
</pre></td><td class="code"><pre class="haskell" style="font-family:monospace;"><span style="color: #06c; font-weight: bold;">import</span> XMonad
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Core
&nbsp;
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Prompt
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Prompt<span style="color: #339933; font-weight: bold;">.</span>Shell
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Prompt<span style="color: #339933; font-weight: bold;">.</span>Man
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Prompt<span style="color: #339933; font-weight: bold;">.</span>AppLauncher <span style="color: #06c; font-weight: bold;">as</span> AL
&nbsp;
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Layout
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Layout<span style="color: #339933; font-weight: bold;">.</span>NoBorders
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Layout<span style="color: #339933; font-weight: bold;">.</span>ResizableTile
&nbsp;
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Hooks<span style="color: #339933; font-weight: bold;">.</span>DynamicLog
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Hooks<span style="color: #339933; font-weight: bold;">.</span>ManageDocks
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Hooks<span style="color: #339933; font-weight: bold;">.</span>UrgencyHook
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Hooks<span style="color: #339933; font-weight: bold;">.</span>SetWMName
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Hooks<span style="color: #339933; font-weight: bold;">.</span>ManageHelpers
&nbsp;
<span style="color: #06c; font-weight: bold;">import</span> <span style="color: #06c; font-weight: bold;">qualified</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>StackSet <span style="color: #06c; font-weight: bold;">as</span> W
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Util<span style="color: #339933; font-weight: bold;">.</span>EZConfig
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Util<span style="color: #339933; font-weight: bold;">.</span>Run
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Util<span style="color: #339933; font-weight: bold;">.</span>Loggers
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Util<span style="color: #339933; font-weight: bold;">.</span>WorkspaceCompare
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Util<span style="color: #339933; font-weight: bold;">.</span>Scratchpad
&nbsp;
<span style="color: #06c; font-weight: bold;">import</span> XMonad<span style="color: #339933; font-weight: bold;">.</span>Actions<span style="color: #339933; font-weight: bold;">.</span>WindowBringer
&nbsp;
<span style="color: #06c; font-weight: bold;">import</span> Control<span style="color: #339933; font-weight: bold;">.</span><span style="color: #cccc00; font-weight: bold;">Monad</span> <span style="color: green;">&#40;</span>liftM2<span style="color: green;">&#41;</span>
<span style="color: #06c; font-weight: bold;">import</span> Graphics<span style="color: #339933; font-weight: bold;">.</span>X11<span style="color: #339933; font-weight: bold;">.</span>Xlib 
<span style="color: #06c; font-weight: bold;">import</span> Data<span style="color: #339933; font-weight: bold;">.</span>List 
<span style="color: #06c; font-weight: bold;">import</span> <span style="color: #06c; font-weight: bold;">qualified</span> Data<span style="color: #339933; font-weight: bold;">.</span>Map <span style="color: #06c; font-weight: bold;">as</span> M
<span style="color: #06c; font-weight: bold;">import</span> System<span style="color: #339933; font-weight: bold;">.</span><span style="color: #cccc00; font-weight: bold;">IO</span>
&nbsp;
main <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #06c; font-weight: bold;">do</span>
  dzenproc <span style="color: #339933; font-weight: bold;">&lt;-</span> spawnPipe myStatusBar
  conkyproc <span style="color: #339933; font-weight: bold;">&lt;-</span> spawnPipe myConkyBar
  spawn myTrayer
  xmonad <span style="color: #339933; font-weight: bold;">$</span> withUrgencyHook NoUrgencyHook
    <span style="color: #339933; font-weight: bold;">$</span> defaultConfig <span style="color: green;">&#123;</span>
         manageHook <span style="color: #339933; font-weight: bold;">=</span> manageDocks <span style="color: #339933; font-weight: bold;">&lt;+&gt;</span> myManageHook <span style="color: #339933; font-weight: bold;">&lt;+&gt;</span> manageHook defaultConfig
         <span style="color: #339933; font-weight: bold;">,</span> layoutHook <span style="color: #339933; font-weight: bold;">=</span> avoidStruts <span style="color: #339933; font-weight: bold;">$</span> smartBorders <span style="color: #339933; font-weight: bold;">$</span>  layoutHook defaultConfig
         <span style="color: #339933; font-weight: bold;">,</span> logHook <span style="color: #339933; font-weight: bold;">=</span> dynamicLogWithPP <span style="color: #339933; font-weight: bold;">$</span> myDzenPP dzenproc
         <span style="color: #339933; font-weight: bold;">,</span> modMask <span style="color: #339933; font-weight: bold;">=</span> myModKey     <span style="color: #5d478b; font-style: italic;">-- Rebind Mod to the Windows key</span>
         <span style="color: #339933; font-weight: bold;">,</span> focusFollowsMouse <span style="color: #339933; font-weight: bold;">=</span> False
         <span style="color: #339933; font-weight: bold;">,</span> workspaces <span style="color: #339933; font-weight: bold;">=</span> myWorkspaces
         <span style="color: #339933; font-weight: bold;">,</span> terminal <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;urxvt&quot;</span>
         <span style="color: green;">&#125;</span> `additionalKeysP` myKeys
&nbsp;
myManageHook <span style="color: #339933; font-weight: bold;">=</span> scratchpadManageHook <span style="color: green;">&#40;</span>W<span style="color: #339933; font-weight: bold;">.</span>RationalRect <span style="color: red;">0.3</span> <span style="color: red;">0.2</span> <span style="color: red;">0.4</span> <span style="color: red;">0.4</span><span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">&lt;+&gt;</span> 
               <span style="color: green;">&#40;</span>composeAll <span style="color: #339933; font-weight: bold;">.</span> <span style="font-weight: bold;">concat</span> <span style="color: #339933; font-weight: bold;">$</span>
                <span style="color: green;">&#91;</span> <span style="color: green;">&#91;</span> isDialog <span style="color: #339933; font-weight: bold;">--&gt;</span> doFloat<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span>className <span style="color: #339933; font-weight: bold;">=?</span> c <span style="color: #339933; font-weight: bold;">--&gt;</span> doFloat <span style="color: #339933; font-weight: bold;">|</span> c <span style="color: #339933; font-weight: bold;">&lt;-</span> myCFloats<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span>title <span style="color: #339933; font-weight: bold;">=?</span> t <span style="color: #339933; font-weight: bold;">--&gt;</span> doFloat <span style="color: #339933; font-weight: bold;">|</span> t <span style="color: #339933; font-weight: bold;">&lt;-</span> myTFloats<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span>resource <span style="color: #339933; font-weight: bold;">=?</span> r <span style="color: #339933; font-weight: bold;">--&gt;</span> doFloat <span style="color: #339933; font-weight: bold;">|</span> r <span style="color: #339933; font-weight: bold;">&lt;-</span> myRFloats<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span> <span style="font-weight: bold;">fmap</span> <span style="color: green;">&#40;</span> c `isInfixOf`<span style="color: green;">&#41;</span> className <span style="color: #339933; font-weight: bold;">--&gt;</span> doFloat <span style="color: #339933; font-weight: bold;">|</span> c <span style="color: #339933; font-weight: bold;">&lt;-</span> myMatchAnywhereFloatsC <span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span> <span style="font-weight: bold;">fmap</span> <span style="color: green;">&#40;</span> c `isInfixOf`<span style="color: green;">&#41;</span> title     <span style="color: #339933; font-weight: bold;">--&gt;</span> doFloat <span style="color: #339933; font-weight: bold;">|</span> c <span style="color: #339933; font-weight: bold;">&lt;-</span> myMatchAnywhereFloatsT <span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span>resource <span style="color: #339933; font-weight: bold;">=?</span> i <span style="color: #339933; font-weight: bold;">--&gt;</span> doIgnore <span style="color: #339933; font-weight: bold;">|</span> i <span style="color: #339933; font-weight: bold;">&lt;-</span> myIgnores<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span>isFullscreen <span style="color: #339933; font-weight: bold;">--&gt;</span> <span style="color: green;">&#40;</span>doF W<span style="color: #339933; font-weight: bold;">.</span>focusDown <span style="color: #339933; font-weight: bold;">&lt;+&gt;</span> doFullFloat<span style="color: green;">&#41;</span><span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShift <span style="background-color: #3cb371;">&quot;1:web&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my1Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShift <span style="background-color: #3cb371;">&quot;2:comm&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my2Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShift <span style="background-color: #3cb371;">&quot;3:office&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my3Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShift <span style="background-color: #3cb371;">&quot;4:dev&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my4Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShiftAndGo <span style="background-color: #3cb371;">&quot;5:video&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my5Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShiftAndGo <span style="background-color: #3cb371;">&quot;6&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my6Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShiftAndGo <span style="background-color: #3cb371;">&quot;7&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my7Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShiftAndGo <span style="background-color: #3cb371;">&quot;8&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my8Shifts<span style="color: green;">&#93;</span>
    <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#91;</span><span style="color: green;">&#40;</span>className <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> title <span style="color: #339933; font-weight: bold;">=?</span> x <span style="color: #339933; font-weight: bold;">&lt;||&gt;</span> resource <span style="color: #339933; font-weight: bold;">=?</span> x<span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">--&gt;</span> doShiftAndGo <span style="background-color: #3cb371;">&quot;9:misc&quot;</span> <span style="color: #339933; font-weight: bold;">|</span> x <span style="color: #339933; font-weight: bold;">&lt;-</span> my9Shifts<span style="color: green;">&#93;</span>
    <span style="color: green;">&#93;</span> <span style="color: green;">&#41;</span>
    <span style="color: #06c; font-weight: bold;">where</span>
      doShiftAndGo <span style="color: #339933; font-weight: bold;">=</span> doF <span style="color: #339933; font-weight: bold;">.</span> liftM2 <span style="color: green;">&#40;</span><span style="color: #339933; font-weight: bold;">.</span><span style="color: green;">&#41;</span> W<span style="color: #339933; font-weight: bold;">.</span>greedyView W<span style="color: #339933; font-weight: bold;">.</span>shift
      myCFloats <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;Nitrogen&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Nvidia-settings&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Transmission-gtk&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Xmessage&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Gimp&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Tracker-search-tool&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Qjackctl&quot;</span><span style="color: green;">&#93;</span>
      myTFloats <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;Downloads&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Firefox Preferences&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Save As...&quot;</span><span style="color: green;">&#93;</span>
      myRFloats <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="color: green;">&#93;</span>
      myMatchAnywhereFloatsC <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;Ardour&quot;</span><span style="color: green;">&#93;</span>
      myMatchAnywhereFloatsT <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="color: green;">&#93;</span>
      myIgnores <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="color: green;">&#93;</span>
      my1Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;Firefox&quot;</span><span style="color: green;">&#93;</span>
      my2Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;Thunderbird&quot;</span><span style="color: green;">&#93;</span>
      my3Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;libreoffice-startcenter&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;libreoffice-writer&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;Libreoffice&quot;</span><span style="color: green;">&#93;</span>
      my4Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;emacs&quot;</span><span style="color: green;">&#93;</span>
      my5Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;Vlc&quot;</span><span style="color: green;">&#93;</span>
      my6Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="color: green;">&#93;</span>
      my7Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="color: green;">&#93;</span>
      my8Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="color: green;">&#93;</span>
      my9Shifts <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="color: green;">&#93;</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">-- Theme settings</span>
myFont <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;-*-terminus-*-*-*-*-14-*-*-*-*-*-iso8859-*&quot;</span>
&nbsp;
myNormalFGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#ffffff&quot;</span>
myNormalBGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#000000&quot;</span>
myFocusedFGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#ff8888&quot;</span>
myFocusedBGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#555555&quot;</span>
myVisibleFGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#ffffff&quot;</span>
myVisibleBGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#555555&quot;</span>
myHiddenFGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#d0d0d0&quot;</span>
myHiddenBGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#000000&quot;</span>
myUrgentFGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#ffffff&quot;</span>
myUrgentBGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#ff0000&quot;</span>
myHighlightedFGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#FFFFFF&quot;</span>
myHighlightedBGColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#222222&quot;</span>
mySeperatorColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#555555&quot;</span>
myTitleColor <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;#9F9FFF&quot;</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">--Shell prompt settings               </span>
myXPConfig <span style="color: #339933; font-weight: bold;">=</span> defaultXPConfig <span style="color: green;">&#123;</span>
  position <span style="color: #339933; font-weight: bold;">=</span> Bottom<span style="color: #339933; font-weight: bold;">,</span>
  promptBorderWidth <span style="color: #339933; font-weight: bold;">=</span> <span style="color: red;">0</span><span style="color: #339933; font-weight: bold;">,</span>
  height <span style="color: #339933; font-weight: bold;">=</span> <span style="color: red;">24</span><span style="color: #339933; font-weight: bold;">,</span>
  bgColor <span style="color: #339933; font-weight: bold;">=</span> myNormalBGColor<span style="color: #339933; font-weight: bold;">,</span>
  fgColor <span style="color: #339933; font-weight: bold;">=</span> myNormalFGColor<span style="color: #339933; font-weight: bold;">,</span>
  fgHLight <span style="color: #339933; font-weight: bold;">=</span> myHighlightedFGColor<span style="color: #339933; font-weight: bold;">,</span>
  bgHLight <span style="color: #339933; font-weight: bold;">=</span> myHighlightedBGColor<span style="color: #339933; font-weight: bold;">,</span>
  font <span style="color: #339933; font-weight: bold;">=</span> myFont
  <span style="color: green;">&#125;</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">-- Define workspaces</span>
myWorkspaces <span style="color: #339933; font-weight: bold;">=</span> <span style="color: green;">&#91;</span><span style="background-color: #3cb371;">&quot;1:web&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;2:comm&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;3:office&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;4:dev&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;5:video&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;6&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;7&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;8&quot;</span><span style="color: #339933; font-weight: bold;">,</span> <span style="background-color: #3cb371;">&quot;9:misc&quot;</span><span style="color: green;">&#93;</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">-- Modified key bindings</span>
myModKey <span style="color: #339933; font-weight: bold;">=</span> mod4Mask
myKeys <span style="color: #339933; font-weight: bold;">=</span> 
  <span style="color: green;">&#91;</span>
  <span style="color: #5d478b; font-style: italic;">-- Use shellPrompt instead of default dmenu</span>
  <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-p&quot;</span><span style="color: #339933; font-weight: bold;">,</span> shellPrompt myXPConfig<span style="color: green;">&#41;</span>
  <span style="color: #5d478b; font-style: italic;">-- Do not leave useless conky, dzen and trayer after restart</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-q&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;killall trayer conky dzen2; xmonad --recompile; xmonad --restart&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-s&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;dbus-send --system --print-reply --dest=<span style="background-color: #3cb371; font-weight: bold;">\&quot;</span>org.freedesktop.UPower<span style="background-color: #3cb371; font-weight: bold;">\&quot;</span> /org/freedesktop/UPower org.freedesktop.UPower.Suspend&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-t&quot;</span><span style="color: #339933; font-weight: bold;">,</span> scratchpadSpawnAction defaultConfig <span style="color: green;">&#123;</span>terminal <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;urxvt&quot;</span><span style="color: green;">&#125;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;&lt;XF86AudioLowerVolume&gt;&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;amixer sset Master 3dB- unmute&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;&lt;XF86AudioRaiseVolume&gt;&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;amixer sset Master 3dB+ unmute&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;&lt;XF86Eject&gt;&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;eject -T&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-g&quot;</span><span style="color: #339933; font-weight: bold;">,</span> gotoMenu<span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-b&quot;</span><span style="color: #339933; font-weight: bold;">,</span> bringMenu<span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-f&quot;</span><span style="color: #339933; font-weight: bold;">,</span> focusUrgent<span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-x&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;transmission-gtk&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-p&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;tracker-search-tool&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-s&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;setxkbmap se -variant svoraka2&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: #339933; font-weight: bold;">,</span> <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;M-S-o&quot;</span><span style="color: #339933; font-weight: bold;">,</span> spawn <span style="background-color: #3cb371;">&quot;setxkbmap se -variant mac&quot;</span><span style="color: green;">&#41;</span>
  <span style="color: green;">&#93;</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">-- PP used to generate log data for dzen</span>
myDzenPP h <span style="color: #339933; font-weight: bold;">=</span> defaultPP
    <span style="color: green;">&#123;</span> ppSep <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot; &quot;</span>
    <span style="color: #339933; font-weight: bold;">,</span> ppWsSep <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;&quot;</span>
    <span style="color: #339933; font-weight: bold;">,</span> ppCurrent <span style="color: #339933; font-weight: bold;">=</span> wrap <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;^fg(&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myFocusedFGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;)^bg(&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myFocusedBGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;) &quot;</span><span style="color: green;">&#41;</span> <span style="background-color: #3cb371;">&quot; ^fg()^bg()^p()&quot;</span> <span style="color: #339933; font-weight: bold;">.</span> \wsId <span style="color: #339933; font-weight: bold;">-&gt;</span> dropIx wsId
    <span style="color: #339933; font-weight: bold;">,</span> ppVisible <span style="color: #339933; font-weight: bold;">=</span> wrap <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;^fg(&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myVisibleFGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;)^bg(&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myVisibleBGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;) &quot;</span><span style="color: green;">&#41;</span> <span style="background-color: #3cb371;">&quot; ^fg()^bg()^p()&quot;</span> <span style="color: #339933; font-weight: bold;">.</span> \wsId <span style="color: #339933; font-weight: bold;">-&gt;</span> dropIx wsId
    <span style="color: #339933; font-weight: bold;">,</span> ppHidden <span style="color: #339933; font-weight: bold;">=</span> wrap <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;^fg(&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myHiddenFGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;) &quot;</span><span style="color: green;">&#41;</span> <span style="background-color: #3cb371;">&quot; &quot;</span> <span style="color: #339933; font-weight: bold;">.</span> noScratchPad <span style="color: #339933; font-weight: bold;">.</span> \wsId <span style="color: #339933; font-weight: bold;">-&gt;</span> dropIx wsId
    <span style="color: #339933; font-weight: bold;">,</span> ppUrgent <span style="color: #339933; font-weight: bold;">=</span>  wrap <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;^bg(&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myUrgentBGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;)&quot;</span><span style="color: green;">&#41;</span> <span style="background-color: #3cb371;">&quot;^bg()&quot;</span>
    <span style="color: #339933; font-weight: bold;">,</span> ppTitle <span style="color: #339933; font-weight: bold;">=</span> dzenColor <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myTitleColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;&quot;</span><span style="color: green;">&#41;</span> <span style="background-color: #3cb371;">&quot;&quot;</span> <span style="color: #339933; font-weight: bold;">.</span> wrap <span style="background-color: #3cb371;">&quot;&lt; &quot;</span> <span style="background-color: #3cb371;">&quot; &gt;&quot;</span>
    <span style="color: #339933; font-weight: bold;">,</span> ppLayout <span style="color: #339933; font-weight: bold;">=</span> dzenColor <span style="color: green;">&#40;</span><span style="background-color: #3cb371;">&quot;&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myNormalFGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;&quot;</span><span style="color: green;">&#41;</span> <span style="background-color: #3cb371;">&quot;&quot;</span> <span style="color: #339933; font-weight: bold;">.</span>
        <span style="color: green;">&#40;</span>\x <span style="color: #339933; font-weight: bold;">-&gt;</span> <span style="color: #06c; font-weight: bold;">case</span> x <span style="color: #06c; font-weight: bold;">of</span>
        <span style="background-color: #3cb371;">&quot;Full&quot;</span> <span style="color: #339933; font-weight: bold;">-&gt;</span> <span style="background-color: #3cb371;">&quot;[ ]&quot;</span>
        <span style="background-color: #3cb371;">&quot;Tall&quot;</span> <span style="color: #339933; font-weight: bold;">-&gt;</span> <span style="background-color: #3cb371;">&quot;[|]&quot;</span>
        <span style="background-color: #3cb371;">&quot;Mirror Tall&quot;</span> <span style="color: #339933; font-weight: bold;">-&gt;</span> <span style="background-color: #3cb371;">&quot;[-]&quot;</span>
        <span style="color: #339933; font-weight: bold;">_</span> <span style="color: #339933; font-weight: bold;">-&gt;</span> x
        <span style="color: green;">&#41;</span> 
    <span style="color: #339933; font-weight: bold;">,</span> ppSort <span style="color: #339933; font-weight: bold;">=</span> getSortByXineramaRule
    <span style="color: #339933; font-weight: bold;">,</span> ppOrder <span style="color: #339933; font-weight: bold;">=</span> \<span style="color: green;">&#40;</span>ws:l:t:<span style="color: #339933; font-weight: bold;">_</span><span style="color: green;">&#41;</span> <span style="color: #339933; font-weight: bold;">-&gt;</span> <span style="color: green;">&#91;</span>ws<span style="color: green;">&#93;</span> <span style="color: #339933; font-weight: bold;">++</span> <span style="color: green;">&#91;</span>l<span style="color: green;">&#93;</span> <span style="color: #339933; font-weight: bold;">++</span> <span style="color: green;">&#91;</span>t<span style="color: green;">&#93;</span> 
    <span style="color: #339933; font-weight: bold;">,</span> ppOutput <span style="color: #339933; font-weight: bold;">=</span> hPutStrLn h
    <span style="color: green;">&#125;</span>
   <span style="color: #06c; font-weight: bold;">where</span>
     dropIx wsId <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #06c; font-weight: bold;">if</span> <span style="color: green;">&#40;</span>':' `<span style="font-weight: bold;">elem</span>` wsId<span style="color: green;">&#41;</span> <span style="color: #06c; font-weight: bold;">then</span> <span style="font-weight: bold;">drop</span> <span style="color: red;">2</span> wsId <span style="color: #06c; font-weight: bold;">else</span> wsId <span style="color: #5d478b; font-style: italic;">--Remove the digit before the workspace name when displaying</span>
     noScratchPad ws <span style="color: #339933; font-weight: bold;">=</span> <span style="color: #06c; font-weight: bold;">if</span> ws <span style="color: #339933; font-weight: bold;">==</span> <span style="background-color: #3cb371;">&quot;NSP&quot;</span> <span style="color: #06c; font-weight: bold;">then</span> <span style="background-color: #3cb371;">&quot;&quot;</span> <span style="color: #06c; font-weight: bold;">else</span> ws <span style="color: #5d478b; font-style: italic;">--Hide the workspace where the scratchpad is hidden away to</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">--Set up dzen2 for the status bar on Xinerama screen 1</span>
myStatusBar <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;dzen2 -xs 1 -x '0' -y '0' -h '18' -w '1428' -ta 'l' -fg '&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myNormalFGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;' -bg '&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myNormalBGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;' -fn '&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myFont <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;'&quot;</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">--Conky is piped into a secon instance of dzen2. Conky settings are read from .xmonad/conky_bar</span>
myConkyBar <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;conky -c '.xmonad/conky_bar' | dzen2 -xs 1 -x '1428' -y '0' -h '18' -w '300' -ta 'l' -fg '&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myNormalFGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;' -bg '&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myNormalBGColor <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;' -fn '&quot;</span> <span style="color: #339933; font-weight: bold;">++</span> myFont <span style="color: #339933; font-weight: bold;">++</span> <span style="background-color: #3cb371;">&quot;'&quot;</span>
&nbsp;
<span style="color: #5d478b; font-style: italic;">--Set up trayer in the top right corner</span>
myTrayer <span style="color: #339933; font-weight: bold;">=</span> <span style="background-color: #3cb371;">&quot;trayer --edge top --align right --SetDockType true --SetPartialStrut true --expand true --widthtype pixel --width 192 --transparent true --alpha 0 --tint 0x000000 --heighttype pixel --height 18&quot;</span></pre></td></tr></table></div></div>

]]></content:encoded>
			<wfw:commentRss>http://swedberg.info/2011/04/xmonad-som-f%c3%b6nsterhanterare/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

