Archiv

Artikel Tagged ‘lucid lynx’

AutoKey PPA and Icon Installer for Ubuntu

Go to the up to date Post!

Since the current AutoKey Version shipped with Ubuntu Linux 10.04 Lucid Lynx is an outdated one, i found an easy way to get a newer one through the PPA of Chris Dekter from the AutoKey Project.

If you are not so familiar with installing through PPA i made a set of install scripts. You can also easy switch the theme icons i mentioned earlier.

Make sure you remove any installed autokey packages before you install the PPA Version!

Do not forget to restart AutoKey after you made any changes.

Download

AutoKey Install Helper Package

Scripts

install_autokey-gtk.sh

#!/bin/bash

mkdir backup
cp ~/.config/autokey/* backup/
gksu add-apt-repository ppa:cdekter/ppa
sudo apt-get install autokey-common autokey-gtk

install_autokey_ambiance.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon-status-ambiance.png"

command="cp $themeicon $autokeyicons"
eval gksu "$command"

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

install_autokey_radiance.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon-status-radiance.png"

command="cp $themeicon $autokeyicons"
eval gksu "$command"

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

install_autokey_default.sh

#!/bin/bash

autokeynotifier="/usr/share/pyshared/autokey/gtkui/notifier.py"
autokeyicons="/usr/share/pixmaps/"
themeicon="akicon.png"

gksu echo

pattern=`awk -F\" '/STATUS_ICON_FILE = /{print $2}' $autokeynotifier`

command="sed -i 's,$pattern,$autokeyicons$themeicon,g' $autokeynotifier"
eval sudo "$command"

Mehr…

KategorienLinux Tags: , , , ,

Fix Firefox MIME Type Icons

The Problem

In order to show the error i made some screenshots from an RSS view in Firefox.

As you can see the MIME Icon is missing.

The image source link from the source code.

moz-icon://goat?size=16&contentType=audio/mpeg

The Fix

The MIME Icon is shown after the fix. As you can see it is an audio icon.

The problem is that Firefox can’t find the MIME type icons. This Shell-Script copies the MIME icons from the Humanity Icon Theme into the .icons folder in your home directory so Firefox can find them.

#!/bin/bash

ISOURCE=/usr/share/icons/
ITHEME=Humanity

for size in 16 22 24 32 48;
do
  mkdir -p $HOME/.icons/$ITHEME/mimes/$size;
  for file in $ISOURCE/$ITHEME/mimes/$size/*.svg;
  do
    ln -s $file $HOME/.icons/$ITHEME/mimes/$size/`basename $file .svg`.png;
  done;
done;

Script Author: Ilja Sekler

Create a new script file and run it in your terminal or download it and run it in your terminal.
Mehr…

AutoKey Status Icons for Ubuntu 10.04 Lucid Lynx

Go to the up to date Post!

A set of icons for AutoKey on the Gnome Desktop with Ubuntu Linux 10.04.

Screenshot of the Ambiance Theme

Screenshot of the Radiance Theme

Step 1

Download the icon file and open the target folder.

Press the keys ALT + F2 and enter

gksu nautilus /usr/share/pixmaps

Copy the desired *.png file into this folder.

Step 2

Press the keys ALT + F2 and enter

gksu gedit /usr/share/pyshared/autokey/gtkui/notifier.py

now change the line

STATUS_ICON_FILE = "/usr/share/pixmaps/akicon.png"

to

STATUS_ICON_FILE = "/usr/share/pixmaps/akicon-status-radiance.png"

or

STATUS_ICON_FILE = "/usr/share/pixmaps/akicon-status-ambiance.png"

Step 3

In order to see the new icon you need to restart AutoKey.

Downloads

Icon for the Ambiance Theme

Icon for the Radiance Theme

GIMP Template

Further Informations of AutoKey

Guide by Saravanan Thirumuruganathan

AutoKey User Group on Google

Mehr…