Archive for the 'Keyboard' Category

Multimedia keyboard: Control XMMS by assigning special keys


This mini guide will show you howto control XMMS (or launch any other application/scripts) from key-combinations or special multimedia keys.

Keyboard shortcutsFirst, make sure you don’t have any application capturing the key-kombination. Gnome has it’s own keyboard shortcuts (System->Preferences->Keyboard shortcuts). Make sure to disable any shortcut assigned to XF86Audio* -keys. Mark the shortcut so it asks you to assign a new key, then hit backspace to disable it.

Continue reading ‘Multimedia keyboard: Control XMMS by assigning special keys’

Change keyboard shortcuts in nautilus: Howto disable the CTRL+T combination from ‘move to trash’ in GNOME/Nautilus?

I found myself putting things into the trashcan because I was pressing the CTRL+T combination on the keyboard. (using it for new tab/location bar in firefox).

Continue reading ‘Change keyboard shortcuts in nautilus: Howto disable the CTRL+T combination from ‘move to trash’ in GNOME/Nautilus?’

zenity progress example script (Gnome/X)

screenshot-exampleprogress.png

I like to see the percentage done of an ongoing process. I also want to make it easier for others to do the same, so I created a small example-script for how to do it from a bash script. On the left side, you see how it will look like.

I have seen some scripts using awk to calculate the percentage of a progress when the output is to verbose maybe doesn’t show the percentage but a number of a total.

You can also add –auto-kill if you want the cancel-button to kill the parent pid.

Enjoy making X graphical verbose scripts!

zenity-progress-example.sh

(for a in `seq 1 100` ;
do
echo $a;
sleep 0.03;
done) | zenity --auto-close --progress \
--text="Slow counting from 1 to 100" \
--title="Example Progress"

All-in-One Gestures

All-in-One Gestures (firefox plugin) makes firefox feel more like Opera.

And it is very customizable. Look at the settings:

all_in_one_gestures4.png all_in_one_gestures2.png all_in_one_gestures3.png all_in_one_gestures4.png