You are not logged in.

#1 2014-07-08 01:08:39

Mugi
Member
Registered: 2014-07-08
Posts: 31

[SOLVED]Awesome-wm's theme doesn't work

So I tried to use one of awesome's themes (zenburn,) the problem is when I startx there is just a black screen with a mouse pointer, which I am able to move.

Here is my rc.lua:

awful = require("awful")

beautiful = require('beautiful')

beautiful.init("~/.config/awesome/themes/zenburn/theme.lua")

bg_focus = beautiful.bg_focus

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

Theme.lua for zenburn:

-------------------------------
--  "Zenburn" awesome theme  --
--    By Adrian C. (anrxc)   --
-------------------------------

-- Alternative icon sets and widget icons:
--  * http://awesome.naquadah.org/wiki/Nice_Icons

-- {{{ Main
theme = {}
theme.wallpaper = "/usr/share/awesome/themes/zenburn/zenburn-background.png"
-- }}}

-- {{{ Styles
theme.font      = "sans 8"

-- {{{ Colors
theme.fg_normal  = "#DCDCCC"
theme.fg_focus   = "#F0DFAF"
theme.fg_urgent  = "#CC9393"
theme.bg_normal  = "#3F3F3F"
theme.bg_focus   = "#1E2320"
theme.bg_urgent  = "#3F3F3F"
theme.bg_systray = theme.bg_normal
-- }}}

-- {{{ Borders
theme.border_width  = 2
theme.border_normal = "#3F3F3F"
theme.border_focus  = "#6F6F6F"
theme.border_marked = "#CC9393"
-- }}}

-- {{{ Titlebars
theme.titlebar_bg_focus  = "#3F3F3F"
theme.titlebar_bg_normal = "#3F3F3F"
-- }}}

-- There are other variable sets
-- overriding the default one when
-- defined, the sets are:
-- [taglist|tasklist]_[bg|fg]_[focus|urgent]
-- titlebar_[normal|focus]
-- tooltip_[font|opacity|fg_color|bg_color|border_width|border_color]
-- Example:
--theme.taglist_bg_focus = "#CC9393"
-- }}}

-- {{{ Widgets
-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.fg_widget        = "#AECF96"
--theme.fg_center_widget = "#88A175"
--theme.fg_end_widget    = "#FF5656"
--theme.bg_widget        = "#494B4F"
--theme.border_widget    = "#3F3F3F"
-- }}}

-- {{{ Mouse finder
theme.mouse_finder_color = "#CC9393"
-- mouse_finder_[timeout|animate_timeout|radius|factor]
-- }}}

-- {{{ Menu
-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_height = 15
theme.menu_width  = 100
-- }}}

-- {{{ Icons
-- {{{ Taglist
theme.taglist_squares_sel   = "/usr/share/awesome/themes/zenburn/taglist/squarefz.png"
theme.taglist_squares_unsel = "/usr/share/awesome/themes/zenburn/taglist/squarez.png"
--theme.taglist_squares_resize = "false"
-- }}}

-- {{{ Misc
theme.awesome_icon           = "/usr/share/awesome/themes/zenburn/awesome-icon.png"
theme.menu_submenu_icon      = "/usr/share/awesome/themes/default/submenu.png"
-- }}}

-- {{{ Layout
theme.layout_tile       = "/usr/share/awesome/themes/zenburn/layouts/tile.png"
theme.layout_tileleft   = "/usr/share/awesome/themes/zenburn/layouts/tileleft.png"
theme.layout_tilebottom = "/usr/share/awesome/themes/zenburn/layouts/tilebottom.png"
theme.layout_tiletop    = "/usr/share/awesome/themes/zenburn/layouts/tiletop.png"
theme.layout_fairv      = "/usr/share/awesome/themes/zenburn/layouts/fairv.png"
theme.layout_fairh      = "/usr/share/awesome/themes/zenburn/layouts/fairh.png"
theme.layout_spiral     = "/usr/share/awesome/themes/zenburn/layouts/spiral.png"
theme.layout_dwindle    = "/usr/share/awesome/themes/zenburn/layouts/dwindle.png"
theme.layout_max        = "/usr/share/awesome/themes/zenburn/layouts/max.png"
theme.layout_fullscreen = "/usr/share/awesome/themes/zenburn/layouts/fullscreen.png"
theme.layout_magnifier  = "/usr/share/awesome/themes/zenburn/layouts/magnifier.png"
theme.layout_floating   = "/usr/share/awesome/themes/zenburn/layouts/floating.png"
-- }}}

-- {{{ Titlebar
theme.titlebar_close_button_focus  = "/usr/share/awesome/themes/zenburn/titlebar/close_focus.png"
theme.titlebar_close_button_normal = "/usr/share/awesome/themes/zenburn/titlebar/close_normal.png"

theme.titlebar_ontop_button_focus_active  = "/usr/share/awesome/themes/zenburn/titlebar/ontop_focus_active.png"
theme.titlebar_ontop_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_inactive  = "/usr/share/awesome/themes/zenburn/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/ontop_normal_inactive.png"

theme.titlebar_sticky_button_focus_active  = "/usr/share/awesome/themes/zenburn/titlebar/sticky_focus_active.png"
theme.titlebar_sticky_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_inactive  = "/usr/share/awesome/themes/zenburn/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/sticky_normal_inactive.png"

theme.titlebar_floating_button_focus_active  = "/usr/share/awesome/themes/zenburn/titlebar/floating_focus_active.png"
theme.titlebar_floating_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_inactive  = "/usr/share/awesome/themes/zenburn/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/floating_normal_inactive.png"

theme.titlebar_maximized_button_focus_active  = "/usr/share/awesome/themes/zenburn/titlebar/maximized_focus_active.png"
theme.titlebar_maximized_button_normal_active = "/usr/share/awesome/themes/zenburn/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_inactive  = "/usr/share/awesome/themes/zenburn/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_inactive = "/usr/share/awesome/themes/zenburn/titlebar/maximized_normal_inactive.png"
-- }}}
-- }}}

