Gnome 3 shell themes

Working gnome-shell on an Intel 945GM
Image by grantc via Flickr

If you are using gnome-shell and are bored with the same default theme then read on…. 🙂

By default changing the default theme requires that you modify the files yourself or copy few files to the required directories. Well, if this is not in your scheme of things for changing the theme, a very simple task. Now, you can simply do this with gnome shell extensions.

First you need to install the following:

 

  • gnome-shell-extension-theme-selector
  • gnome-tweak-tool

And while you are at it, feel free to search for gnome-shell-theme with the command :

1
 yum list gnome-shell-theme

to see the list of themes and install the ones that you are interested in with the command

1
 sudo yum install gnome-tweak-tool gnome-shell-extension-theme-selector <other theme packages>

Once this is done, open gnome-twea-toolr in a terminal and enable User shell themes.

Once this is done, click on activities and you should see Themes along with Windows and Applications, something like the screenshot below:

gnome-shell-theme
gnome-shell-theme

Now you can quickly select any theme that you like from the selector, can it get any easier and simpler than this 🙂

Enhanced by Zemanta

bash completion

I was working on some functions in bash to make my life easier and realized that if I added custom completion to my functions, it will be really good. So I headed over to google and searched for what I wanted. I did get a lot of information on bash completion but not a single concrete example that could help me do what I wanted. So, with the help of man pages and some results from the Google pages, I was finally able to accomplish what I wanted. So here it is:

Google link that might help here.

What : Change to config file directory. The structure of directory looked something like this

somedirectory

| —- a

| —-| —-config

| —-b

| —-| —-config

and so on..

Solution

Create a function in the .bashrc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
_conf()

{

local curw

local PATH="somedirectory"

COMREPLY=()

curw=${COMP_WORDS[COMP_CWORD]}

COMPREPLY=( $(cd $PATH/; compgen -W $(ls -d $curw*)) )

return 0

}

And then add the completion to .bashrc

1
complete -F _conf conf

compgen can be used with in-built functions to define completions with users, directories or with “-W” to complete with custom words.

and complete is used to define the function (_conf) to use with the command (conf).

Enhanced by Zemanta

Installing Full Blin g theme on N900

I was going through the post : http://talk.maemo.org/showthread.php?t=46739
and found the theme quite intruging but not complete to the point where I can download the deb file and install it in /usr/share/theme/ dir with simple commands “apt-get” or at max just use mkdir command to create the dir and dump everything in that dir. So, I wrote this couple of bash one liners to copy the required files to my N900.

1
2
3
4
5
for i in place*; do mv "$i" ${i//place these files in /}; done
for i in Place*; do mv "$i" ${i//Place these files in /}; done
for i in usr*; do j=${i//\./\/}; echo $i $j; done
for i in usr*; do j=${i//\./\/}; echo $i $j; mkdir Bkup_$i; scp -r root@192.168.103.88:/$j/* Bkup_$i/ ;done
for i in usr*; do j=${i//\./\/};scp -r $i/* root@192.168.103.88:/$j/  ;echo "Done with $i"; done
Enhanced by Zemanta