02-02-2011
How to open a gnome-terminal in specific workspace and run script within it automatically upon login
OK this is a bit messy.
I run Fedora with gnome on a compiz desktop, I have a script (userstart) that opens my 'standard' environment for all my machines when I login. userstart flips to a specific workspace and then opens the required applications in that workspace then flips to the next workspace....
I'm trying to enhance userstart as occasionally compiz won't kick in in time or the first workspace doesn't get flipped to properly.
So I've added to userstart commands that it detects which workspace it's in before it starts opening the apps on that workspace, however this requires that userstart is called from a 'hand off' script that's active on any desktop workspace.
So how do I automatically after login open a gnome-terminal session on a workspace that automatically calls the userstart script?
Thanks in advance
---------- Post updated at 10:34 AM ---------- Previous update was at 02:56 AM ----------
OK I worked out a way to do this.......
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
How to run a script automatically using cronjob everyday from Monday to Friday 9A.M to 5P.M at an interval of ONE HOUR.I want the complete syntax means how to put in the cron job and there after.
URGENTLY NEED HELP
THANKS IN ADVANCE
CHEERS
Arunava (7 Replies)
Discussion started by: arunava_maity
7 Replies
2. UNIX for Dummies Questions & Answers
How to make a script run automatically using a cron??
i do not know abt cron......
if i have simple.sh file and i need this to run everyday at a particular time what needs to be done
thanks in advance (4 Replies)
Discussion started by: hamsa
4 Replies
3. Shell Programming and Scripting
i want the shell script to open the terminal and in that terminal i want to run a command specified in the script...
how can it be done... (2 Replies)
Discussion started by: chandrabhushan
2 Replies
4. Solaris
Hi, Is there a way to open and arrange terminal windows automatically under CDE? For example, I want to open and arrange terminal windows like this:
|------------|
| TW TW TW |
| TW TW TW |
| TW TW TW |
|------------|
Thank you in advanced! (5 Replies)
Discussion started by: aixlover
5 Replies
5. Shell Programming and Scripting
Hello,
I am trying to learn how to pass something more than a one-command startup for gnome-terminal.
I will give an example of what I'm trying to do here:
#! /bin/bash
#
#TODO write this for gnome and xterm
USAGE="
______________________________________________
${0##*/}
run... (0 Replies)
Discussion started by: Narnie
0 Replies
6. AIX
Hi, may I know how to automatically load a script once I login? For example, I want to load "set -o vi" command once I login in my Aix. (2 Replies)
Discussion started by: ngaisteve1
2 Replies
7. Red Hat
hi,
I am using red hat .I want that when ever the user login in GUI interface the terminal windows automatically open and then the user want to logout it 1st close the terminal and then login. There is a file in #ls -a i.e .bashrc and .bash_logout
I does not know how to add my... (0 Replies)
Discussion started by: mypass
0 Replies
8. Shell Programming and Scripting
Hey guys,
I have some task from my office to lock user on the specified directory after the user logged on using ssh. And then run prompt program to fill the required information. Yeah, just like an ATM system.
My question:
How could I do those?? AFAIK I have to edit the ~./bashrc. But the... (1 Reply)
Discussion started by: franzramadhan
1 Replies
9. Shell Programming and Scripting
hi,
I would like to ask about using gnome-terminal command, I had a script that will run my VBOX VM in headless and i want to display the output(STDOUT) on the gnome-terminal window. The purpose that i want to display the STDOUT of the script cause i will used it or create a desktop shortcut for... (11 Replies)
Discussion started by: jao_madn
11 Replies
10. Shell Programming and Scripting
Hi All ,
i am trying to create an alias to open a new gnome-terminal and run some commands in each tab & to have a specific name for each tab
i am using csh ,
tried this command
gnome-terminal --tab -t "s1" --tab -t "s2" --tab -t "s3" --tab -t "s4"
it opened 4 tabs but the title didn't... (0 Replies)
Discussion started by: Assem
0 Replies
LEARN ABOUT HPUX
dtwsmaddcurrentworkspacecallback
DtWsmAddCurrentWorkspaceCallback(library call) DtWsmAddCurrentWorkspaceCallback(library call)
NAME
DtWsmAddCurrentWorkspaceCallback -- add a callback to be called when the current workspace changes
SYNOPSIS
#include <Dt/Wsm.h>
DtWsmCBContext DtWsmAddCurrentWorkspaceCallback(
Widget widget,
DtWsmWsChangeProc ws_change,
Pointer client_data);
DESCRIPTION
The DtWsmAddCurrentWorkspaceCallback function registers an application function to be called when the CDE workspace manager, dtwm(1),
switches to a new workspace.
The workspace manager sends the new current workspace name to the DtWsmWsChangeProc callback.
The widget argument is a realized widget.
The ws_change argument is the procedure to be called when the workspace changes.
The client_data argument points to arbitrary client data to be passed back to ws_change.
The header defines the DtWsmWsChangeProc callback prototype as follows:
typedef void (*DtWsmWsChangeProc)(Widget widget,
Atom aWorkspace,
Pointer client_data);
The widget argument is the ID of the widget to be registered with the callback.
The aWorkspace argument is the name of the new current workspace (converted to an X atom).
The client_data argument points to the client data to be registered with the callback.
RETURN VALUE
Upon successful completion, the DtWsmAddCurrentWorkspaceCallback function returns a workspace callback registration context.
APPLICATION USAGE
The DtWsmAddCurrentWorkspaceCallback function returns a registration context that the application must save in order to remove this call-
back later. DtWsmAddCurrentWorkspaceCallback requires a window; thus, a gadget is not acceptable for the widget argument. The DtWsmRe-
moveWorkspaceCallback(3) function needs a registration context to remove the callback.
SEE ALSO
Dt/Wsm.h - DtWsm(5), dtwm(1), DtWsmRemoveWorkspaceCallback(3).
DtWsmAddCurrentWorkspaceCallback(library call)