Wednesday, 29 August 2012

Awesome WM configuration

Today I started to use Awesome on my desktop in the office. I've been using it for 3 months during my internship at Google and it was awesome! It requires a little bit of configuration at the beginning.

To make Awesome appear as a choice of WMs in the Ubuntu login screen, delete "NoDisplay=true" in /usr/share/xsessions/awesome.desktop. Apparently this is a bug in Ubuntu.

To create a user configuration file, copy the default one to the ~/.config folder:
$cd ~
$mkdir -p .config/awesome
$cp -r /etc/xdg/awesome/* .config/awesome
Note that there are some other files under /etc/xdg/awesome besides rc.lua, and you need to copy all the files. Otherwise there will be errors and the user configuration will be ignored (I tripped over this).

Configure screen locking
Install xscreensaver. Add the following lines to rc.lua.
# In globalkeys = ...
awful.key({ modkey }, "F12", function() awful.util.spawn("xscreensaver-command -lock") end)
# At the end of the file:
awful.util.spawn_with_shell("xscreensaver -no-splash")

Shortcuts

  • Close dialog windows: meta+shift+c

Sunday, 5 August 2012

Granola

Recently I've been obsessed with granola. It's so delicious! But it's very high in calories. One cup of granola can have 500-600 calories. Oatmeal is much better than granola. Oatmeal has soluble fiber  that slows down digestion, making you feel full longer (this is a good characteristic in food that I should look for). Oats contain photochemicals, which are antioxidants that help eliminate free radicals.

Granola also has oats as its base, but it has added sugar which increases its calories a lot. So should eat oatmeal instead!