Rhythmbox control

Submitted by ormiret on Mon, 02/04/2007 - 05:47.

Small python script to provide some rhythmbox control:

( categories: )

Firefox mailto:

Submitted by ormiret on Sun, 18/02/2007 - 06:07.

To make firefox call an external command to handle mailto: links:

( categories: )

How to make your own fortune files

Submitted by ormiret on Mon, 12/02/2007 - 01:01.

To make fortune files:

  1. Make a text file with your entries separated by %s:

    First entry
    Second entry

  2. Run the command strfile -r $name_of_text_file $name_of_text_file.dat
  3. Put the text file and the .dat created in the last step into /usr/share/games/fortunes/
  4. Make a symbolic link to the text file in /usr/share/games/fortunes/ named $name_of_text_file.u8
  5. You can now run fortune $name_of_text_file to get a random entry from the file.
( categories: )

Ratpoison config

Submitted by ormiret on Thu, 08/02/2007 - 00:37.

I have now got ratpoison working almost perfectly. There is a bit of a hack to get the initial layout as ratpoison was running my .ratpoisonrc quickly enough that all the apps ended up in the final frame rather than the one that was focused when I called the exec line to start them. The hack is that I do the laying out by running the commands in .rat_layout after the apps have finished loading with C-t l

( categories: )

Presentation mode xorg.conf

Submitted by ormiret on Sat, 03/02/2007 - 19:18.

Attached is the xorg.conf that puts my laptop into a setup useful for presenting: it mirrors the middle bit of the internal screen to the external display.

The important parts for doing this are to have two "Device" sections with different Identifiers, and one of them having Screen 0 and one Screen 1. Then two "Screen" sections using the two devices, then a "ServerLayout" sections which does the actual dial screen configuration. This has two Screen lines:

Screen 0 "Internal" 0 0
Screen 1 "External" 128 16

The numbers are the position of the top left of the screens in pixels. I have the internal at the origin and the external offset by 128 pixels horizontally and 16 pixels vertically (half the difference in resolution in each direction between the two screens). You can also use LeftOf, RightOf followed by a Screen Identifier to position screens relative to others if you're actually using a dual screen set up.

( categories: )

DNS servers

Submitted by ormiret on Thu, 28/12/2006 - 02:43.

The OpenDNS servers are: and

( categories: )


Submitted by ormiret on Sun, 24/12/2006 - 03:23.

My default .emacs has some stuff saved from the options I picked in the menus before disabling them:

;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(case-fold-search t)
'(current-language-environment "UTF-8")
'(default-input-method "rfc1345")
'(global-font-lock-mode t nil (font-lock))
'(show-paren-mode t nil (paren))
'(transient-mark-mode t))
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.

( categories: )

Aberdeen Uni printing

Submitted by ormiret on Thu, 21/12/2006 - 22:38.

To print from the wireless hotspots at aberdeen university you need to set up a printer with the URI:


Where the username and password should be entered seperately to the URL (most GUI setup tools the URI becomes:


The smb:// is often assumed and not needed (with dumb tools it might even cause problems).

The pinters should work with being set up as any postscript printer, I've previously used various things in the LaserJet 4000 series without a

( categories: )


Submitted by ormiret on Thu, 21/12/2006 - 22:23.

Attached are my sig file and sig picker.

The picker is a modification of a perl script I found on the web many moons ago and I now have no idea where. This is truly atrocious IP management and I am duly ashamed of myself for it :)

The sigs are collected from loads of different places. Where I know the attribution it is included in each sig.

( categories: )


Submitted by ormiret on Thu, 21/12/2006 - 06:10.

To get acpi working on my laptop I need to hook up the event scripts in /etc/acpi/events to the action scripts in /etc/acpi/.

Hibernate and suspend scripts that work fast are attached.

( categories: )
Syndicate content