Archive

Posts Tagged ‘awesome’

Awesome-WM settings and workplace setup

December 6th, 2008
It has been quite a while since I uploaded a screenshot for my “desktop” environment, it hasn’t changed much but I have tweaked it a bit and spent some time upgrading it to today Awesome git clone.


Awesome is a great tiled window manager that is completely configurable, basically it gives you the tools to write the window manager you want it to be. I use it as minimal I can get but I’m used to have a lot of information about the machine I’m working on so I can act before problems arise, in example a memory overflow basically I can see the program eating up the memory on my monitors, or I can notice if a program is consuming too much memory and it wasn’t supposed to be doing that, same goes for network leeches and system temperature.


I don’t have setup many “launchers” besides the ones that comes from the monitors that I rarely use but are handy when quick reaction is needed. To startup programs I just use the keyboard, Mod4 some keys launches a program for me, like Mod4+f fires up Firefox.


One of the things that I like most from Awesome is that I can get rid of the taskbar, overlapping windows etc. I don’t like looking up for the app I want, I just want to know where is it, and that is where awesome tags are really handy, Alt 1-9 switchs to the proper tag, Mod 1-9 moves the current window to the according tab. I have a strict use for every number, 1 music, 2 chat, 3 browser, 4 emacs, 5 terminal, 6-9 buffer tags for varied stuff, most of the time 6-7 are for xpdf . I got this habit from Fluxbox and other wm with virtual desktops, but awesome gives you a little bit more, you can temporary merge them so you can have two apps side to side on a buffer tag and still keep them single in the usual tags.

Here’s the screenshot, I hosted it on flickr so I could add some notes over the image, you can follow the link on the image to Flickrs page and see the comments

Desktop Screenshot

Here’s the config file for Awesome, I don’t recommend if someone want’s to try it, to use it right away since It has so much stuff that it’s different from conventional keybindings, locations and it uses some scripts I haven’t published. Like Murxvtc that picks a random color for the transparency or awimap who does the check and uses awesome-client to print out the messages you see on the screenshot for mail.

The icons I use for this are from Nuvola, and the current background you see I can’t give credit since I don’t get to know which image is that since it comes from Flickr’s Interestingness at random. I hope the owner pardons me for using his image for this background, if you know/are the owner please leave me a word so I can comply with the license you have over the image.

Finally and for the reader, I wonder how much time/effort people spend customizing their workspace like I try to do, I feel I can work faster and I concentrate more using this setup, but your experience might be different, would you mind sharing?

Enlaces y noticias , , ,

Setting my desktop backgrounds from Flickr

December 2nd, 2008

Well I’m now trying to publish here some of the tools I use and write everyday to customize my desktop, most of them are simple hacks, this time it’s a way to set your desktop background from a Flickr feed that is requested to be filtered using some tags.

Heres the code:

  1. #!/usr/bin/python
  2.  
  3. import feedparser
  4. import urllib
  5. import random
  6. FLCKR_API = "http://api.flickr.com/services/feeds/photos_public.gne"
  7. TAGS = "fantasy,nature,night,dog,art,beach"
  8.  
  9. query = urllib.urlencode(((‘tags’,TAGS),(‘tagmode’,‘any’)))
  10. entries = feedparser.parse("%s?%s" % (FLCKR_API,query))
  11. links = []
  12. for entry in entries[‘entries’]:
  13.     for href in  entry[‘links’]:
  14.         if "image" in href[‘type’]:
  15.             links.append(href[‘href’])
  16.  
  17. print random.choice(links)
  18.  

You should set TAGS=”" to the tags you want to filter the backgrounds.

Now to use it I have the following script that I tried to make smart enough to notice when I have a dual head setup and grabs two images and makes a composition so I will have a different background on each monitor, it works nice but it has its problems.

  1. #!/bin/sh
  2.  
  3. TOT=`wc -l ~/New.list | cut -f1 -d" "`
  4. if [ -f /tmp/flickr ]; then
  5.     wget `flickrget` -O /tmp/bg1.jpg > /dev/null 2>&1
  6.     BG1="/tmp/bg1.jpg"
  7. else
  8.     BG1=`sed -n $[RANDOM % TOT]p ~/New.list`
  9. fi
  10. DIMENSIONS=`xdpyinfo | grep dimensions | sed s/".* \([0-9]*x[0-9]*\) pixels.*"/"\1"/`
  11.  
  12. if [ "$DIMENSIONS" == "1440×900" ]; then
  13.     Esetroot -f $BG1
  14. else
  15.     if [ -f /tmp/flickr ]; then
  16.         wget `flickrget` -O /tmp/bg2.jpg > /dev/null 2>&1
  17.         BG2="/tmp/bg2.jpg"
  18.     else
  19.         BG2=`sed -n $[RANDOM % TOT]p ~/New.list`
  20.     fi
  21.     nice -20 montage -background black  -geometry 1440×900 $BG1 $BG2 /tmp/cur_bg.bmp
  22.  
  23.     Esetroot -c /tmp/cur_bg.bmp
  24. fi
  25.  

There are several things on the previous scripts that should be tweaked, first ~/New.list it’s a list of my local list of backgrounds, 1440×900 it’s my laptop internal video size, /tmp/flickr it’s a file I use to control the source of my desktop backgrounds and finally flickrget its the name I choose for the previous python script and set it on my path.

I have setup the shell script on my awesome client to be run every 30 minutes so I get a new background after that time but also a button on my status bar to force a change when I don’t like the background it choose for me.

EOP

Enlaces y noticias , , , , , , ,

Repositorio publico de Valkertown

June 10th, 2008

Bueno acabo de terminar el repositorio público de valkertown.

La Lista de Repositorios, la escribi utilizando gitpython y Django.

Por el momento hay dos repositorios e ire añadiendo y anunciando nuevos.

El primero es Aura, un programita inspirado en cdargs para manejar destinos favoritos de ssh y tener una terminal dedicada a la sesión de ssh.

El segundo es mi repo de awesome, el manejador de ventanas con la modificacion que le he tenido que hacer para que me funcionara en slackware 12.0, a ver como me va en slackware 12.1.

He escrito algunas cosas en mi .awesomerc.lua y algunas aplicaciones asociadas que pronto estarán disponibles en algún repo.

EOP

Enlaces y noticias , , , ,

Adios a fluxbox

June 2nd, 2008

Despues de muchos años de usar fluxbox como mi manejador de ventanas , decidi dejar la buen fluxbox en pro del algo inestable awesome.

Awesome Screen Shot

Sigo extrañando a gkrellm, pero me ha ido bien en general. Me ha tocado hacer muchas cosas a mano y todo ha salido de los repos git de los desarrolladores directamente, por lo que no lo recomiendo si no se esta dispuesto a pasar varias horas poniendolo a punto. Finalmente el hecho que sea un tiling window manager resulta supremamente agradable.

Por otra parte me esta gustando mucho GIT, pero lo dejo apra otro envio en el que ojalá tenga más experiencia.

Enlaces y noticias , ,