|
|
@@ -17,7 +17,7 @@ local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility |
|
|
|
local theme = {} |
|
|
|
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow" |
|
|
|
theme.wallpaper = theme.dir .. "/wall.png" |
|
|
|
theme.font = "Terminus 9" |
|
|
|
theme.font = "Liberation Mono 9" |
|
|
|
theme.fg_normal = "#FEFEFE" |
|
|
|
theme.fg_focus = "#32D6FF" |
|
|
|
theme.fg_urgent = "#C83F11" |
|
|
@@ -78,7 +78,7 @@ theme.widget_task = theme.dir .. "/icons/task.png" |
|
|
|
theme.widget_scissors = theme.dir .. "/icons/scissors.png" |
|
|
|
theme.tasklist_plain_task_name = true |
|
|
|
theme.tasklist_disable_icon = true |
|
|
|
theme.useless_gap = 0 |
|
|
|
theme.useless_gap = 20 |
|
|
|
theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png" |
|
|
|
theme.titlebar_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png" |
|
|
|
theme.titlebar_ontop_button_focus_active = theme.dir .. "/icons/titlebar/ontop_focus_active.png" |
|
|
@@ -101,20 +101,27 @@ theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/ |
|
|
|
local markup = lain.util.markup |
|
|
|
local separators = lain.util.separators |
|
|
|
|
|
|
|
local clockicon = wibox.widget.imagebox(theme.widget_clock) |
|
|
|
local clock = awful.widget.watch( |
|
|
|
"date +'%a %d %b %R'", 60, |
|
|
|
function(widget, stdout) |
|
|
|
widget:set_markup(" " .. markup.font(theme.font, stdout)) |
|
|
|
end |
|
|
|
) |
|
|
|
-- Binary clock |
|
|
|
local binclock = require("themes.powerarrow.binclock"){ |
|
|
|
height = dpi(32), |
|
|
|
show_seconds = true, |
|
|
|
color_active = theme.fg_normal, |
|
|
|
color_inactive = theme.bg_focus |
|
|
|
} |
|
|
|
-- local binclock = require("themes.powerarrow.binclock"){ |
|
|
|
-- height = dpi(32), |
|
|
|
-- show_seconds = true, |
|
|
|
-- color_active = theme.fg_normal, |
|
|
|
-- color_inactive = theme.bg_focus |
|
|
|
-- } |
|
|
|
|
|
|
|
-- Calendar |
|
|
|
theme.cal = lain.widget.cal({ |
|
|
|
--cal = "cal --color=always", |
|
|
|
attach_to = { binclock.widget }, |
|
|
|
attach_to = { clock }, |
|
|
|
notification_preset = { |
|
|
|
font = "Terminus 10", |
|
|
|
font = "Liberation Mono 10", |
|
|
|
fg = theme.fg_normal, |
|
|
|
bg = theme.bg_normal |
|
|
|
} |
|
|
@@ -230,7 +237,7 @@ local tempicon = wibox.widget.imagebox(theme.widget_temp) |
|
|
|
|
|
|
|
-- / fs |
|
|
|
local fsicon = wibox.widget.imagebox(theme.widget_hdd) |
|
|
|
--[[ commented because it needs Gio/Glib >= 2.54 |
|
|
|
-- commented because it needs Gio/Glib >= 2.54 |
|
|
|
theme.fs = lain.widget.fs({ |
|
|
|
notification_preset = { fg = theme.fg_normal, bg = theme.bg_normal, font = "Terminus 10" }, |
|
|
|
settings = function() |
|
|
@@ -238,7 +245,6 @@ theme.fs = lain.widget.fs({ |
|
|
|
widget:set_markup(markup.font(theme.font, fsp)) |
|
|
|
end |
|
|
|
}) |
|
|
|
--]] |
|
|
|
|
|
|
|
-- Battery |
|
|
|
local baticon = wibox.widget.imagebox(theme.widget_battery) |
|
|
@@ -389,7 +395,7 @@ function theme.at_screen_connect(s) |
|
|
|
arrow("#8DAA9A", "#C0C0A2"), |
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { nil, neticon, net.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(3)), "#C0C0A2"), |
|
|
|
arrow("#C0C0A2", "#777E76"), |
|
|
|
wibox.container.background(wibox.container.margin(binclock.widget, dpi(4), dpi(8)), "#777E76"), |
|
|
|
wibox.container.background(wibox.container.margin(clock, dpi(4), dpi(8)), "#777E76"), |
|
|
|
arrow("#777E76", "alpha"), |
|
|
|
--]] |
|
|
|
s.mylayoutbox, |
|
|
|