[HTC One X] ♀Mivahe:
First of all, a big thanks to kurniawan77 for letting me port his brilliant mod. (Original mod)

Mod info

4 versions regarding placement; left, center right and bottom

All versions available with battery %

All versions available with AOSP style recent apps (thanks hassan89)

Based on 3.14.401.31 SystemUI.apk

Compatible with de-odexed and odexed ROMs (3.14.xxx.xx)

De-odexed and zipaligned

Instant screen off button integrated in notification header or bottom

Longpress button and APM / Power menu shows up

Bottom version note:

You can touch the bottom anywhere between the dots for instant screen off and power menu.

Pressing the dots, left and right, will give you stock bottom behaviour.

How to include this mod in your project

Assuming you know how to decompile and recompile SystemUI.apk, you'll need to do following;

Add ic_sysbar_lock.png to drawable-xhdpi

Open ids.xml and add green colored

<item type="id" name="recent_inspect_item">false</item>
[COLOR="Green"] <item type="id" name="screen_lock_button">false</item>[/COLOR]
</resources>

Now you'll need to open status_bar_expanded_header.xml (left, center and right) or status_bar_expanded.xml (bottom)

You may need to remove some margins depending your desired placement.

Add green colored (status_bar_expanded_header) left, center or right

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
[COLOR="green"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/screen_lock_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginTop="1.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" systemui:keyCode="26" />[/COLOR]
<com.android.systemui.statusbar.policy.Clock android:textSize="36.0dip" android:textColor="@*android:color/white" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:singleLine="true" />

<com.android.systemui.statusbar.policy.Clock android:textSize="36.0dip" android:textColor="@*android:color/white" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:singleLine="true" />
[COLOR="green"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/screen_lock_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginTop="1.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" systemui:keyCode="26" />[/COLOR]
<com.android.systemui.statusbar.policy.DateView android:id="@id/date" android:layout_width="0.0px" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:maxLines="2" android:layout_weight="1.0" android:lineSpacingExtra="0.0dip" style="@com.htc:style/title_secondary_m" />

<com.android.systemui.statusbar.policy.DateView android:id="@id/date" android:layout_width="0.0px" android:layout_height="wrap_content" android:layout_marginLeft="10.0dip" android:layout_marginRight="10.0dip" android:maxLines="2" android:layout_weight="1.0" android:lineSpacingExtra="0.0dip" style="@com.htc:style/title_secondary_m" />
[COLOR="Green"]<com.android.systemui.statusbar.policy.KeyButtonView android:id="@id/screen_lock_button" android:layout_width="50.0dip" android:layout_height="50.0dip" android:layout_marginTop="1.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" systemui:keyCode="26" />[/COLOR]
<com.android.systemui.statusbar.RotationToggle android:id="@id/rotation_lock_button" android:visibility="gone"

Remove red colored, then add green colored (status_bar_expanded) bottom

<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/close" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="Red"] <com.android.systemui.statusbar.phone.CarrierLabel android:gravity="center" android:id="@id/carrier" android:layout_width="fill_parent" android:layout_height="fill_parent">
<TextView android:textAppearance="@com.htc:style/title_secondary_m" android:ellipsize="end" android:gravity="center" android:id="@id/plmnLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
<TextView android:textAppearance="@com.htc:style/title_secondary_m" android:ellipsize="end" android:gravity="center" android:id="@id/spnLabel" android:layout_width="wrap_content" android:layout_height="wrap_content" android:singleLine="true" />
</com.android.systemui.statusbar.phone.CarrierLabel>[/COLOR]
</com.android.systemui.statusbar.phone.CloseDragHandle>

<com.android.systemui.statusbar.phone.CloseDragHandle android:layout_gravity="bottom" android:orientation="horizontal" android:id="@id/close" android:background="@drawable/status_bar_close_on" android:layout_width="fill_parent" android:layout_height="wrap_content">
[COLOR="Green"] <com.android.systemui.statusbar.policy.KeyButtonView android:gravity="center" android:id="@id/screen_lock_button" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_marginTop="5.0dip" android:layout_marginBottom="5.0dip" android:src="@drawable/ic_sysbar_lock" android:scaleType="center" systemui:keyCode="26" />[/COLOR]
</com.android.systemui.statusbar.phone.CloseDragHandle>

If you are running a ROM with signatures check enabled you'll need to do the following after you compiled your mod:

Drag META-INF folder and AndroidManifest.xml from stock SystemUI.apk to your modded SystemUI.apk.

How to make your own centered clock version

Because there are 24 versions to maintain now, i'll not add centered clock versions. I'll share with you how you can do it yourself easily.

This method doesn't cause SystemUI FC's when playing videos in landscape.

Assuming you know how to decompile and recompile SystemUI.apk, you'll need to open res\layout\status_bar.xml

Add green colored

xmlns:systemui="http://schemas.android.com/apk/res/com.android.systemui">
[B][COLOR="Red"][COLOR="red"][COLOR="red"][COLOR="Green"]<LinearLayout android:gravity="center" android:orientation="horizontal" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0">
<com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="center" android:id="@id/clock" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />
</LinearLayout>[/COLOR][/COLOR][/COLOR][/COLOR][/B]
<ImageView android:id="@id/notification_lights_out" android:paddingLeft="6.0dip" android:paddingBottom="2.0dip" android:visibility="gone" android:layout_width="@dimen/status_bar_icon_size" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" />

Remove red colored

</LinearLayout>
[COLOR="Red"] <com.android.systemui.statusbar.policy.Clock android:textAppearance="@style/TextAppearance.StatusBar.Clock" android:textColor="@*android:color/white" android:gravity="left|center" android:id="@id/clock" android:paddingLeft="6.0dip" android:layout_width="wrap_content" android:layout_height="fill_parent" android:singleLine="true" />[/COLOR]
</LinearLayout>

If you are running a ROM with signatures check enabled you'll need to do the following after you compiled your mod:

Drag META-INF folder and AndroidManifest.xml from stock SystemUI.apk to your modded SystemUI.apk.

Download links

Stock: Left, Center, Right, Bottom

Including battery %: Left, Center, Right, Bottom

Including battery % blue: Left, Center, Right, Bottom

Including AOSP style recent apps: Left, Center, Right, Bottom

Including AOSP style recent apps + battery %: Left, Center, Right, Bottom

Including AOSP style recent apps + battery % blue: Left, Center, Right, Bottom

​