Nobody was Born with Linux Knowledge

To content | To menu | To search

Friday 22 April 2011

Tweak disabling touchpad while typing

GNOME in Mouse settings -> Touchpad tab has a very useful option to disable the touchpad while typing. Despite this being very useful, and since Ubuntu Natty 11.04 less energy hungry*, it may still be annoying since the touchpad may feel not enough responsive in a fast paced work environment. Luckily syndaemon (which is the program providing us with this feature) developers have already tackled this issue by creating option -t. This enables the cursor to move while typing on the keyboard and before the -i milliseconds grace time have expired, however it prevents the touchpad from scrolling or clicking during this time. By enabling this feature you'll find your workflow much more seamless and could easily reach lightning fast the button you're looking for while the grace period expires. In order to have this feature you have to disable the GNOME built feature (untick the feature) and add to
/etc/rc.local
the following line above "exit 0"
syndaemon -i 0.8 -t -k -R
You may of course tweak the seconds of grace time -i N.n as you wish! After reboot you may check if your tweak has been effective by typing
ps aux |grep syndaemon
if you see the above command executed well done! Another way to implement this tweak at a per user level is adding a new row at Gnome's Startup applet running this command at every login
syndaemon -i 0.8 -t -k -R
* now with the -R option it does not pool the keyboard any more every -i milliseconds, thus leaving the CPU in idle state for longer.

Saturday 7 August 2010

Set Gnome Calendar First Day of Week to Monday

Mirrored from: http://ubuntuforums.org/showthread.php?t=813945 Credit goes to drs305. Here is how to change the gnome calendar first day of the week to Monday:
Check which locale you are using (eg. en_US, no matter about the UTF extension):
locale
Next, backup and edit the applicable locale file (use the result of the previous command if not en_US).
sudo cp /usr/share/i18n/locales/en_US /usr/share/i18n/locales/en_US.bak
gksudo gedit /usr/share/i18n/locales/en_US
Locate the following line and change the value. The value for Monday in en_US was 2. Select the appropriate number if you desire another day to be the start day.
first_weekday 2
Save the file and then update the locales:
sudo locale-gen
Refresh the desktop:
killall gnome-panel
The first day should now be Monday

Thursday 5 August 2010

Folder labeling with metadata files in Ubuntu linux

Recently it has been implemented in Ubuntu linux KDE and GNOME (partial) desktop environments a kind of folder metadata labeling with special metadata.desktop files. These files display a content (eg a name) which is not the actual file name. They also may contain other useful information for classifying the related folder. Here is their structure:standard name:
metadata.desktop
standard contents:
[Desktop Entry]
Name=This is the tag I want to assign
X-KDE-PluginInfo-Name=These are various example tags related to KDE only
X-KDE-PluginInfo-Author=
X-KDE-PluginInfo-Category=Examples
Name[en_GB]=This is the file name as showed by the OS
Note: renaming the file within the file manager actually renames the Name= field, not the actual file name (which is kept metadata.desktop) More on these files and other useful file strings here: http://techbase.kde.org/Development/Tutorials/Plasma/PythonPlasmoid