You are not logged in.

#1 2017-11-27 15:00:32

dhumes06
Member
Registered: 2017-11-27
Posts: 5

[SOLVED] Auto Launch on two virtual workspaces

Hello Everyone,
I'm fairly new to Arch Linux, I am looking for some guidance.
I am not posting to find the answer to my question, more for guidance into seeing if others have posted it.
I've been going to Google and checking out the various forums topics which have been linked in bbs, but no luck as of yet.

What I am trying to find;
Would it be possible to launch two separate programs on different virtual workspaces at once at login?
i.e
Kodi Launches on Workspace one, and an internet browser on Workspace two.

Would anyone have any advice on keywords I could use to try and help narrow down my searches, please?

Thank you.

Last edited by dhumes06 (2017-11-27 18:10:32)


"By golly, I'm beginning to think Linux really *is* the best thing since
sliced bread."
(By Vance Petree, Virginia Power)

Offline

#2 2017-11-27 15:14:39

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Auto Launch on two virtual workspaces

Welcome to the forums dhumes06 smile

Check out...
https://wiki.archlinux.org/index.php/Au … #Graphical

and...

man wmctrl

Last edited by Slithery (2017-11-27 15:15:08)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2017-11-27 15:26:13

dhumes06
Member
Registered: 2017-11-27
Posts: 5

Re: [SOLVED] Auto Launch on two virtual workspaces

Thank you, slithery
I have been checking out that page, but have yet to find what I would need to separate the launches on different workspaces.
But I have not thought about the man Idea,
Thanks, I will post back if I need more assistance.


"By golly, I'm beginning to think Linux really *is* the best thing since
sliced bread."
(By Vance Petree, Virginia Power)

Offline

#4 2017-11-27 15:42:37

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] Auto Launch on two virtual workspaces

dhumes06 wrote:

I have been checking out that page, but have yet to find what I would need to separate the launches on different workspaces.

That's what wmctrl is for (you'll need to install it first). You start both applications and move one of them to the second workspace with wmctrl.

Last edited by Slithery (2017-11-27 15:43:17)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2017-11-27 15:47:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED] Auto Launch on two virtual workspaces

In case of KDE there's also kstart and many WMs provide rules to control the initial workspace of a given client - what in either case raises the question which window manager you're using ...

Offline

#6 2017-11-27 17:29:15

dhumes06
Member
Registered: 2017-11-27
Posts: 5

Re: [SOLVED] Auto Launch on two virtual workspaces

Hello,
and thank you to everyone.
With the help of the suggested applications on this thread,
I have been able to create a script that will do exactly what I need; Open Two separate programs, on different workspaces.
I know it is dirty,
but if anyone is interested here is what I ended up creating.

#! /bin/bash
firefox "www.netflix.ca" &
wmctrl -r "firefox" -t 1 &
wmctrl -s 1 &
sleep 5s;
xdotool key "F11"
sleep 5s

kodi &
wmctrl -r "Kodi" -t 0 &
wmctrl -s 0

Thank you again to: slithery & seth.
My machine does run kde, so i will be working with that on mine.
But for my grandmother, cordcutting her cable services. i will be looking into a lightweight display manager.

Last edited by dhumes06 (2017-11-27 17:30:07)


"By golly, I'm beginning to think Linux really *is* the best thing since
sliced bread."
(By Vance Petree, Virginia Power)

Offline

#7 2017-11-27 17:33:18

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED] Auto Launch on two virtual workspaces

If you want to keep your current window manager, you might also want to look into devilspie. It can assign X windows by e.g. classname to different workspaces and do other things as well.

Edit: With KDE, that might be possible in the Advanced Application settings (at least it was in an older version as far as I remember)

Last edited by progandy (2017-11-27 17:38:03)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#8 2017-11-27 18:01:20

dhumes06
Member
Registered: 2017-11-27
Posts: 5

Re: [SOLVED] Auto Launch on two virtual workspaces

progandy wrote:

If you want to keep your current window manager, you might also want to look into devilspie. It can assign X windows by e.g. classname to different workspaces and do other things as well/

Thank you, I will keep that in mind once I get to my box.


"By golly, I'm beginning to think Linux really *is* the best thing since
sliced bread."
(By Vance Petree, Virginia Power)

Offline

#9 2017-11-27 20:36:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,868

Re: [SOLVED] Auto Launch on two virtual workspaces

"kstart --help", it creates temporary rules for kwin and runs the application (in case you don't want to apply those rules in general, eg. to start a browser on a different workspace)

Offline

Board footer

Powered by FluxBB