I have had a problem with using i3 as a window manager getting screen locking and suspend to work but this is how I got it fixed.

I had pm-suspend working from the terminal with sudo and i3lock installed.

The alias *pm-suspend i3lock*

Had the advantage of also locking the screen however it needed to be run with a sudo command and password.

With an edit through visudo
%users ALL = NOPASSWD: /usr/sbin/pm-suspend
it could be made so that you don’t need to type the password as the user, so the alias can become,

*sudo pm-suspend i3lock*

This got me thinking that it would be cool to be able to do this from a key press in i3 rather than a terminal.

The first part of doing this is to add the key short cut to .i3/config

bindsym $mod+p exec suspendandlock

then write a bash script into /usr/bin saved as suspendandlock


suspend and lock


sudo pm-suspend i3lock -c 000000

Finally we have to modify the sudoers file again with visudo and change the %users to %wheel.

%wheel ALL = NOPASSWD: /usr/sbin/pm-suspend

On Fedora 17 an additional edit is required with visudo, requiretty requires commenting out with visudo to be,

# Defaults requiretty

sECuRE from the i3 IRC chat helped out with the Fedora fix diagnosed through the log error.

requirement “uid >= 1000″ not met by user

within /var/log/secure

Now if everything is work mod+p will trigger power suspend and when you awake will ask for a password.

This comming weekend I am attending Ogg Camp 2012 in Liverpool, I am voluntering as part of the crew so I suspect it will be a busy weekend. The unconference, hosted by Linux Outlaws and the UK Ubuntu podcast is all about open culture and hardware hacking so should be really intrested. I hope to blog my way through the event here, but of course I might be to busy so shall see.

So its August and that means its almost September which means its CreativePact time.

You can find details about CreativePact online at http://creativepact.co.uk/.

CreativePact is a fun way of committing to do something everyday for a month, with a fun sense of community and a source of encouragement. It easy, basically you just commit to do something everyday and tag it #creativepact many people use tumblr or wordpress or you can host it yourself. The main thing is to think of something you would like to do but never have time to do, and then use creativepact as your excuse

My Past Creative Pacts

Last year in 2011 I did a podcast a day which provided a great excuse to talk to a wide range of people who interest me from all sort of activities. http://podcast.scotthewitt.co.uk/category/creative-pact-2011/

In 2010 I did some livecoding every day which was great for developing performance skills which I use within HELOpg. http://creativepact2010-scotthewitt.tumblr.com/

In 2009 I took part in Hackpact hosted by TOPLAP and committed to programming in ChucK everyday. http://www.ablelemon.co.uk/chuckaday/

My CreativePact 2012

This year I plan to continue my 2011 creative pact and restart my daily podcast. My hope is to make use of Google+ hangouts and foster use the podcast as a place to discuss topics, but its just a work in progress at the moment.

So freedom is important but so is working with MP3 files. The default Audacity package on Fedora does not have MP3 support which is understandable but a pest.

So here is how to get Audacity with MP3 support.

Firstly you need the rpmfusion repos,

su -c 'yum localinstall –nogpgcheck <a href="http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm">http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm</a> <a href="http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm">http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</a>'

then its as easy as

sudo yum install audacity-freeworld

and it is done.

Today I came across a Youtube parody video, Amazon Yesterdays Shipping.

While the video is created to be funny it does actually illustrate the key goal behind current Amazon plans that of reducing the delivery time between ordering and receiving goods.

From my experience within e-commerce customers have always been willing to pay for speed, even when a longer time service is free this offers a near ideal business scenario, advertise free delivery, on a slow service then offer a paid upgrade for a next day service.

As well as offering increased profitability as the extra payment tends to represent pure profit, the next day delivery service can also reduce insurance and storage costs and liabilities as well. The limitation to this technique tends to by within the human picking process with warehousing which can be expensive in terms of theft, wages and also inaccurate.

Amazon same delivery service is being enabled by enhancements in the picking service and the requirement for local sales tax collection robbing them of the commercial advantage of distant distribution, in fact I would go as far as saying that this probably marks the beginning of the end of the physical retail experience.

Now I happen to think that the instant delivery service is possible but that’s an idea for a startup and not for here.