No hotkeys in Xfce 4.6

Normally the key combination Alt-f2 in xfce starts the command xfrun4 but some time it stopped working. Checking in Xfce Settings Manager > Keyboard > Application shortcuts found that the key was associated with the correct command, so determined to solve the problem I discovered that the devil xfce4-settings-helper was turned off after launch from the console and restart the session all has returned to normal.

Asus U30JC TouchPad Lock (Fn + F9) to squeeze Debian / sid

Apparently there is a problem in detecting the touchpad in some models of Asus laptops, and my u30jc squeeze running a Debian / sid 32 bit is no exception. Indeed if we execute the command console $ xinput list we see that the touchpad is incorrectly recognized as a "ImPS / 2 Logitech Wheel Mouse", and thus the combination Fn + F9 to enable / disable the device does not work. For the moment we can perform a simple workaround by changing acpi scripts associated with the desired function

To start we:

$ sudo acpi_listen

And we press Fn + F9 for associated event code, in this case: hotkey ATK0100:00 0000006b (...) . The last part will change depending on the number of times to repeat the action. Then open the file / etc / acpi / events / asus-touchpad and change the line:

  1. ATKD | HOTK ) ( 0000006 [ ab ] | 00000037 ) #(por) event = hotkey (ATKD | Hotka) (0,000,006 [ab] | 00,000,037) # (for)
  2. 0000006b event = hotkey ATK0100: 00 0000006b

Finally, it should make some changes to the script associated with the event located at / etc / acpi / asus-touchpad.sh:

  1. grep 'SynPS/2 Synaptics TouchPad' | sed -n -e 's/.*id= \( [0-9] \+ \) .*/ \1 /p' ` #(por) XINPUTNUM = `xinput list | grep 'SynPS / 2 Synaptics TouchPad' | sed-n-e 's / .* id = \ ([0-9] \ + \) .* / \ 1 / p'` # (for )
  2. grep 'ImPS/2 Logitech Wheel Mouse' | sed -n -e 's/.*id= \( [0-9] \+ \) .*/ \1 /p' ` XINPUTNUM = `xinput list | grep" ImPS / 2 Logitech Wheel Mouse "| sed-n-e 's / .* id = \ ([0-9] \ + \) .* / \ 1 / p'`
  3. | awk '/Synaptics Off/ { print $NF }' ` #(por) TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Synaptics Off / (print $ NF)'` # (for)
  4. | awk '/Device Enabled/ { print $NF }' ` TPSTATUS = `list-props xinput $ XINPUTNUM | awk '/ Device Enabled / (print $ NF)'`
  5. 8 1 #(por) xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 1 # (for)
  6. 8 1 xinput set-int-prop $ XINPUTNUM "Device Enabled" August 1
  7. 8 0 #(por) xinput set-int-prop $ XINPUTNUM "Synaptics Off" 8 0 # (for)
  8. 8 0 xinput set-int-prop $ XINPUTNUM "Device Enabled" 8 0

Made the changes just restart the computer to complete the job.

I've also created a patch for the file-touchpad.sh asus

Read more

Thunderbird + Lightning + Google Calendar

For those who already know the mail client (and news) Thunderbird and have ventured to try Lightning , an extension that allows you to use our own agendas, there is the possibility of writing and reading events from google caledarios using Provider for Google Calendar .

After installing the extension, access to calendar data, we must first retrieve the XML private address of the user interface of Google Calendar:

1. Open Google Calendar.
2. We click on the Settings link located in the box to the right of the page.
3. We click on the calendar you want to use with Thunderbird Lightning.
4. We left click on the XML button at the bottom to retrieve the XML private address.

Then it is sufficient if we click on File> New> Calendar> On the Web> Google Calendar and enter the address recovered.

More information on the mozilla wiki (in English). There is also a tutorial graphics on bfish.xaedalus.net .

Chm files on Linux with firefox

Microsoft Compiled HTML Help (CHM) is a proprietary format for online help developed by Microsoft. One alternative for use in Linux is to install the extension for firefox chmreader then just create the following script and associating it with the files. chm to automate the process:

#!/bin/sh
url="$1"
chm="chm:file://$url"
exec /usr/bin/iceweasel "$chm"

Thus we for example save chm files in our library Zotero and then open them without going through the command line.

Convert multiple images with ImageMagick

A simpler way to convert multiple images from one format to another, instead of using the convert command, for example, is to use mogrify , a utility from the command line available to us thanks to the ImageMagick package.

For example, if we convert all our png files to jpg:

$> mogrify -format jpg *.png

Using the same command for example can also reduce the size of your images in half:

$> mogrify -resize 50% *.jpg

And that's not all, there are more parameters you can adjust to our needs, to learn more: man mogrify.