我是很棒的新手,并且在从以下存储库配置主题时遇到问题:这里
我刚刚将主题移动到我的很棒的目录中,所以树看起来像这样:
~/.config/awesome/
-- rc.lua
-- themes
-- anon
-- multicolor # these are the themes from github
# etc
这rc.lua
是从其中一个主题复制的,其内容如下:
--[[
Steamburn Awesome WM config 2.0
github.com/copycat-killer
--]]
local awful = require("awful")
awful.util = require("awful.util")
--{{{ Main
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 = "/steamburn"
if not awful.util.file_readable(themes .. themename .. "/theme.lua") then
themes = sharedthemes
end
themedir = themes .. themename
wallpaper1 = themedir .. "/wall.png"
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 = wallpaper1
elseif awful.util.file_readable(wallpaper2) then
theme.wallpaper = wallpaper2
elseif awful.util.file_readable(wpscript) then
theme.wallpaper_cmd = { "sh " .. wpscript }
elseif awful.util.file_readable(wallpaper3) then
theme.wallpaper = wallpaper3
else
theme.wallpaper = wallpaper4
end
--}}}
theme.font = "Tamsyn 10.5"
theme.fg_normal = "#cdcdcd"
theme.fg_focus = "#d79d38"
theme.fg_urgent = "#CC9393"
theme.bg_normal = "#140c0b"
theme.bg_focus = "#140c0b"
theme.bg_urgent = "#2a1f1e"
theme.border_width = "1"
theme.border_normal = "#140c0f"
theme.border_focus = "#915543"
theme.border_marked = "#CC9393"
theme.taglist_fg_focus = "#d47456"
theme.tasklist_bg_focus = "#140c0b"
theme.tasklist_fg_focus = "#d47456"
theme.menu_height = "16"
theme.menu_width = "140"
theme.layout_txt_tile = "[t]"
theme.layout_txt_tileleft = "[l]"
theme.layout_txt_tilebottom = "[b]"
theme.layout_txt_tiletop = "[tt]"
theme.layout_txt_fairv = "[fv]"
theme.layout_txt_fairh = "[fh]"
theme.layout_txt_spiral = "[s]"
theme.layout_txt_dwindle = "[d]"
theme.layout_txt_max = "[m]"
theme.layout_txt_fullscreen = "[F]"
theme.layout_txt_magnifier = "[M]"
theme.layout_txt_floating = "[|]"
theme.menu_submenu_icon = themedir .. "/icons/submenu.png"
theme.taglist_squares_sel = themedir .. "/icons/square_sel.png"
theme.taglist_squares_unsel = themedir .. "/icons/square_unsel.png"
theme.tasklist_disable_icon = true
theme.tasklist_floating = ""
theme.tasklist_maximized_horizontal = ""
theme.tasklist_maximized_vertical = ""
return theme
它不起作用,它只是在黑屏上显示光标,没有背景,没有任务栏,并且您无法打开终端或其他任何东西。
我还复制了主题,/usr/share/awesome/themes
但我不认为这是问题。
我在 arch-linux 上,我的 Awesome 版本是3.5.2
.
如果有人这样做过,请帮忙。
答案1
您可以使用以下命令验证您的配置awesome --check
。这至少应该让您了解语法错误。
答案2
如果你正在使用.xinitrc
你可以启用日志记录到文件:
exec /usr/bin/awesome >> ~/.cache/awesome/stdout 2>> ~/.cache/awesome/stderr