Hi,
I also have the two screens, and use the almost same sentences.
The slight difference is that I will start a timer and rotate
my wallpaper after some time. In this case,
gears.wallpaper.maximized works without any problem.
I hope it can help you debug your problem.
homedir = os.getenv("HOME")
wp_index = {}
wp_timeout = 3600
wp_path = homedir.."/.config/wallpapers/"
wp_filter = function(s) return string.match(s,"%.png$") or
string.match(s,"%.jpg$") end
wp_files = scandir(wp_path, wp_filter)
-- setup the timer
local wp_timer = timer { timeout = wp_timeout }
wp_timer:connect_signal("timeout", function()
-- set wallpaper to current index for all screens
for s = 1, screen.count() do
wp_index[s] = math.random( 1, #wp_files)
gears.wallpaper.maximized(wp_path .. wp_files[wp_index[s]], s)
end
if wp_timer.started then
wp_timer:stop()
else
wp_timer:start()
end
awesome --version:
awesome v3.5.5 (Kansas City Shuffle)
• Build: Apr 13 2014 00:28:56 for x86_64 by gcc version 4.8.2
(dccf87@gqlinux)
• Compiled against Lua 5.2.3 (running with Lua 5.2)
• D-Bus support: ✔
Cheers,
Quan
On Tue, Jun 24, 2014 at 11:23:43AM +0200, Max Woelfing wrote:
> Hi everyone,
>
> for quite some time now, I have an annoying problem; It seems Awesome is not
> able to maximize the wallpaper over the 2nd. screen, if the monitor is
> connected on startup.
> After I run 'awesome.restart', the wallpaper is set correctly.
>
> Before restart the wallpaper overlaps the 2nd. screen a bit from the 1st.
> one. The leftover (more than the half) is simply black.
>
> On window manager startup 'xrandr' configures the screen layout, and Awesome
> run its function to set the wallpaper:
>
> if beautiful.wallpaper then
> for s = 1, screen.count() do
> gears.wallpaper.maximized(beautiful.wallpaper, s, true)
> end
> end
>
> I'm using the following Awesome version:
> awesome v3.5.5 (Kansas City Shuffle)
> • Build: Apr 11 2014 14:11:19 for x86_64 by gcc version 4.8.2
> • Compiled against Lua 5.2.3 (running with Lua 5.2)
> • D-Bus support: ✔
>
> First I thought Awesome isn't able to notice that a 2nd. screen is connected,
> so I verified that "screen.count()" is set to 2.
>
> Maybe someone has an idea how to fix it.
>
> Many thanks, in advance.
>
> Best,
>
> --
> -w0lf
>
> --
> To unsubscribe, send mail to [email protected].
--
To unsubscribe, send mail to [email protected].