E="enlightenment_remote"

`#{E} -resize-info-visible-set 0`
`#{E} -move-info-visible-set 0`
`#{E} -focus-policy-set SLOPPY`
`#{E} -always-click-to-focus-set 1`
`#{E} -focus-setting-set NEW_WINDOW`
`#{E} -edge-flip-set 0`
`#{E} -use-e-cursor-set 0`

[:container, :popup, :border].each do |context|
	[0, 1].each do |dir|
		[-1, 1].each do |z|
			[:none, :alt].each do |mod|
				[0, 1].each do |any_mod|
					[-1, 1].each do |arg|
						`#{E} -binding-wheel-del #{context.to_s.upcase} #{dir} #{z} #{mod.to_s.upcase} #{any_mod} desk_linear_flip_by #{arg}`
					end
				end
			end
		end
	end
end

["Left", "Right", "Up", "Down"].each do |key|
	["CTRL|ALT", "SHIFT|ALT"].each do |mod|
		["-1 0", "0 -1", "1 0", "0 1"].each do |arg|
			`#{E} -binding-key-del ANY #{key} "#{mod}" 0 desk_flip_by "#{arg}"`
		end

		`#{E} -binding-key-del ANY #{key} "#{mod}" 0 desk_linear_flip_by 1`
		`#{E} -binding-key-del ANY #{key} "#{mod}" 0 desk_linear_flip_by 0`
		`#{E} -binding-key-del ANY #{key} "#{mod}" 0 desk_linear_flip_by -1`
	end
end

{1 => -1, -1 => 1}.each do |z, arg|
	`#{E} -binding-wheel-add CONTAINER 0 #{z} NONE 1 desk_flip_by "#{arg} 0"`
end

`#{E} -binding-key-add ANY Left "CTRL|ALT" 0 desk_flip_by "-1 0"`
`#{E} -binding-key-add ANY Right "CTRL|ALT" 0 desk_flip_by "1 0"`
`#{E} -border-shade-animate-set 0`

`#{E} -binding-signal-add BORDER mouse,clicked,3 title NONE 1 window_menu ""`

`#{E} -binding-signal-del BORDER "mouse,wheel,?,1" title NONE 1 window_shaded "0 up"`
`#{E} -binding-signal-del BORDER "mouse,wheel,?,-1" title NONE 1 window_shaded "1 up"`

`#{E} -maximize-policy-set SMART`

%w{randr ibox start temperature battery clock cpufreq}.each do |m|
	`#{E} -module-unload #{b}`
end

`#{E} -module-load embrace #{b}`