return theme

Last edited by Mugi (2014-07-08 14:29:44)

Offline

#2 2014-07-08 03:23:53

Proinsias
Member
From: Glasgow
Registered: 2013-08-19
Posts: 121

Re: [SOLVED]Awesome-wm's theme doesn't work

Is that all of you rc.lua? it seems pretty minimal

Have you tried it successfully with the default theme before trying zenburn?

For changing theme I just copied /etc/xdg/awesome/rc.lua to ~/.config/awesome/rc.lua and changed the beautiful.init line from default to zenburn.

Last edited by Proinsias (2014-07-08 03:24:48)

Offline

#3 2014-07-08 08:49:20

Mugi
Member
Registered: 2014-07-08
Posts: 31

Re: [SOLVED]Awesome-wm's theme doesn't work

Proinsias wrote:

Is that all of you rc.lua? it seems pretty minimal

Have you tried it successfully with the default theme before trying zenburn?

For changing theme I just copied /etc/xdg/awesome/rc.lua to ~/.config/awesome/rc.lua and changed the beautiful.init line from default to zenburn.

well my rc.lua is basically pointing at the theme of zenburn. It works if I don't do anything myself, that means it just picks I guess the default rc.lua, but I am not able to point at the default theme like I did with zenburn.

and changed the beautiful.init line from default to zenburn.

Can you please post your rc.lua, I don't understand what you did there.

Offline

#4 2014-07-08 10:36:50

Darkcloud
Member
From: Germany
Registered: 2013-08-24
Posts: 15

Re: [SOLVED]Awesome-wm's theme doesn't work

Just change the default beautiful.init("/usr/share/awesome/themes/default/theme.lua") to beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua").

Your beautiful.init points to ~/.config/awesome/themes/... which is perfectly fine if you actually copied the theme to that folder. You copied the zenburn folder, right?

Edit:

Mugi wrote:

well my rc.lua is basically pointing at the theme of zenburn. It works if I don't do anything myself, that means it just picks I guess the default rc.lua, but I am not able to point at the default theme like I did with zenburn.

After reading this a couple of times, I get the feeling that the rc.lua you posted actually is all of your rc.lua... That won't work.
You can't just provide a partial rc.lua with some things you want to change.
Just copy /etc/xdg/awesome/rc.lua to ~/.config/awesome/rc.lua and change the beautiful.init line (as Proinsias already stated)

Last edited by Darkcloud (2014-07-08 11:04:17)

Offline

#5 2014-07-08 11:00:17

Mugi
Member
Registered: 2014-07-08
Posts: 31

Re: [SOLVED]Awesome-wm's theme doesn't work

Darkcloud wrote:

Just change the default beautiful.init("/usr/share/awesome/themes/default/theme.lua") to beautiful.init("/usr/share/awesome/themes/zenburn/theme.lua").

Your beautiful.init points to ~/.config/awesome/themes/... which is perfectly fine if you actually copied the theme to that folder. You copied the zenburn folder, right?

Yes I copied it, but the problem still remains. My screen is black just with a mousepointer.

Offline

#6 2014-07-08 11:05:18

Darkcloud
Member
From: Germany
Registered: 2013-08-24
Posts: 15

Re: [SOLVED]Awesome-wm's theme doesn't work

Darn it. I was too slow.
Read the edit of my last post...

Offline

#7 2014-07-08 11:36:49

Mugi
Member
Registered: 2014-07-08
Posts: 31

Re: [SOLVED]Awesome-wm's theme doesn't work

Darkcloud wrote:

Darn it. I was too slow.
Read the edit of my last post...

Well atleast the issue with the black screen is fixed now, thanks. But my desktop looks alot like the standard theme now, do I have to copy the rc.lua made for zenburn specifically? Should I mark the thread as solved?

Offline

#8 2014-07-08 14:29:00

Mugi
Member
Registered: 2014-07-08
Posts: 31

Re: [SOLVED]Awesome-wm's theme doesn't work

Okay I solved the issue, there already was a beautiful.init() pointing to the default theme, hope this helps people in the future with the same problems.

Offline

Board footer

Powered by FluxBB