You are not logged in.

#1 2013-02-14 13:17:51

VeXe
Member
Registered: 2013-02-13
Posts: 27

Awesome breaks everytime I try to load a theme! "Oops, an error happen

I'm running Arch X64 with Awesome WM 3.5, Lua 5.2.1
This is my first time configuring Awesome.
I Downloaded a bunch of themes from the AUR:
"aur/awesome-themes-git 20110617-1
A (big) collection of themes for Awesome Window Manager, hosted and on GitHub"

When I first downloaded them, they were sitting in /usr/share/awesome/themes
So I copied them to ~/.config/awesome/themes.

My rc.lua file has:

beautiful.init(awful.util.getdir("config") .. "/themes/default/theme.lua")

This is working fine, but whenever I change the default theme to 'any' other theme, awesome breaks! Gives me stuff like:
"Oops, an error happened!"
"/usr/share/awesome/lib/awful/util.lua:46: attempt to index local 'color' (a nil value)"
"/home/vexe/.config/awesome/rc.lua:426: bad argument #-1 to '__newindex' (string expected, got nil)"

I went to line 426 at rc.lua:

client.connect_signal("focus", function(c) c.border_color = beautiful.border_focus end)

and line 46 at util.lua:

46: if color:len() == 9 then
47: color = color:sub(1, 7)

My lack of Lua knowledge didn't let any alarms to go off at those lines.

Any help? what's going on here? how to get this fixed?

Thanks a lot!

Offline

#2 2013-02-14 18:00:43

sano
Member
Registered: 2012-02-11
Posts: 114

Re: Awesome breaks everytime I try to load a theme! "Oops, an error happen

I ran into the same problems. The reason is that the themes are for awesome 3.4, but we are at 3.5 now, which isn't compatible with themes for 3.4.  I am afraid you'll have to write your own theme. Or modify the default one shipped with awesome 3.5...

Edit: ...or acquire some knowledge and rewite the downloaded themes for 3.5. There are some hints on the awesome homepage, and you might find 3.5-compatible themes in the awesome-config thread on this forum.

Last edited by sano (2013-02-14 18:04:01)

Offline

#3 2013-02-14 22:48:13

VeXe
Member
Registered: 2013-02-13
Posts: 27

Re: Awesome breaks everytime I try to load a theme! "Oops, an error happen

Yes, you are correct. They are for 3.4, just read it in the read me file included.
Hasn't anybody made any themes for 3.5? Is downgrading a good option? is there a big difference between 3.4 and 3.5?
I mean, why isn't awesome back-compatible? There's no HUGE difference between the default 3.5 theme file source code and the 3.4

Last edited by VeXe (2013-02-14 22:51:43)

Offline

#4 2013-02-15 00:28:29

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 835
Website

Re: Awesome breaks everytime I try to load a theme! "Oops, an error happen

VeXe wrote:

Hasn't anybody made any themes for 3.5? Is downgrading a good option?

Arch Linux had the package sooner in repositories many users will convert a few months later.
But how hard can it be to update a theme on your own, it's color codes and icon paths.

is there a big difference between 3.4 and 3.5?
I mean, why isn't awesome back-compatible?

Because it was developed for many years, it's supposed to be "next generation awesome".
I don't like the fact it's different but we knew what was coming years in advance, and 3.4
is still perfectly fine and usable window manager.


You need to install an RTFM interface.

Offline

Board footer

Powered by FluxBB