machines 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +11 -0
- data/EXAMPLES.md +18 -0
- data/Gemfile +4 -0
- data/Guardfile +14 -0
- data/INSTALL.md +25 -0
- data/LICENSE +23 -0
- data/README.md +271 -0
- data/Rakefile +60 -0
- data/TODO.md +92 -0
- data/bin/machines +6 -0
- data/lib/machines/app_settings.rb +54 -0
- data/lib/machines/base.rb +13 -0
- data/lib/machines/checks.rb +63 -0
- data/lib/machines/cloud_machine.rb +33 -0
- data/lib/machines/command.rb +86 -0
- data/lib/machines/commandline.rb +148 -0
- data/lib/machines/configuration.rb +49 -0
- data/lib/machines/core.rb +117 -0
- data/lib/machines/database.rb +17 -0
- data/lib/machines/file_operations.rb +104 -0
- data/lib/machines/help.rb +30 -0
- data/lib/machines/installation.rb +151 -0
- data/lib/machines/log_command.rb +22 -0
- data/lib/machines/logger.rb +65 -0
- data/lib/machines/machinesfile.rb +25 -0
- data/lib/machines/named_buffer.rb +9 -0
- data/lib/machines/questions.rb +15 -0
- data/lib/machines/services.rb +24 -0
- data/lib/machines/upload.rb +29 -0
- data/lib/machines/version.rb +4 -0
- data/lib/machines.rb +19 -0
- data/lib/packages/abiword.rb +11 -0
- data/lib/packages/amazon_mp3.rb +4 -0
- data/lib/packages/awstats.rb +16 -0
- data/lib/packages/base.rb +14 -0
- data/lib/packages/chrome.rb +12 -0
- data/lib/packages/cruisecontrol.rb +22 -0
- data/lib/packages/dependencies.rb +10 -0
- data/lib/packages/docky.rb +36 -0
- data/lib/packages/dotfiles.rb +26 -0
- data/lib/packages/file_roller.rb +12 -0
- data/lib/packages/finalise.rb +4 -0
- data/lib/packages/firefox.rb +4 -0
- data/lib/packages/gedit.rb +11 -0
- data/lib/packages/git.rb +4 -0
- data/lib/packages/gmate.rb +33 -0
- data/lib/packages/gnome.rb +10 -0
- data/lib/packages/gnumeric.rb +11 -0
- data/lib/packages/hosts.rb +13 -0
- data/lib/packages/load_machines.rb +38 -0
- data/lib/packages/monit.rb +10 -0
- data/lib/packages/mysql.rb +46 -0
- data/lib/packages/nginx.rb +22 -0
- data/lib/packages/nginx_logrotate.rb +26 -0
- data/lib/packages/openbox.rb +35 -0
- data/lib/packages/passenger.rb +14 -0
- data/lib/packages/passenger_nginx.rb +8 -0
- data/lib/packages/postfix.rb +10 -0
- data/lib/packages/questions.rb +5 -0
- data/lib/packages/rbenv.rb +27 -0
- data/lib/packages/rvm.rb +20 -0
- data/lib/packages/save_machines.rb +4 -0
- data/lib/packages/slim.rb +6 -0
- data/lib/packages/sqlserver.rb +5 -0
- data/lib/packages/subtle.rb +29 -0
- data/lib/packages/sudo_mods.rb +6 -0
- data/lib/packages/time.rb +6 -0
- data/lib/packages/time_daily.rb +5 -0
- data/lib/packages/timezone.rb +10 -0
- data/lib/packages/unison.rb +5 -0
- data/lib/packages/virtualbox.rb +11 -0
- data/lib/packages/virtualbox_guest.rb +7 -0
- data/lib/packages/webapps.rb +36 -0
- data/lib/template/Machinesfile +48 -0
- data/lib/template/certificates/example.com.crt +0 -0
- data/lib/template/certificates/example.com.key +0 -0
- data/lib/template/certificates/selfsigned.crt +14 -0
- data/lib/template/certificates/selfsigned.key +16 -0
- data/lib/template/config.yml +98 -0
- data/lib/template/logrotate/app.erb +10 -0
- data/lib/template/logrotate/nginx.erb +12 -0
- data/lib/template/machines.yml +179 -0
- data/lib/template/misc/awstats.conf.erb +7 -0
- data/lib/template/misc/ntp.conf +7 -0
- data/lib/template/monit/conf.d/delayed_job.erb +11 -0
- data/lib/template/monit/conf.d/mysql.erb +7 -0
- data/lib/template/monit/conf.d/nginx +5 -0
- data/lib/template/monit/conf.d/postfix +7 -0
- data/lib/template/monit/conf.d/ssh +6 -0
- data/lib/template/monit/conf.d/system.erb +14 -0
- data/lib/template/monit/monitrc.erb +10 -0
- data/lib/template/monit/upstart.conf +16 -0
- data/lib/template/mysql/dbmaster.cnf +7 -0
- data/lib/template/mysql/dbslave.cnf +3 -0
- data/lib/template/nginx/app_server.conf.erb +87 -0
- data/lib/template/nginx/nginx.conf.erb +46 -0
- data/lib/template/nginx/upstart.conf.erb +21 -0
- data/lib/template/packages/custom.rb +17 -0
- data/lib/template/packages/productivity.rb +18 -0
- data/lib/template/slim/themes/dark/background.jpg +0 -0
- data/lib/template/slim/themes/dark/panel.png +0 -0
- data/lib/template/slim/themes/dark/slim.theme +39 -0
- data/lib/template/users/phil/dotfiles/bash_aliases +45 -0
- data/lib/template/users/phil/dotfiles/config/Trolltech.conf +4 -0
- data/lib/template/users/phil/dotfiles/config/gtk-3.0/settings.ini +9 -0
- data/lib/template/users/phil/dotfiles/config/openbox/autostart.sh +14 -0
- data/lib/template/users/phil/dotfiles/config/openbox/rc.xml +482 -0
- data/lib/template/users/phil/dotfiles/config/terminator/config +10 -0
- data/lib/template/users/phil/dotfiles/fonts.conf +15 -0
- data/lib/template/users/phil/dotfiles/gitconfig +27 -0
- data/lib/template/users/phil/dotfiles/gtkrc-2.0 +16 -0
- data/lib/template/users/phil/dotfiles/local/share/applications/mimeapps.list +4 -0
- data/lib/template/users/phil/dotfiles/unison/default.prf +33 -0
- data/lib/template/users/www/authorized_keys +0 -0
- data/lib/template/users/www/dotfiles/bash_aliases +40 -0
- data/lib/template/webapps.yml +75 -0
- data/machines.gemspec +44 -0
- data/spec/acceptance/dev_machine_spec.rb +22 -0
- data/spec/lib/machines/app_settings_spec.rb +106 -0
- data/spec/lib/machines/checks_spec.rb +105 -0
- data/spec/lib/machines/cloud_machine_spec.rb +36 -0
- data/spec/lib/machines/command_spec.rb +184 -0
- data/spec/lib/machines/commandline_spec.rb +299 -0
- data/spec/lib/machines/configuration_spec.rb +61 -0
- data/spec/lib/machines/core_spec.rb +299 -0
- data/spec/lib/machines/database_spec.rb +51 -0
- data/spec/lib/machines/file_operations_spec.rb +124 -0
- data/spec/lib/machines/help_spec.rb +22 -0
- data/spec/lib/machines/installation_spec.rb +176 -0
- data/spec/lib/machines/log_command_spec.rb +16 -0
- data/spec/lib/machines/logger_spec.rb +70 -0
- data/spec/lib/machines/machinesfile_spec.rb +34 -0
- data/spec/lib/machines/questions_spec.rb +73 -0
- data/spec/lib/machines/services_spec.rb +26 -0
- data/spec/lib/machines/upload_spec.rb +86 -0
- data/spec/lib/packages/abiword_spec.rb +20 -0
- data/spec/lib/packages/amazon_mp3_spec.rb +17 -0
- data/spec/lib/packages/awstats_spec.rb +26 -0
- data/spec/lib/packages/base_spec.rb +21 -0
- data/spec/lib/packages/chrome_spec.rb +30 -0
- data/spec/lib/packages/cruisecontrol_spec.rb +33 -0
- data/spec/lib/packages/dependencies_spec.rb +20 -0
- data/spec/lib/packages/docky_spec.rb +32 -0
- data/spec/lib/packages/dotfiles_spec.rb +44 -0
- data/spec/lib/packages/file_roller_spec.rb +69 -0
- data/spec/lib/packages/firefox_spec.rb +16 -0
- data/spec/lib/packages/gedit_spec.rb +20 -0
- data/spec/lib/packages/git_spec.rb +16 -0
- data/spec/lib/packages/gmate_spec.rb +39 -0
- data/spec/lib/packages/gnome_spec.rb +22 -0
- data/spec/lib/packages/gnumeric_spec.rb +21 -0
- data/spec/lib/packages/hosts_spec.rb +41 -0
- data/spec/lib/packages/load_machines_spec.rb +118 -0
- data/spec/lib/packages/monit_spec.rb +34 -0
- data/spec/lib/packages/mysql_spec.rb +69 -0
- data/spec/lib/packages/nginx_logrotate_spec.rb +80 -0
- data/spec/lib/packages/nginx_spec.rb +46 -0
- data/spec/lib/packages/openbox_spec.rb +41 -0
- data/spec/lib/packages/passenger_nginx_spec.rb +20 -0
- data/spec/lib/packages/passenger_spec.rb +26 -0
- data/spec/lib/packages/postfix_spec.rb +19 -0
- data/spec/lib/packages/questions_spec.rb +29 -0
- data/spec/lib/packages/rbenv_spec.rb +32 -0
- data/spec/lib/packages/rvm_spec.rb +31 -0
- data/spec/lib/packages/save_machines_spec.rb +51 -0
- data/spec/lib/packages/slim_spec.rb +22 -0
- data/spec/lib/packages/sqlserver_spec.rb +17 -0
- data/spec/lib/packages/timezone_spec.rb +27 -0
- data/spec/lib/packages/unison_spec.rb +17 -0
- data/spec/lib/packages/virtualbox_guest_spec.rb +25 -0
- data/spec/lib/packages/virtualbox_spec.rb +23 -0
- data/spec/lib/packages/webapps_spec.rb +70 -0
- data/spec/spec_helper.rb +103 -0
- data/spec/support/coverage.rb +8 -0
- data/spec/support/fake_out.rb +22 -0
- data/spec/support/fakefs_additions.rb +10 -0
- data/spec/support/minitest.rb +69 -0
- data/spec/support/vm_control.rb +54 -0
- data/tmp/.gitkeep +0 -0
- metadata +581 -0
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<openbox_config xmlns="http://openbox.org/3.4/rc">
|
|
3
|
+
<resistance>
|
|
4
|
+
<strength>10</strength>
|
|
5
|
+
<screen_edge_strength>20</screen_edge_strength>
|
|
6
|
+
</resistance>
|
|
7
|
+
<focus>
|
|
8
|
+
<focusNew>yes</focusNew>
|
|
9
|
+
<followMouse>no</followMouse>
|
|
10
|
+
<focusLast>yes</focusLast>
|
|
11
|
+
<underMouse>no</underMouse>
|
|
12
|
+
<focusDelay>200</focusDelay>
|
|
13
|
+
<raiseOnFocus>no</raiseOnFocus>
|
|
14
|
+
</focus>
|
|
15
|
+
<placement>
|
|
16
|
+
<policy>Smart</policy>
|
|
17
|
+
<center>yes</center>
|
|
18
|
+
<monitor>Active</monitor>
|
|
19
|
+
<primaryMonitor>1</primaryMonitor>
|
|
20
|
+
</placement>
|
|
21
|
+
<theme>
|
|
22
|
+
<name>Onyx-black</name>
|
|
23
|
+
<titleLayout>NLIMC</titleLayout>
|
|
24
|
+
<keepBorder>yes</keepBorder>
|
|
25
|
+
<animateIconify>yes</animateIconify>
|
|
26
|
+
<font place="ActiveWindow">
|
|
27
|
+
<name>Ubuntu</name>
|
|
28
|
+
<size>8</size>
|
|
29
|
+
<weight>Bold</weight>
|
|
30
|
+
<slant>Normal</slant>
|
|
31
|
+
</font>
|
|
32
|
+
<font place="InactiveWindow">
|
|
33
|
+
<name>Ubuntu</name>
|
|
34
|
+
<size>8</size>
|
|
35
|
+
<weight>Bold</weight>
|
|
36
|
+
<slant>Normal</slant>
|
|
37
|
+
</font>
|
|
38
|
+
<font place="MenuHeader">
|
|
39
|
+
<name>Ubuntu Light</name>
|
|
40
|
+
<size>8</size>
|
|
41
|
+
<weight>Normal</weight>
|
|
42
|
+
<slant>Normal</slant>
|
|
43
|
+
</font>
|
|
44
|
+
<font place="MenuItem">
|
|
45
|
+
<name>Ubuntu Light</name>
|
|
46
|
+
<size>8</size>
|
|
47
|
+
<weight>Normal</weight>
|
|
48
|
+
<slant>Normal</slant>
|
|
49
|
+
</font>
|
|
50
|
+
<font place="OnScreenDisplay">
|
|
51
|
+
<name>Ubuntu</name>
|
|
52
|
+
<size>8</size>
|
|
53
|
+
<weight>Bold</weight>
|
|
54
|
+
<slant>Normal</slant>
|
|
55
|
+
</font>
|
|
56
|
+
</theme>
|
|
57
|
+
<desktops>
|
|
58
|
+
<number>1</number>
|
|
59
|
+
<firstdesk>1</firstdesk>
|
|
60
|
+
<popupTime>875</popupTime>
|
|
61
|
+
</desktops>
|
|
62
|
+
<resize>
|
|
63
|
+
<drawContents>yes</drawContents>
|
|
64
|
+
<popupShow>Nonpixel</popupShow>
|
|
65
|
+
<popupPosition>Center</popupPosition>
|
|
66
|
+
<popupFixedPosition>
|
|
67
|
+
<x>10</x>
|
|
68
|
+
<y>10</y>
|
|
69
|
+
</popupFixedPosition>
|
|
70
|
+
</resize>
|
|
71
|
+
<margins>
|
|
72
|
+
<top>0</top>
|
|
73
|
+
<bottom>0</bottom>
|
|
74
|
+
<left>0</left>
|
|
75
|
+
<right>0</right>
|
|
76
|
+
</margins>
|
|
77
|
+
<dock>
|
|
78
|
+
<position>TopLeft</position>
|
|
79
|
+
<floatingX>0</floatingX>
|
|
80
|
+
<floatingY>0</floatingY>
|
|
81
|
+
<noStrut>no</noStrut>
|
|
82
|
+
<stacking>Above</stacking>
|
|
83
|
+
<direction>Vertical</direction>
|
|
84
|
+
<autoHide>no</autoHide>
|
|
85
|
+
<hideDelay>300</hideDelay>
|
|
86
|
+
<showDelay>300</showDelay>
|
|
87
|
+
<moveButton>Middle</moveButton>
|
|
88
|
+
</dock>
|
|
89
|
+
<keyboard>
|
|
90
|
+
<chainQuitKey>C-g</chainQuitKey>
|
|
91
|
+
<keybind key="W-d">
|
|
92
|
+
<action name="ToggleShowDesktop"/>
|
|
93
|
+
</keybind>
|
|
94
|
+
<keybind key="A-F4">
|
|
95
|
+
<action name="Close"/>
|
|
96
|
+
</keybind>
|
|
97
|
+
<keybind key="A-Escape">
|
|
98
|
+
<action name="Lower"/>
|
|
99
|
+
<action name="FocusToBottom"/>
|
|
100
|
+
<action name="Unfocus"/>
|
|
101
|
+
</keybind>
|
|
102
|
+
<keybind key="A-space">
|
|
103
|
+
<action name="ShowMenu">
|
|
104
|
+
<menu>client-menu</menu>
|
|
105
|
+
</action>
|
|
106
|
+
</keybind>
|
|
107
|
+
<keybind key="Print">
|
|
108
|
+
<action name="Execute">
|
|
109
|
+
<execute>gnome-screenshot</execute>
|
|
110
|
+
</action>
|
|
111
|
+
</keybind>
|
|
112
|
+
<keybind key="A-Print">
|
|
113
|
+
<action name="Execute">
|
|
114
|
+
<execute>gnome-screenshot -w</execute>
|
|
115
|
+
</action>
|
|
116
|
+
</keybind>
|
|
117
|
+
<keybind key="A-Tab">
|
|
118
|
+
<action name="NextWindow"/>
|
|
119
|
+
</keybind>
|
|
120
|
+
<keybind key="A-S-Tab">
|
|
121
|
+
<action name="PreviousWindow"/>
|
|
122
|
+
</keybind>
|
|
123
|
+
<keybind key="C-A-Tab">
|
|
124
|
+
<action name="NextWindow">
|
|
125
|
+
<panels>yes</panels>
|
|
126
|
+
<desktop>yes</desktop>
|
|
127
|
+
</action>
|
|
128
|
+
</keybind>
|
|
129
|
+
</keyboard>
|
|
130
|
+
<mouse>
|
|
131
|
+
<dragThreshold>8</dragThreshold>
|
|
132
|
+
<doubleClickTime>200</doubleClickTime>
|
|
133
|
+
<screenEdgeWarpTime>400</screenEdgeWarpTime>
|
|
134
|
+
<context name="Frame">
|
|
135
|
+
<mousebind button="A-Left" action="Press">
|
|
136
|
+
<action name="Focus"/>
|
|
137
|
+
<action name="Raise"/>
|
|
138
|
+
</mousebind>
|
|
139
|
+
<mousebind button="A-Left" action="Click">
|
|
140
|
+
<action name="Unshade"/>
|
|
141
|
+
</mousebind>
|
|
142
|
+
<mousebind button="A-Left" action="Drag">
|
|
143
|
+
<action name="Move"/>
|
|
144
|
+
</mousebind>
|
|
145
|
+
<mousebind button="A-Right" action="Press">
|
|
146
|
+
<action name="Focus"/>
|
|
147
|
+
<action name="Raise"/>
|
|
148
|
+
<action name="Unshade"/>
|
|
149
|
+
</mousebind>
|
|
150
|
+
<mousebind button="A-Right" action="Drag">
|
|
151
|
+
<action name="Resize"/>
|
|
152
|
+
</mousebind>
|
|
153
|
+
<mousebind button="A-Middle" action="Press">
|
|
154
|
+
<action name="Lower"/>
|
|
155
|
+
<action name="FocusToBottom"/>
|
|
156
|
+
<action name="Unfocus"/>
|
|
157
|
+
</mousebind>
|
|
158
|
+
<mousebind button="A-Up" action="Click">
|
|
159
|
+
<action name="DesktopPrevious"/>
|
|
160
|
+
</mousebind>
|
|
161
|
+
<mousebind button="A-Down" action="Click">
|
|
162
|
+
<action name="DesktopNext"/>
|
|
163
|
+
</mousebind>
|
|
164
|
+
<mousebind button="C-A-Up" action="Click">
|
|
165
|
+
<action name="DesktopPrevious"/>
|
|
166
|
+
</mousebind>
|
|
167
|
+
<mousebind button="C-A-Down" action="Click">
|
|
168
|
+
<action name="DesktopNext"/>
|
|
169
|
+
</mousebind>
|
|
170
|
+
<mousebind button="A-S-Up" action="Click">
|
|
171
|
+
<action name="SendToDesktopPrevious"/>
|
|
172
|
+
</mousebind>
|
|
173
|
+
<mousebind button="A-S-Down" action="Click">
|
|
174
|
+
<action name="SendToDesktopNext"/>
|
|
175
|
+
</mousebind>
|
|
176
|
+
</context>
|
|
177
|
+
<context name="Titlebar">
|
|
178
|
+
<mousebind button="Left" action="Press">
|
|
179
|
+
<action name="Focus"/>
|
|
180
|
+
<action name="Raise"/>
|
|
181
|
+
</mousebind>
|
|
182
|
+
<mousebind button="Left" action="Drag">
|
|
183
|
+
<action name="Move"/>
|
|
184
|
+
</mousebind>
|
|
185
|
+
<mousebind button="Left" action="DoubleClick">
|
|
186
|
+
<action name="ToggleMaximizeFull"/>
|
|
187
|
+
</mousebind>
|
|
188
|
+
<mousebind button="Middle" action="Press">
|
|
189
|
+
<action name="Lower"/>
|
|
190
|
+
<action name="FocusToBottom"/>
|
|
191
|
+
<action name="Unfocus"/>
|
|
192
|
+
</mousebind>
|
|
193
|
+
<mousebind button="Up" action="Click">
|
|
194
|
+
<action name="Shade"/>
|
|
195
|
+
<action name="FocusToBottom"/>
|
|
196
|
+
<action name="Unfocus"/>
|
|
197
|
+
<action name="Lower"/>
|
|
198
|
+
</mousebind>
|
|
199
|
+
<mousebind button="Down" action="Click">
|
|
200
|
+
<action name="Unshade"/>
|
|
201
|
+
<action name="Raise"/>
|
|
202
|
+
</mousebind>
|
|
203
|
+
<mousebind button="Right" action="Press">
|
|
204
|
+
<action name="Focus"/>
|
|
205
|
+
<action name="Raise"/>
|
|
206
|
+
<action name="ShowMenu">
|
|
207
|
+
<menu>client-menu</menu>
|
|
208
|
+
</action>
|
|
209
|
+
</mousebind>
|
|
210
|
+
</context>
|
|
211
|
+
<context name="Top">
|
|
212
|
+
<mousebind button="Left" action="Press">
|
|
213
|
+
<action name="Focus"/>
|
|
214
|
+
<action name="Raise"/>
|
|
215
|
+
<action name="Unshade"/>
|
|
216
|
+
</mousebind>
|
|
217
|
+
<mousebind button="Left" action="Drag">
|
|
218
|
+
<action name="Resize">
|
|
219
|
+
<edge>top</edge>
|
|
220
|
+
</action>
|
|
221
|
+
</mousebind>
|
|
222
|
+
</context>
|
|
223
|
+
<context name="Left">
|
|
224
|
+
<mousebind button="Left" action="Press">
|
|
225
|
+
<action name="Focus"/>
|
|
226
|
+
<action name="Raise"/>
|
|
227
|
+
</mousebind>
|
|
228
|
+
<mousebind button="Left" action="Drag">
|
|
229
|
+
<action name="Resize">
|
|
230
|
+
<edge>left</edge>
|
|
231
|
+
</action>
|
|
232
|
+
</mousebind>
|
|
233
|
+
<mousebind button="Right" action="Press">
|
|
234
|
+
<action name="Focus"/>
|
|
235
|
+
<action name="Raise"/>
|
|
236
|
+
<action name="ShowMenu">
|
|
237
|
+
<menu>client-menu</menu>
|
|
238
|
+
</action>
|
|
239
|
+
</mousebind>
|
|
240
|
+
</context>
|
|
241
|
+
<context name="Right">
|
|
242
|
+
<mousebind button="Left" action="Press">
|
|
243
|
+
<action name="Focus"/>
|
|
244
|
+
<action name="Raise"/>
|
|
245
|
+
</mousebind>
|
|
246
|
+
<mousebind button="Left" action="Drag">
|
|
247
|
+
<action name="Resize">
|
|
248
|
+
<edge>right</edge>
|
|
249
|
+
</action>
|
|
250
|
+
</mousebind>
|
|
251
|
+
<mousebind button="Right" action="Press">
|
|
252
|
+
<action name="Focus"/>
|
|
253
|
+
<action name="Raise"/>
|
|
254
|
+
<action name="ShowMenu">
|
|
255
|
+
<menu>client-menu</menu>
|
|
256
|
+
</action>
|
|
257
|
+
</mousebind>
|
|
258
|
+
</context>
|
|
259
|
+
<context name="Bottom">
|
|
260
|
+
<mousebind button="Left" action="Press">
|
|
261
|
+
<action name="Focus"/>
|
|
262
|
+
<action name="Raise"/>
|
|
263
|
+
</mousebind>
|
|
264
|
+
<mousebind button="Left" action="Drag">
|
|
265
|
+
<action name="Resize">
|
|
266
|
+
<edge>bottom</edge>
|
|
267
|
+
</action>
|
|
268
|
+
</mousebind>
|
|
269
|
+
<mousebind button="Middle" action="Press">
|
|
270
|
+
<action name="Lower"/>
|
|
271
|
+
<action name="FocusToBottom"/>
|
|
272
|
+
<action name="Unfocus"/>
|
|
273
|
+
</mousebind>
|
|
274
|
+
<mousebind button="Right" action="Press">
|
|
275
|
+
<action name="Focus"/>
|
|
276
|
+
<action name="Raise"/>
|
|
277
|
+
<action name="ShowMenu">
|
|
278
|
+
<menu>client-menu</menu>
|
|
279
|
+
</action>
|
|
280
|
+
</mousebind>
|
|
281
|
+
</context>
|
|
282
|
+
<context name="BLCorner">
|
|
283
|
+
<mousebind button="Left" action="Press">
|
|
284
|
+
<action name="Focus"/>
|
|
285
|
+
<action name="Raise"/>
|
|
286
|
+
</mousebind>
|
|
287
|
+
<mousebind button="Left" action="Drag">
|
|
288
|
+
<action name="Resize"/>
|
|
289
|
+
</mousebind>
|
|
290
|
+
</context>
|
|
291
|
+
<context name="BRCorner">
|
|
292
|
+
<mousebind button="Left" action="Press">
|
|
293
|
+
<action name="Focus"/>
|
|
294
|
+
<action name="Raise"/>
|
|
295
|
+
</mousebind>
|
|
296
|
+
<mousebind button="Left" action="Drag">
|
|
297
|
+
<action name="Resize"/>
|
|
298
|
+
</mousebind>
|
|
299
|
+
</context>
|
|
300
|
+
<context name="TLCorner">
|
|
301
|
+
<mousebind button="Left" action="Press">
|
|
302
|
+
<action name="Focus"/>
|
|
303
|
+
<action name="Raise"/>
|
|
304
|
+
<action name="Unshade"/>
|
|
305
|
+
</mousebind>
|
|
306
|
+
<mousebind button="Left" action="Drag">
|
|
307
|
+
<action name="Resize"/>
|
|
308
|
+
</mousebind>
|
|
309
|
+
</context>
|
|
310
|
+
<context name="TRCorner">
|
|
311
|
+
<mousebind button="Left" action="Press">
|
|
312
|
+
<action name="Focus"/>
|
|
313
|
+
<action name="Raise"/>
|
|
314
|
+
<action name="Unshade"/>
|
|
315
|
+
</mousebind>
|
|
316
|
+
<mousebind button="Left" action="Drag">
|
|
317
|
+
<action name="Resize"/>
|
|
318
|
+
</mousebind>
|
|
319
|
+
</context>
|
|
320
|
+
<context name="Client">
|
|
321
|
+
<mousebind button="Left" action="Press">
|
|
322
|
+
<action name="Focus"/>
|
|
323
|
+
<action name="Raise"/>
|
|
324
|
+
</mousebind>
|
|
325
|
+
<mousebind button="Middle" action="Press">
|
|
326
|
+
<action name="Focus"/>
|
|
327
|
+
<action name="Raise"/>
|
|
328
|
+
</mousebind>
|
|
329
|
+
<mousebind button="Right" action="Press">
|
|
330
|
+
<action name="Focus"/>
|
|
331
|
+
<action name="Raise"/>
|
|
332
|
+
</mousebind>
|
|
333
|
+
</context>
|
|
334
|
+
<context name="Icon">
|
|
335
|
+
<mousebind button="Left" action="Press">
|
|
336
|
+
<action name="Focus"/>
|
|
337
|
+
<action name="Raise"/>
|
|
338
|
+
<action name="Unshade"/>
|
|
339
|
+
<action name="ShowMenu">
|
|
340
|
+
<menu>client-menu</menu>
|
|
341
|
+
</action>
|
|
342
|
+
</mousebind>
|
|
343
|
+
<mousebind button="Right" action="Press">
|
|
344
|
+
<action name="Focus"/>
|
|
345
|
+
<action name="Raise"/>
|
|
346
|
+
<action name="ShowMenu">
|
|
347
|
+
<menu>client-menu</menu>
|
|
348
|
+
</action>
|
|
349
|
+
</mousebind>
|
|
350
|
+
</context>
|
|
351
|
+
<context name="AllDesktops">
|
|
352
|
+
<mousebind button="Left" action="Press">
|
|
353
|
+
<action name="Focus"/>
|
|
354
|
+
<action name="Raise"/>
|
|
355
|
+
<action name="Unshade"/>
|
|
356
|
+
</mousebind>
|
|
357
|
+
<mousebind button="Left" action="Click">
|
|
358
|
+
<action name="ToggleOmnipresent"/>
|
|
359
|
+
</mousebind>
|
|
360
|
+
</context>
|
|
361
|
+
<context name="Shade">
|
|
362
|
+
<mousebind button="Left" action="Press">
|
|
363
|
+
<action name="Focus"/>
|
|
364
|
+
<action name="Raise"/>
|
|
365
|
+
</mousebind>
|
|
366
|
+
<mousebind button="Left" action="Click">
|
|
367
|
+
<action name="ToggleShade"/>
|
|
368
|
+
</mousebind>
|
|
369
|
+
</context>
|
|
370
|
+
<context name="Iconify">
|
|
371
|
+
<mousebind button="Left" action="Press">
|
|
372
|
+
<action name="Focus"/>
|
|
373
|
+
<action name="Raise"/>
|
|
374
|
+
</mousebind>
|
|
375
|
+
<mousebind button="Left" action="Click">
|
|
376
|
+
<action name="Iconify"/>
|
|
377
|
+
</mousebind>
|
|
378
|
+
</context>
|
|
379
|
+
<context name="Maximize">
|
|
380
|
+
<mousebind button="Left" action="Press">
|
|
381
|
+
<action name="Focus"/>
|
|
382
|
+
<action name="Raise"/>
|
|
383
|
+
<action name="Unshade"/>
|
|
384
|
+
</mousebind>
|
|
385
|
+
<mousebind button="Middle" action="Press">
|
|
386
|
+
<action name="Focus"/>
|
|
387
|
+
<action name="Raise"/>
|
|
388
|
+
<action name="Unshade"/>
|
|
389
|
+
</mousebind>
|
|
390
|
+
<mousebind button="Right" action="Press">
|
|
391
|
+
<action name="Focus"/>
|
|
392
|
+
<action name="Raise"/>
|
|
393
|
+
<action name="Unshade"/>
|
|
394
|
+
</mousebind>
|
|
395
|
+
<mousebind button="Left" action="Click">
|
|
396
|
+
<action name="ToggleMaximizeFull"/>
|
|
397
|
+
</mousebind>
|
|
398
|
+
<mousebind button="Middle" action="Click">
|
|
399
|
+
<action name="ToggleMaximizeVert"/>
|
|
400
|
+
</mousebind>
|
|
401
|
+
<mousebind button="Right" action="Click">
|
|
402
|
+
<action name="ToggleMaximizeHorz"/>
|
|
403
|
+
</mousebind>
|
|
404
|
+
</context>
|
|
405
|
+
<context name="Close">
|
|
406
|
+
<mousebind button="Left" action="Press">
|
|
407
|
+
<action name="Focus"/>
|
|
408
|
+
<action name="Raise"/>
|
|
409
|
+
<action name="Unshade"/>
|
|
410
|
+
</mousebind>
|
|
411
|
+
<mousebind button="Left" action="Click">
|
|
412
|
+
<action name="Close"/>
|
|
413
|
+
</mousebind>
|
|
414
|
+
</context>
|
|
415
|
+
<context name="Desktop">
|
|
416
|
+
<mousebind button="Up" action="Click">
|
|
417
|
+
<action name="DesktopPrevious"/>
|
|
418
|
+
</mousebind>
|
|
419
|
+
<mousebind button="Down" action="Click">
|
|
420
|
+
<action name="DesktopNext"/>
|
|
421
|
+
</mousebind>
|
|
422
|
+
<mousebind button="A-Up" action="Click">
|
|
423
|
+
<action name="DesktopPrevious"/>
|
|
424
|
+
</mousebind>
|
|
425
|
+
<mousebind button="A-Down" action="Click">
|
|
426
|
+
<action name="DesktopNext"/>
|
|
427
|
+
</mousebind>
|
|
428
|
+
<mousebind button="C-A-Up" action="Click">
|
|
429
|
+
<action name="DesktopPrevious"/>
|
|
430
|
+
</mousebind>
|
|
431
|
+
<mousebind button="C-A-Down" action="Click">
|
|
432
|
+
<action name="DesktopNext"/>
|
|
433
|
+
</mousebind>
|
|
434
|
+
<mousebind button="Left" action="Press">
|
|
435
|
+
<action name="Focus"/>
|
|
436
|
+
<action name="Raise"/>
|
|
437
|
+
</mousebind>
|
|
438
|
+
<mousebind button="Right" action="Press">
|
|
439
|
+
<action name="Focus"/>
|
|
440
|
+
<action name="Raise"/>
|
|
441
|
+
</mousebind>
|
|
442
|
+
</context>
|
|
443
|
+
<context name="Root">
|
|
444
|
+
<mousebind button="Middle" action="Press">
|
|
445
|
+
<action name="ShowMenu">
|
|
446
|
+
<menu>client-list-combined-menu</menu>
|
|
447
|
+
</action>
|
|
448
|
+
</mousebind>
|
|
449
|
+
<mousebind button="Right" action="Press">
|
|
450
|
+
<action name="ShowMenu">
|
|
451
|
+
<menu>root-menu</menu>
|
|
452
|
+
</action>
|
|
453
|
+
</mousebind>
|
|
454
|
+
</context>
|
|
455
|
+
<context name="MoveResize">
|
|
456
|
+
<mousebind button="Up" action="Click">
|
|
457
|
+
<action name="DesktopPrevious"/>
|
|
458
|
+
</mousebind>
|
|
459
|
+
<mousebind button="Down" action="Click">
|
|
460
|
+
<action name="DesktopNext"/>
|
|
461
|
+
</mousebind>
|
|
462
|
+
<mousebind button="A-Up" action="Click">
|
|
463
|
+
<action name="DesktopPrevious"/>
|
|
464
|
+
</mousebind>
|
|
465
|
+
<mousebind button="A-Down" action="Click">
|
|
466
|
+
<action name="DesktopNext"/>
|
|
467
|
+
</mousebind>
|
|
468
|
+
</context>
|
|
469
|
+
</mouse>
|
|
470
|
+
<menu>
|
|
471
|
+
<file>menu.xml</file>
|
|
472
|
+
<hideDelay>200</hideDelay>
|
|
473
|
+
<middle>no</middle>
|
|
474
|
+
<submenuShowDelay>100</submenuShowDelay><!-- -1 = show only when clicked -->
|
|
475
|
+
<submenuHideDelay>400</submenuHideDelay><!-- -1 = hide only when another menu -->
|
|
476
|
+
<applicationIcons>yes</applicationIcons>
|
|
477
|
+
<manageDesktops>no</manageDesktops>
|
|
478
|
+
</menu>
|
|
479
|
+
<applications>
|
|
480
|
+
</applications>
|
|
481
|
+
</openbox_config>
|
|
482
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
|
|
3
|
+
<fontconfig>
|
|
4
|
+
<dir>~/.fonts</dir>
|
|
5
|
+
|
|
6
|
+
<match target="font">
|
|
7
|
+
<edit name="rgba" mode="assign"><const>rgb</const></edit>
|
|
8
|
+
<edit name="antialias" mode="assign"><bool>true</bool></edit>
|
|
9
|
+
<edit name="autohint" mode="assign"><bool>true</bool></edit>
|
|
10
|
+
<edit name="hinting" mode="assign"><bool>true</bool></edit>
|
|
11
|
+
<edit name="hintstyle" mode="assign"><const>hintslight</const></edit>
|
|
12
|
+
<edit name="lcdfilter" mode="assign"><const>lcddefault</const></edit>
|
|
13
|
+
</match>
|
|
14
|
+
</fontconfig>
|
|
15
|
+
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
[apply]
|
|
2
|
+
whitespace = nowarn
|
|
3
|
+
[user]
|
|
4
|
+
name = YOUR FULL NAME
|
|
5
|
+
email = YOUR_EMAIL@EXAMPLE.COM
|
|
6
|
+
[color]
|
|
7
|
+
ui = true
|
|
8
|
+
[alias]
|
|
9
|
+
st = status -s
|
|
10
|
+
ci = commit
|
|
11
|
+
br = branch
|
|
12
|
+
co = checkout
|
|
13
|
+
df = diff HEAD
|
|
14
|
+
lg = log -p
|
|
15
|
+
|
|
16
|
+
[branch]
|
|
17
|
+
autosetupmerge = true
|
|
18
|
+
[push]
|
|
19
|
+
default = matching
|
|
20
|
+
[core]
|
|
21
|
+
whitespace = -trailing-space
|
|
22
|
+
[github]
|
|
23
|
+
token = YOUR_GITHUB_TOKEN
|
|
24
|
+
user = YOUR_GITHUB_USERNAME
|
|
25
|
+
[merge]
|
|
26
|
+
ff = false
|
|
27
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
gtk-theme-name="Adwaita"
|
|
2
|
+
gtk-icon-theme-name="elementary-mono-dark"
|
|
3
|
+
gtk-font-name="Ubuntu Light 8"
|
|
4
|
+
gtk-cursor-theme-name="DMZ-White"
|
|
5
|
+
gtk-cursor-theme-size=0
|
|
6
|
+
gtk-toolbar-style=GTK_TOOLBAR_BOTH
|
|
7
|
+
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
|
|
8
|
+
gtk-button-images=1
|
|
9
|
+
gtk-menu-images=1
|
|
10
|
+
gtk-enable-event-sounds=1
|
|
11
|
+
gtk-enable-input-feedback-sounds=1
|
|
12
|
+
gtk-xft-antialias=1
|
|
13
|
+
gtk-xft-hinting=1
|
|
14
|
+
gtk-xft-hintstyle="hintfull"
|
|
15
|
+
gtk-xft-rgba="rgb"
|
|
16
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
perms = 0
|
|
2
|
+
batch = true
|
|
3
|
+
auto = true
|
|
4
|
+
silent = true
|
|
5
|
+
|
|
6
|
+
ignore = Path */.git
|
|
7
|
+
ignore = Path */.unison
|
|
8
|
+
ignore = Name *.log
|
|
9
|
+
ignore = Name temp.*
|
|
10
|
+
ignore = Name desktop.ini
|
|
11
|
+
ignore = Name AlbumArt*.jpg
|
|
12
|
+
ignore = Name Thumbs.db
|
|
13
|
+
|
|
14
|
+
# Central Server
|
|
15
|
+
root = ssh://phil@server//media/data
|
|
16
|
+
|
|
17
|
+
# Ubuntu Client
|
|
18
|
+
prefer = /home/phil
|
|
19
|
+
root = /home/phil
|
|
20
|
+
path = Documents
|
|
21
|
+
path = Pictures
|
|
22
|
+
path = Reference
|
|
23
|
+
path = Videos
|
|
24
|
+
|
|
25
|
+
# Windows Client
|
|
26
|
+
# sshcmd = C:\Users\phil\plink-cmd.bat
|
|
27
|
+
# prefer = E:/
|
|
28
|
+
# root = E:/
|
|
29
|
+
# path = Downloads
|
|
30
|
+
# path = Music
|
|
31
|
+
# path = Reference
|
|
32
|
+
# path = Studio
|
|
33
|
+
|
|
File without changes
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Output raw control characters in less (colors log files that use escape codes)
|
|
2
|
+
alias less='less -R'
|
|
3
|
+
|
|
4
|
+
alias g='gedit'
|
|
5
|
+
alias off='sudo shutdown now -P'
|
|
6
|
+
alias boot='sudo reboot'
|
|
7
|
+
|
|
8
|
+
# Create binstubs for bundler
|
|
9
|
+
alias bb='bundle --binstubs=.bin'
|
|
10
|
+
|
|
11
|
+
# Halve the size of all images in the current folder
|
|
12
|
+
alias halfsize='ls *.* | xargs -n1 --replace convert -verbose {} -resize 50% {}'
|
|
13
|
+
|
|
14
|
+
# Search a Rails project excluding non-source directories
|
|
15
|
+
function s {
|
|
16
|
+
grep --color=auto --exclude-dir={coverage,db,doc,.git,log,tmp,vendor,.yardoc} -r $* .
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
# Reset network interface
|
|
20
|
+
function ifr {
|
|
21
|
+
sudo ifdown eth0
|
|
22
|
+
sudo ifup eth0
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
# Get git branch name
|
|
26
|
+
parse_git_branch() {
|
|
27
|
+
git symbolic-ref -q HEAD 2> /dev/null | sed 's/refs\/heads\/\(.*\)/ \1/'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
# Colour-coded prompt
|
|
31
|
+
# machine-name current-dir rubyversion@gemset [branch] $
|
|
32
|
+
PURPLE="\[\e[0;35m\]"
|
|
33
|
+
BLUE="\[\e[0;34m\]"
|
|
34
|
+
RED="\[\e[0;31m\]"
|
|
35
|
+
YELLOW="\[\e[0;33m\]"
|
|
36
|
+
NORMAL="\[\e[m\]"
|
|
37
|
+
BRANCH="\$(parse_git_branch)"
|
|
38
|
+
# RVM="\$(~/.rvm/bin/rvm-prompt v g)" # Uncomment to enable rubyversion@gemset
|
|
39
|
+
PS1="$PURPLE\h $BLUE\w$RED$RVM$YELLOW$BRANCH $PURPLE\$$NORMAL "
|
|
40
|
+
|