Display X applications from virtual terminals

GNOME Session plugin
GNOME Session plugin (Photo credit: David Siegel)

Here is a script that can help you set the proper envirionment to start a gnome-shell from one of the terminals.

#!/bin/bash - 
#===============================================================================
#
# FILE: xenv.sh
# 
# USAGE: ./xenv.sh 
# 
# DESCRIPTION: http://live.gnome.org/GnomeShell/Debugging
#
# 
# OPTIONS: ---
# REQUIREMENTS: ---
# BUGS: ---
# NOTES: ---
# AUTHOR: Amit Agarwal (aka), [email protected]
# CREATED: 09/14/2011 04:45:31 PM IST
# Last modified: Wed Sep 14, 2011 04:45PM
# REVISION: ---
#===============================================================================

gnome_session=$(pgrep -u $USER gnome-session)
eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DISPLAY)
eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep XAUTHORITY)
eval export$(sed's/\o000/\n/g;' < /proc/$gnome_session/environ |grep DBUS_SESSION_BUS_ADDRESS)

So, once you have done that you have the correct environment to use the X display and thus you can start the gnome-shell as well or do any other fancy thing that you want 🙂

Enhanced by Zemanta

Screenshot of Gnome3 with awn


Here is another screenshot of my laptop desktop with Gnome 3 and AWN (Avant window Navigator) running. Looks beautiful, isn’t it?

By the way, with this setup I have the old style menu also just that instead of on the top it is on the bottom just like old RH9 🙂

Enhanced by Zemanta

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 &lt;other theme packages&gt;

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