Archive

Archive for June, 2009

Disabling Touchpad Tap-to-Click

June 25, 2009 Leave a comment

There does not seem to be an easy way to disable the touchpad tap-to-click functionality these days, and the default sensitivity is far too high. Adding the following file seems to have turned things off for me. I rebooted for the changes to take effect, but restarting hald and the display manager would probably have been enough.

$ cat /etc/hal/fdi/policy/synaptics.fdi
<?xml version="1.0" encoding="ISO-8859-1"?>
 <deviceinfo version="0.2">
  <device>
   <match key="info.capabilities" contains="input.touchpad">
    <merge key="input.x11_options.MaxTapTime" type="string">0</merge>
   </match>
  </device>
</deviceinfo>

It would be nice if there were a way to toggle this functionality on the fly without enabling SHMConfig, but I am not interested enough in this problem yet to investigate further.

Advertisements
Categories: Uncategorized Tags: ,

Openbox and bbkeys

June 18, 2009 Leave a comment

Before Openbox, I used Blackbox with bbkeys. Openbox is great, but there is one thing that I miss from the Blackbox days.

When alt+tab window switching with Openbox, the only window title visible is that of the current icon selected. When there are many of the same icons (e.g., because I am running several terminals), I have to tab to each of these icons one-by-one to reveal their titles and find the desired application. See this thread for a discussion on the problem.

bbkeys meanwhile provides a text menu of window titles sorted by recent use to tab through, which I find much more efficient.

What is great is that bbkeys is compatible with Openbox! Below is my ~/.bbkeys. I have only mapped alt+tab and alt+shift+tab. The rest of my key bindings are handled by Openbox.

[begin] (bbkeys configuration file)
 [config]
 [option] (raiseWhileCycling) {false}
 [end]
 [keybindings] (begin keybindings)
 [NextWindow]  (Mod1-Tab)
 [PrevWindow]  (Mod1-Shift-Tab)
 [end] (end keybindings)
[end] (end bbkeys configuration)
Categories: Uncategorized Tags: , ,

PulseAudio and alsamixer

June 16, 2009 Leave a comment

I tried to use alsamixer when PulseAudio was not running and got the following error message.

alsamixer: function snd_ctl_open failed for default: No such file or directory

The problem was that I was not in the audio group.

$ sudo vim /etc/group
$ grep audio /etc/group
audio:x:29:matt
Categories: Uncategorized Tags: ,

Launching Mutt Attachment Viewers in the Background

June 14, 2009 Leave a comment

Inspired by Gary Johnson’s mutt_bgrun script on his mutt page, I fiddled with my ~/.mailcap file to trick mutt into launching attachment viewers in the background so I can continue working with the same mutt process. For example, here is the line in ~/.mailcap I use to launch xpdf in the background.

application/pdf; f=`mktemp` \; cp %s "$f" \; ( xpdf "$f" \; rm -f "$f" ) &

Unfortunately, firefox did not seem to like this change in the temporary file location and raised an error when I tried to open a PDF file on the web. My assumption however is that mutt is less likely to be in the wrong, so asking firefox to ignore ~/.mailcap seemed the quickest fix. Setting the helpers.private_mailcap_file option in about:config (or user.js) to an empty string put the issue on the back burner for now.

Categories: Uncategorized Tags: ,