You are not logged in.

#1 2015-10-09 13:45:29

sietse85
Member
Registered: 2015-10-01
Posts: 8

awesome-wm (3.5) problem spawning programs on the correct monitor

Awesome version 3.5

Hi all,

I downloaded the shifty extension for awesome window manager to autostart my apps. The apps themselves start in the tag i want but i have trouble starting them in the correct monitor. I have 2 monitors and sometimes i want to start them on a certain monitor in a certain tag.

I have tried awful.util.spawn_with_shell("app", screennumber) but this won't work. All of my apps get spawned on the same monitor.

Anyone advice how to fix this issue?

Tia.

Last edited by sietse85 (2015-10-09 13:48:11)

Offline

#2 2015-10-09 13:54:44

esa
Member
Registered: 2011-12-29
Posts: 143
Website

Re: awesome-wm (3.5) problem spawning programs on the correct monitor

-- {{{ Rules
	awful.rules.rules = {
	    -- All clients will match this rule.
	    { rule = { },
	      properties = { border_width = beautiful.border_width,
		             border_color = beautiful.border_normal,
		             focus = awful.client.focus.filter,
		             keys = clientkeys,
		             buttons = clientbuttons } },
	    { rule = { class = "MPlayer" },
	      properties = { floating = true } },
	    { rule = { class = "pinentry" },
	      properties = { floating = true } },
	    { rule = { class = "gimp" },
	      properties = { floating = true } },
-- EDITORS = 4
	    { rule = { instance = "notepadqq" },
	      properties = { tag = tags[1][3] } },
-- Virtual Machines
	    { rule = { instance = "VirtualBox" },
		properties = { tag = tags[1][8] } },
-- <...>
	}


-- Startup
awful.util.spawn_with_shell( editor )

Find your way smile
hth

Last edited by esa (2015-10-09 14:01:11)


Author of: TUI (Text User Interface for scripts), VHS (Video Handler Script, using ffmpeg) and YASSI (Yet Another Simple Script Installer)

Offline

#3 2015-10-09 16:52:56

sietse85
Member
Registered: 2015-10-01
Posts: 8

Re: awesome-wm (3.5) problem spawning programs on the correct monitor

thanks i will try this method smile

Offline

#4 2015-10-09 19:49:18

sietse85
Member
Registered: 2015-10-01
Posts: 8

Re: awesome-wm (3.5) problem spawning programs on the correct monitor

this works awesome wink i got rid of shifty and implement these rules and it works. The programs spawn fine on the correct monitor. I wonder how i can retrieve the class or instance name because some of my programs are not recognized, some advice?

Offline

Board footer

Powered by FluxBB