light ice breaker

pharon's picture

I'll spare you the obligatory whining and ranting about the current mess I am in regarding the medicine / IT career choice stuff.

Instead, I'll post about a little thing I did that might help someone.
I like to watch movies in 1:1 size , in the corner of my screen. Instead of moving and resizing the player window everytime manually, I use devilspie and xdotool to do it automatically.

* Get devilspie http://burtonini.com/blog/computers/devilspie
* Get xdotool http://www.semicomplete.com/projects/xdotool , to compile it on debian or ubuntu you need to {{{ apt-get install libx11-dev libxtst-dev }}}. Move the resultant binary somewhere in your path. /usr/local/bin is ok.
* Create the devilspie configuration {{{ mkdir ~/.devilspie }}} and create a file called "corner-totem.ds" :
{{{(if (is (window_class) "Totem") (begin (undecorate) (spawn_sync 'sleep 1') (spawn_sync 'xdotool type 1h') ( geometry "+0+526")))}}}
* The position depends on your screen resolution so you need to find your perfect coordinates by positioning a window manually once and using xwininfo on it.

Any suggestions welcome.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options