LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 10-31-2008, 01:22 AM   #1
devpedia
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
Start a bash program in workspace2


Hi,

After I switch on my PC, my programs start automatically using a bash script.
I would like to know if possible in Fedora, to run a program and that program move to the workspace2.

Something like this:

#!/bin/bash
#start Tirefox in the active (first) workspace
/usr/bin/firefox

#start Thunderbird, but in the second workspace
/usr/bin/thunderbird #>>> move somewhere to workspace2, how???

Thank you.
 
Old 10-31-2008, 06:38 PM   #2
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
You're looking for wmctrl or devilspie. With wmctrl you can move a window to another workspace, for example:
Code:
thunderbird &
wmctrl -r thunderbird -t 4
this will launch thunderbird and immediately move it to workspace 4, based on the window title. With devilspie you can establish rules to launch applications in a given workspace.
 
Old 11-01-2008, 08:42 AM   #3
devpedia
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the solution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 06:02 AM
How to start bash commands automatically every time I start the computer brgsousa Linux - Software 2 10-18-2007 11:26 AM
Start two instances of a program simultaneously using bash Daws Linux - General 5 05-26-2007 12:54 PM
need help with bash program? ice99 Programming 3 08-11-2005 11:48 AM
converting from a bash program to a c program Linh Programming 5 08-01-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration