You are not logged in.

#1 2013-02-16 20:27:32

vlatk0
Member
From: Croatia
Registered: 2013-02-16
Posts: 13

Changing awesome themes not working

Hi, I have a problem changing the awesome themes. I installed some themes

yaourt awesome themes

and copied them in my ~/.config/awesome/themes folder, then i edited my rc.lua

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

When I restarted awesome I got my default theme and bunch of errors

http://i305.photobucket.com/albums/nn24 … _scrot.png

Only using the default theme does not produce these errors.
Can anyone help me?




-- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --

Offline

#2 2013-02-16 20:32:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Changing awesome themes not working

Is one of the themes actually called "theme.lua"?

The git page seems to suggest no: https://github.com/mikar/awesome-themes

It also includes a README with installation instructions.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-02-16 20:37:03

vlatk0
Member
From: Croatia
Registered: 2013-02-16
Posts: 13

Re: Changing awesome themes not working

Yes, the file is in the folder

[vlatko@arch /]$ ls -la ~/.config/awesome/themes/arch/ | grep theme
-rw-r--r--  1 vlatko users   5827 Feb 14 14:54 theme.lua
-rw-r--r--  1 vlatko users   5827 Feb 14 13:40 theme.lua~

This is the full content of this file:

-- arch, awesome3 theme

--{{{ Main
require("awful.util")

theme = {}

home          = os.getenv("HOME")
config        = awful.util.getdir("config")
shared        = "/usr/share/awesome"
if not awful.util.file_readable(shared .. "/icons/awesome16.png") then
    shared    = "/usr/share/local/awesome"
end
sharedicons   = shared .. "/icons"
sharedthemes  = shared .. "/themes"
themes        = config .. "/themes"
themename     = "/arch"
if not awful.util.file_readable(themes .. themename .. "/theme.lua") then
       themes = sharedthemes
end
themedir      = themes .. themename

wallpaper1    = themedir .. "/background.jpg"
wallpaper2    = themedir .. "/background.png"
wallpaper3    = sharedthemes .. "/zenburn/zenburn-background.png"
wallpaper4    = sharedthemes .. "/default/background.png"
wpscript      = home .. "/.wallpaper"

if awful.util.file_readable(wallpaper1) then
	theme.wallpaper_cmd = { "awsetbg " .. wallpaper1 }
elseif awful.util.file_readable(wallpaper2) then
	theme.wallpaper_cmd = { "awsetbg " .. wallpaper2 }
elseif awful.util.file_readable(wpscript) then
	theme.wallpaper_cmd = { "sh " .. wpscript }
elseif awful.util.file_readable(wallpaper3) then
	theme.wallpaper_cmd = { "awsetbg " .. wallpaper3 }
else
	theme.wallpaper_cmd = { "awsetbg " .. wallpaper4 }
end

if awful.util.file_readable(config .. "/vain/init.lua") then
    theme.useless_gap_width  = "3"
end
--}}}

theme.font          = "d3euronism 9"

theme.bg_normal     = "#000000"
theme.bg_focus      = "#1793d1"
theme.bg_urgent     = "#ff0000"
theme.bg_minimize   = "#000000"

theme.fg_normal     = "#1793d1"
theme.fg_focus      = "#000000"
theme.fg_urgent     = "#ffffff"
theme.fg_minimize   = "#1793d1"

theme.border_width  = "2"
theme.border_normal = "#000000"
theme.border_focus  = "#1793d1"
theme.border_marked = "#91231c"

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

-- Display the taglist squares
theme.taglist_squares_sel   = sharedthemes .. "/default/taglist/squarefw.png"
theme.taglist_squares_unsel = sharedthemes .. "/default/taglist/squarew.png"

theme.tasklist_floating_icon = sharedthemes .. "/default/tasklist/floatingw.png"

-- Variables set for theming the menu:
-- menu_[bg|fg]_[normal|focus]
-- menu_[border_color|border_width]
theme.menu_submenu_icon = sharedthemes .. "/default/submenu.png"
theme.menu_height = "15"
theme.menu_width  = "100"

-- You can add as many variables as
-- you wish and access them by using
-- beautiful.variable in your rc.lua
--theme.bg_widget = "#cc0000"

-- Define the image to load
theme.titlebar_close_button_normal = sharedthemes .. "/default/titlebar/close_normal.png"
theme.titlebar_close_button_focus  = sharedthemes .. "/default/titlebar/close_focus.png"

theme.titlebar_ontop_button_normal_inactive = sharedthemes .. "/default/titlebar/ontop_normal_inactive.png"
theme.titlebar_ontop_button_focus_inactive  = sharedthemes .. "/default/titlebar/ontop_focus_inactive.png"
theme.titlebar_ontop_button_normal_active = sharedthemes .. "/default/titlebar/ontop_normal_active.png"
theme.titlebar_ontop_button_focus_active  = sharedthemes .. "/default/titlebar/ontop_focus_active.png"

theme.titlebar_sticky_button_normal_inactive = sharedthemes .. "/default/titlebar/sticky_normal_inactive.png"
theme.titlebar_sticky_button_focus_inactive  = sharedthemes .. "/default/titlebar/sticky_focus_inactive.png"
theme.titlebar_sticky_button_normal_active = sharedthemes .. "/default/titlebar/sticky_normal_active.png"
theme.titlebar_sticky_button_focus_active  = sharedthemes .. "/default/titlebar/sticky_focus_active.png"

theme.titlebar_floating_button_normal_inactive = sharedthemes .. "/default/titlebar/floating_normal_inactive.png"
theme.titlebar_floating_button_focus_inactive  = sharedthemes .. "/default/titlebar/floating_focus_inactive.png"
theme.titlebar_floating_button_normal_active = sharedthemes .. "/default/titlebar/floating_normal_active.png"
theme.titlebar_floating_button_focus_active  = sharedthemes .. "/default/titlebar/floating_focus_active.png"

theme.titlebar_maximized_button_normal_inactive = sharedthemes .. "/default/titlebar/maximized_normal_inactive.png"
theme.titlebar_maximized_button_focus_inactive  = sharedthemes .. "/default/titlebar/maximized_focus_inactive.png"
theme.titlebar_maximized_button_normal_active = sharedthemes .. "/default/titlebar/maximized_normal_active.png"
theme.titlebar_maximized_button_focus_active  = sharedthemes .. "/default/titlebar/maximized_focus_active.png"

-- You can use your own layout icons like this:
theme.layout_fairh = sharedthemes .. "/default/layouts/fairhw.png"
theme.layout_fairv = sharedthemes .. "/default/layouts/fairvw.png"
theme.layout_floating  = sharedthemes .. "/default/layouts/floatingw.png"
theme.layout_magnifier = sharedthemes .. "/default/layouts/magnifierw.png"
theme.layout_max = sharedthemes .. "/default/layouts/maxw.png"
theme.layout_fullscreen = sharedthemes .. "/default/layouts/fullscreenw.png"
theme.layout_tilebottom = sharedthemes .. "/default/layouts/tilebottomw.png"
theme.layout_tileleft   = sharedthemes .. "/default/layouts/tileleftw.png"
theme.layout_tile = sharedthemes .. "/default/layouts/tilew.png"
theme.layout_tiletop = sharedthemes .. "/default/layouts/tiletopw.png"
theme.layout_spiral  = sharedthemes .. "/default/layouts/spiralw.png"
theme.layout_dwindle = sharedthemes .. "/default/layouts/dwindlew.png"

theme.awesome_icon = themedir .. "/awesome16.png"

return theme
-- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=80

Offline

#4 2013-02-16 21:16:29

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Changing awesome themes not working

Read the comments in the AUR page. You're trying to use 2-year-old themes with the new awesome 3.5.

Offline

#5 2013-02-16 21:17:13

vlatk0
Member
From: Croatia
Registered: 2013-02-16
Posts: 13

Re: Changing awesome themes not working

jasonwryan wrote:

Is one of the themes actually called "theme.lua"?

The git page seems to suggest no: https://github.com/mikar/awesome-themes

It also includes a README with installation instructions.

Huh really? I managed to navigate to the theme.lua file within this repo, its there, what makes you say that git page suggest no?

Offline

#6 2013-02-16 21:32:26

vlatk0
Member
From: Croatia
Registered: 2013-02-16
Posts: 13

Re: Changing awesome themes not working

tdy wrote:

Read the comments in the AUR page. You're trying to use 2-year-old themes with the new awesome 3.5.

Thanks for the respone, I was following the steps of a certain youtube video. Is there any bundle of themes for the awesome 3.5?

Offline

#7 2013-02-16 22:50:54

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: Changing awesome themes not working

vlatk0 wrote:

Is there any bundle of themes for the awesome 3.5?

I wouldn't know - actually I didn't even know about this bundle until yesterday. You can just make the changes mentioned in the AUR comments, e.g.:

find -name 'theme.lua' -exec sed -i 's/require("awful.util")/local awful = require("awful")/; s/.*\(theme.wallpaper\).*\( = \).*\(wallpaper\)\([1-4]\).*/    \1\2\3\4/; /wpscript/d' '{}' \;

Or you can use this fork with that command already applied:

https://github.com/tdy/awesome-themes

Last edited by tdy (2013-02-17 00:36:09)

Offline

Board footer

Powered by FluxBB