Des (deskitty) wrote,
Des
deskitty

  • Mood:
  • Music:

Yummy code-fu!

So, to continue the current technology thread, I got rather bored of life and wrote a nifty little utility in Perl.

I tend to switch window managers a lot...for a while I was using KDE, then Ion, then PWM, then Enlightenment, then Fluxbox...and I still go back and forth quite often. (So much so, in fact, that I have wmselect installed on my laptop...) To make this transition easier, I decided to write a utility that generates menus from a common menu file.


Basically what this app does is read an XML file describing a menu structure, and then dump out menus in various WM-specific formats. The advantage to writing it myself (over using something like wmconfig) is that I can structure it however I want, and it's easy for me to write additional plugins to handle new window managers.

The cool thing about this (and the reason I decided to use XML in this instance) is, I can have WM-specific stuff in there easily, so things like the Fluxbox settings in the menu don't have to suffer.

Also, I added in the ability to have host-specific menus and submenus. So, for example, on spica (my laptop), I have a "Sync" menu (for syncing the laptop to deneb), whereas on deneb, I don't.

Right now the only modules I have are Fluxbox and Enlightenment DR16, but others like pwm (and possibly E DR17) will be appearing eventually. Perhaps I'll even write one for TWM, if I'm feeling especially masochistic...


Anyway, bedtime for me. I have my MDS interview tomorrow morning, bright and early at 11 AM. Wish me luck...

-- Des
Subscribe

  • (no subject)

    Well, I'm off to Dreamwidth. I hope to see you all there! Nice knowing you, LJ. It's been grand. — Des

  • A fresh start?

    So I'm thinking of moving away from LJ. Every time I glance at my ad blocker, there are an uncomfortably-large number of advertising and tracking…

  • 2012: Ramp It Up

    It’s that time of the year again -- another year has passed, and as usual, I don’t finish reflecting on it until the first 3 months of the following…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 2 comments