2017-03-03 11:58:57 +00:00
|
|
|
--[[
|
2017-09-13 10:34:28 +00:00
|
|
|
|
|
|
|
Powerarrow Awesome WM theme
|
2017-10-07 11:10:43 +00:00
|
|
|
github.com/lcpz
|
2017-09-13 10:34:28 +00:00
|
|
|
|
2017-03-03 11:58:57 +00:00
|
|
|
--]]
|
|
|
|
|
|
|
|
local gears = require("gears")
|
|
|
|
local lain = require("lain")
|
|
|
|
local awful = require("awful")
|
|
|
|
local wibox = require("wibox")
|
2019-03-02 18:05:33 +00:00
|
|
|
local dpi = require("beautiful.xresources").apply_dpi
|
2018-02-02 11:17:33 +00:00
|
|
|
|
2018-11-01 09:36:06 +00:00
|
|
|
local math, string, os = math, string, os
|
2018-02-02 11:17:33 +00:00
|
|
|
local my_table = awful.util.table or gears.table -- 4.{0,1} compatibility
|
2017-03-03 11:58:57 +00:00
|
|
|
|
|
|
|
local theme = {}
|
|
|
|
theme.dir = os.getenv("HOME") .. "/.config/awesome/themes/powerarrow"
|
|
|
|
theme.wallpaper = theme.dir .. "/wall.png"
|
2019-08-20 13:54:41 +00:00
|
|
|
theme.font = "Terminus 9"
|
2017-03-03 11:58:57 +00:00
|
|
|
theme.fg_normal = "#FEFEFE"
|
|
|
|
theme.fg_focus = "#32D6FF"
|
|
|
|
theme.fg_urgent = "#C83F11"
|
|
|
|
theme.bg_normal = "#222222"
|
|
|
|
theme.bg_focus = "#1E2320"
|
|
|
|
theme.bg_urgent = "#3F3F3F"
|
|
|
|
theme.taglist_fg_focus = "#00CCFF"
|
|
|
|
theme.tasklist_bg_focus = "#222222"
|
|
|
|
theme.tasklist_fg_focus = "#00CCFF"
|
2019-03-02 18:05:33 +00:00
|
|
|
theme.border_width = dpi(2)
|
2017-03-03 11:58:57 +00:00
|
|
|
theme.border_normal = "#3F3F3F"
|
|
|
|
theme.border_focus = "#6F6F6F"
|
|
|
|
theme.border_marked = "#CC9393"
|
|
|
|
theme.titlebar_bg_focus = "#3F3F3F"
|
|
|
|
theme.titlebar_bg_normal = "#3F3F3F"
|
|
|
|
theme.titlebar_bg_focus = theme.bg_focus
|
|
|
|
theme.titlebar_bg_normal = theme.bg_normal
|
|
|
|
theme.titlebar_fg_focus = theme.fg_focus
|
2019-03-02 18:05:33 +00:00
|
|
|
theme.menu_height = dpi(16)
|
|
|
|
theme.menu_width = dpi(140)
|
2017-03-03 11:58:57 +00:00
|
|
|
theme.menu_submenu_icon = theme.dir .. "/icons/submenu.png"
|
|
|
|
theme.awesome_icon = theme.dir .. "/icons/awesome.png"
|
|
|
|
theme.taglist_squares_sel = theme.dir .. "/icons/square_sel.png"
|
|
|
|
theme.taglist_squares_unsel = theme.dir .. "/icons/square_unsel.png"
|
|
|
|
theme.layout_tile = theme.dir .. "/icons/tile.png"
|
|
|
|
theme.layout_tileleft = theme.dir .. "/icons/tileleft.png"
|
|
|
|
theme.layout_tilebottom = theme.dir .. "/icons/tilebottom.png"
|
|
|
|
theme.layout_tiletop = theme.dir .. "/icons/tiletop.png"
|
|
|
|
theme.layout_fairv = theme.dir .. "/icons/fairv.png"
|
|
|
|
theme.layout_fairh = theme.dir .. "/icons/fairh.png"
|
|
|
|
theme.layout_spiral = theme.dir .. "/icons/spiral.png"
|
|
|
|
theme.layout_dwindle = theme.dir .. "/icons/dwindle.png"
|
|
|
|
theme.layout_max = theme.dir .. "/icons/max.png"
|
|
|
|
theme.layout_fullscreen = theme.dir .. "/icons/fullscreen.png"
|
|
|
|
theme.layout_magnifier = theme.dir .. "/icons/magnifier.png"
|
|
|
|
theme.layout_floating = theme.dir .. "/icons/floating.png"
|
|
|
|
theme.widget_ac = theme.dir .. "/icons/ac.png"
|
|
|
|
theme.widget_battery = theme.dir .. "/icons/battery.png"
|
|
|
|
theme.widget_battery_low = theme.dir .. "/icons/battery_low.png"
|
|
|
|
theme.widget_battery_empty = theme.dir .. "/icons/battery_empty.png"
|
2019-02-12 23:29:45 +00:00
|
|
|
theme.widget_brightness = theme.dir .. "/icons/brightness.png"
|
2017-03-03 11:58:57 +00:00
|
|
|
theme.widget_mem = theme.dir .. "/icons/mem.png"
|
|
|
|
theme.widget_cpu = theme.dir .. "/icons/cpu.png"
|
|
|
|
theme.widget_temp = theme.dir .. "/icons/temp.png"
|
|
|
|
theme.widget_net = theme.dir .. "/icons/net.png"
|
|
|
|
theme.widget_hdd = theme.dir .. "/icons/hdd.png"
|
|
|
|
theme.widget_music = theme.dir .. "/icons/note.png"
|
|
|
|
theme.widget_music_on = theme.dir .. "/icons/note_on.png"
|
|
|
|
theme.widget_music_pause = theme.dir .. "/icons/pause.png"
|
|
|
|
theme.widget_music_stop = theme.dir .. "/icons/stop.png"
|
|
|
|
theme.widget_vol = theme.dir .. "/icons/vol.png"
|
|
|
|
theme.widget_vol_low = theme.dir .. "/icons/vol_low.png"
|
|
|
|
theme.widget_vol_no = theme.dir .. "/icons/vol_no.png"
|
|
|
|
theme.widget_vol_mute = theme.dir .. "/icons/vol_mute.png"
|
|
|
|
theme.widget_mail = theme.dir .. "/icons/mail.png"
|
|
|
|
theme.widget_mail_on = theme.dir .. "/icons/mail_on.png"
|
|
|
|
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.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"
|
|
|
|
theme.titlebar_ontop_button_normal_active = theme.dir .. "/icons/titlebar/ontop_normal_active.png"
|
|
|
|
theme.titlebar_ontop_button_focus_inactive = theme.dir .. "/icons/titlebar/ontop_focus_inactive.png"
|
|
|
|
theme.titlebar_ontop_button_normal_inactive = theme.dir .. "/icons/titlebar/ontop_normal_inactive.png"
|
|
|
|
theme.titlebar_sticky_button_focus_active = theme.dir .. "/icons/titlebar/sticky_focus_active.png"
|
|
|
|
theme.titlebar_sticky_button_normal_active = theme.dir .. "/icons/titlebar/sticky_normal_active.png"
|
|
|
|
theme.titlebar_sticky_button_focus_inactive = theme.dir .. "/icons/titlebar/sticky_focus_inactive.png"
|
|
|
|
theme.titlebar_sticky_button_normal_inactive = theme.dir .. "/icons/titlebar/sticky_normal_inactive.png"
|
|
|
|
theme.titlebar_floating_button_focus_active = theme.dir .. "/icons/titlebar/floating_focus_active.png"
|
|
|
|
theme.titlebar_floating_button_normal_active = theme.dir .. "/icons/titlebar/floating_normal_active.png"
|
|
|
|
theme.titlebar_floating_button_focus_inactive = theme.dir .. "/icons/titlebar/floating_focus_inactive.png"
|
|
|
|
theme.titlebar_floating_button_normal_inactive = theme.dir .. "/icons/titlebar/floating_normal_inactive.png"
|
|
|
|
theme.titlebar_maximized_button_focus_active = theme.dir .. "/icons/titlebar/maximized_focus_active.png"
|
|
|
|
theme.titlebar_maximized_button_normal_active = theme.dir .. "/icons/titlebar/maximized_normal_active.png"
|
|
|
|
theme.titlebar_maximized_button_focus_inactive = theme.dir .. "/icons/titlebar/maximized_focus_inactive.png"
|
|
|
|
theme.titlebar_maximized_button_normal_inactive = theme.dir .. "/icons/titlebar/maximized_normal_inactive.png"
|
|
|
|
|
|
|
|
local markup = lain.util.markup
|
|
|
|
local separators = lain.util.separators
|
|
|
|
|
2017-03-10 19:48:23 +00:00
|
|
|
-- Binary clock
|
2017-03-03 11:58:57 +00:00
|
|
|
local binclock = require("themes.powerarrow.binclock"){
|
2019-03-02 18:05:33 +00:00
|
|
|
height = dpi(32),
|
2017-03-03 11:58:57 +00:00
|
|
|
show_seconds = true,
|
|
|
|
color_active = theme.fg_normal,
|
|
|
|
color_inactive = theme.bg_focus
|
|
|
|
}
|
|
|
|
|
|
|
|
-- Calendar
|
2018-09-14 23:09:25 +00:00
|
|
|
theme.cal = lain.widget.cal({
|
2017-03-03 11:58:57 +00:00
|
|
|
--cal = "cal --color=always",
|
|
|
|
attach_to = { binclock.widget },
|
|
|
|
notification_preset = {
|
2019-08-20 13:54:41 +00:00
|
|
|
font = "Terminus 10",
|
2017-03-03 11:58:57 +00:00
|
|
|
fg = theme.fg_normal,
|
|
|
|
bg = theme.bg_normal
|
|
|
|
}
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Taskwarrior
|
|
|
|
local task = wibox.widget.imagebox(theme.widget_task)
|
2017-07-15 12:36:21 +00:00
|
|
|
lain.widget.contrib.task.attach(task, {
|
|
|
|
-- do not colorize output
|
|
|
|
show_cmd = "task | sed -r 's/\\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)?[mGK]//g'"
|
|
|
|
})
|
2018-02-02 11:17:33 +00:00
|
|
|
task:buttons(my_table.join(awful.button({}, 1, lain.widget.contrib.task.prompt)))
|
2017-03-03 11:58:57 +00:00
|
|
|
|
|
|
|
-- Scissors (xsel copy and paste)
|
|
|
|
local scissors = wibox.widget.imagebox(theme.widget_scissors)
|
2018-08-03 09:29:32 +00:00
|
|
|
scissors:buttons(my_table.join(awful.button({}, 1, function() awful.spawn.with_shell("xsel | xsel -i -b") end)))
|
2017-03-03 11:58:57 +00:00
|
|
|
|
|
|
|
-- Mail IMAP check
|
|
|
|
--[[ commented because it needs to be set before use
|
2018-09-17 19:35:27 +00:00
|
|
|
local mailicon = wibox.widget.imagebox(theme.widget_mail)
|
2018-02-02 11:17:33 +00:00
|
|
|
mailicon:buttons(my_table.join(awful.button({ }, 1, function () awful.spawn(mail) end)))
|
2018-09-17 19:35:27 +00:00
|
|
|
theme.mail = lain.widget.imap({
|
2017-03-03 11:58:57 +00:00
|
|
|
timeout = 180,
|
|
|
|
server = "server",
|
|
|
|
mail = "mail",
|
|
|
|
password = "keyring get mail",
|
|
|
|
settings = function()
|
|
|
|
if mailcount > 0 then
|
|
|
|
widget:set_text(" " .. mailcount .. " ")
|
|
|
|
mailicon:set_image(theme.widget_mail_on)
|
|
|
|
else
|
|
|
|
widget:set_text("")
|
|
|
|
mailicon:set_image(theme.widget_mail)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
--]]
|
|
|
|
|
|
|
|
-- ALSA volume
|
|
|
|
theme.volume = lain.widget.alsabar({
|
|
|
|
--togglechannel = "IEC958,3",
|
2019-08-20 13:54:41 +00:00
|
|
|
notification_preset = { font = "Terminus 10", fg = theme.fg_normal },
|
2017-03-03 11:58:57 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
-- MPD
|
|
|
|
local musicplr = awful.util.terminal .. " -title Music -g 130x34-320+16 -e ncmpcpp"
|
|
|
|
local mpdicon = wibox.widget.imagebox(theme.widget_music)
|
2018-02-02 11:17:33 +00:00
|
|
|
mpdicon:buttons(my_table.join(
|
2017-06-07 09:11:34 +00:00
|
|
|
awful.button({ modkey }, 1, function () awful.spawn.with_shell(musicplr) end),
|
|
|
|
awful.button({ }, 1, function ()
|
2018-08-03 09:29:32 +00:00
|
|
|
os.execute("mpc prev")
|
2017-06-07 09:11:34 +00:00
|
|
|
theme.mpd.update()
|
|
|
|
end),
|
|
|
|
awful.button({ }, 2, function ()
|
2018-08-03 09:29:32 +00:00
|
|
|
os.execute("mpc toggle")
|
2017-06-07 09:11:34 +00:00
|
|
|
theme.mpd.update()
|
|
|
|
end),
|
|
|
|
awful.button({ }, 3, function ()
|
2018-08-03 09:29:32 +00:00
|
|
|
os.execute("mpc next")
|
2017-06-07 09:11:34 +00:00
|
|
|
theme.mpd.update()
|
|
|
|
end)))
|
2017-03-03 11:58:57 +00:00
|
|
|
theme.mpd = lain.widget.mpd({
|
|
|
|
settings = function()
|
|
|
|
if mpd_now.state == "play" then
|
|
|
|
artist = " " .. mpd_now.artist .. " "
|
|
|
|
title = mpd_now.title .. " "
|
|
|
|
mpdicon:set_image(theme.widget_music_on)
|
|
|
|
widget:set_markup(markup.font(theme.font, markup("#FF8466", artist) .. " " .. title))
|
|
|
|
elseif mpd_now.state == "pause" then
|
|
|
|
widget:set_markup(markup.font(theme.font, " mpd paused "))
|
|
|
|
mpdicon:set_image(theme.widget_music_pause)
|
|
|
|
else
|
|
|
|
widget:set_text("")
|
|
|
|
mpdicon:set_image(theme.widget_music)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
-- MEM
|
|
|
|
local memicon = wibox.widget.imagebox(theme.widget_mem)
|
|
|
|
local mem = lain.widget.mem({
|
|
|
|
settings = function()
|
|
|
|
widget:set_markup(markup.font(theme.font, " " .. mem_now.used .. "MB "))
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
-- CPU
|
|
|
|
local cpuicon = wibox.widget.imagebox(theme.widget_cpu)
|
|
|
|
local cpu = lain.widget.cpu({
|
|
|
|
settings = function()
|
|
|
|
widget:set_markup(markup.font(theme.font, " " .. cpu_now.usage .. "% "))
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
--[[ Coretemp (lm_sensors, per core)
|
|
|
|
local tempwidget = awful.widget.watch({awful.util.shell, '-c', 'sensors | grep Core'}, 30,
|
|
|
|
function(widget, stdout)
|
|
|
|
local temps = ""
|
|
|
|
for line in stdout:gmatch("[^\r\n]+") do
|
|
|
|
temps = temps .. line:match("+(%d+).*°C") .. "° " -- in Celsius
|
|
|
|
end
|
|
|
|
widget:set_markup(markup.font(theme.font, " " .. temps))
|
|
|
|
end)
|
|
|
|
--]]
|
|
|
|
-- Coretemp (lain, average)
|
|
|
|
local temp = lain.widget.temp({
|
|
|
|
settings = function()
|
|
|
|
widget:set_markup(markup.font(theme.font, " " .. coretemp_now .. "°C "))
|
|
|
|
end
|
|
|
|
})
|
|
|
|
--]]
|
|
|
|
local tempicon = wibox.widget.imagebox(theme.widget_temp)
|
|
|
|
|
|
|
|
-- / fs
|
|
|
|
local fsicon = wibox.widget.imagebox(theme.widget_hdd)
|
2018-09-17 19:35:27 +00:00
|
|
|
--[[ commented because it needs Gio/Glib >= 2.54
|
2017-03-03 11:58:57 +00:00
|
|
|
theme.fs = lain.widget.fs({
|
2019-08-20 13:54:41 +00:00
|
|
|
notification_preset = { fg = theme.fg_normal, bg = theme.bg_normal, font = "Terminus 10" },
|
2017-03-03 11:58:57 +00:00
|
|
|
settings = function()
|
2018-02-16 16:56:03 +00:00
|
|
|
local fsp = string.format(" %3.2f %s ", fs_now["/"].free, fs_now["/"].units)
|
|
|
|
widget:set_markup(markup.font(theme.font, fsp))
|
2017-03-03 11:58:57 +00:00
|
|
|
end
|
|
|
|
})
|
2018-09-17 19:35:27 +00:00
|
|
|
--]]
|
2017-03-03 11:58:57 +00:00
|
|
|
|
|
|
|
-- Battery
|
|
|
|
local baticon = wibox.widget.imagebox(theme.widget_battery)
|
|
|
|
local bat = lain.widget.bat({
|
|
|
|
settings = function()
|
2018-07-25 10:45:34 +00:00
|
|
|
if bat_now.status and bat_now.status ~= "N/A" then
|
2017-03-03 11:58:57 +00:00
|
|
|
if bat_now.ac_status == 1 then
|
|
|
|
widget:set_markup(markup.font(theme.font, " AC "))
|
|
|
|
baticon:set_image(theme.widget_ac)
|
|
|
|
return
|
|
|
|
elseif not bat_now.perc and tonumber(bat_now.perc) <= 5 then
|
|
|
|
baticon:set_image(theme.widget_battery_empty)
|
|
|
|
elseif not bat_now.perc and tonumber(bat_now.perc) <= 15 then
|
|
|
|
baticon:set_image(theme.widget_battery_low)
|
|
|
|
else
|
|
|
|
baticon:set_image(theme.widget_battery)
|
|
|
|
end
|
|
|
|
widget:set_markup(markup.font(theme.font, " " .. bat_now.perc .. "% "))
|
|
|
|
else
|
|
|
|
widget:set_markup()
|
|
|
|
baticon:set_image(theme.widget_ac)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Net
|
|
|
|
local neticon = wibox.widget.imagebox(theme.widget_net)
|
|
|
|
local net = lain.widget.net({
|
|
|
|
settings = function()
|
|
|
|
widget:set_markup(markup.fontfg(theme.font, "#FEFEFE", " " .. net_now.received .. " ↓↑ " .. net_now.sent .. " "))
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2019-02-12 23:29:45 +00:00
|
|
|
-- Brigtness
|
|
|
|
local brighticon = wibox.widget.imagebox(theme.widget_brightness)
|
|
|
|
-- If you use xbacklight, comment the line with "light -G" and uncomment the line bellow
|
2019-02-13 03:22:00 +00:00
|
|
|
-- local brightwidget = awful.widget.watch('xbacklight -get', 0.1,
|
|
|
|
local brightwidget = awful.widget.watch('light -G', 0.1,
|
2019-02-12 23:29:45 +00:00
|
|
|
function(widget, stdout, stderr, exitreason, exitcode)
|
|
|
|
local brightness_level = tonumber(string.format("%.0f", stdout))
|
|
|
|
widget:set_markup(markup.font(theme.font, " " .. brightness_level .. "%"))
|
|
|
|
end)
|
|
|
|
|
2017-03-03 11:58:57 +00:00
|
|
|
-- Separators
|
|
|
|
local arrow = separators.arrow_left
|
|
|
|
|
|
|
|
function theme.powerline_rl(cr, width, height)
|
|
|
|
local arrow_depth, offset = height/2, 0
|
|
|
|
|
|
|
|
-- Avoid going out of the (potential) clip area
|
|
|
|
if arrow_depth < 0 then
|
|
|
|
width = width + 2*arrow_depth
|
|
|
|
offset = -arrow_depth
|
|
|
|
end
|
|
|
|
|
|
|
|
cr:move_to(offset + arrow_depth , 0 )
|
|
|
|
cr:line_to(offset + width , 0 )
|
|
|
|
cr:line_to(offset + width - arrow_depth , height/2 )
|
|
|
|
cr:line_to(offset + width , height )
|
|
|
|
cr:line_to(offset + arrow_depth , height )
|
|
|
|
cr:line_to(offset , height/2 )
|
|
|
|
|
|
|
|
cr:close_path()
|
|
|
|
end
|
|
|
|
|
|
|
|
local function pl(widget, bgcolor, padding)
|
2019-03-02 18:05:33 +00:00
|
|
|
return wibox.container.background(wibox.container.margin(widget, dpi(16), dpi(16)), bgcolor, theme.powerline_rl)
|
2017-03-03 11:58:57 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
function theme.at_screen_connect(s)
|
|
|
|
-- Quake application
|
|
|
|
s.quake = lain.util.quake({ app = awful.util.terminal })
|
|
|
|
|
|
|
|
-- If wallpaper is a function, call it with the screen
|
2017-03-17 16:23:34 +00:00
|
|
|
local wallpaper = theme.wallpaper
|
|
|
|
if type(wallpaper) == "function" then
|
|
|
|
wallpaper = wallpaper(s)
|
2017-03-03 11:58:57 +00:00
|
|
|
end
|
2017-03-17 16:23:34 +00:00
|
|
|
gears.wallpaper.maximized(wallpaper, s, true)
|
2017-03-03 11:58:57 +00:00
|
|
|
|
|
|
|
-- Tags
|
|
|
|
awful.tag(awful.util.tagnames, s, awful.layout.layouts)
|
|
|
|
|
|
|
|
-- Create a promptbox for each screen
|
|
|
|
s.mypromptbox = awful.widget.prompt()
|
|
|
|
-- Create an imagebox widget which will contains an icon indicating which layout we're using.
|
|
|
|
-- We need one layoutbox per screen.
|
|
|
|
s.mylayoutbox = awful.widget.layoutbox(s)
|
2018-02-02 11:17:33 +00:00
|
|
|
s.mylayoutbox:buttons(my_table.join(
|
2018-11-04 06:10:18 +00:00
|
|
|
awful.button({}, 1, function () awful.layout.inc( 1) end),
|
|
|
|
awful.button({}, 2, function () awful.layout.set( awful.layout.layouts[1] ) end),
|
|
|
|
awful.button({}, 3, function () awful.layout.inc(-1) end),
|
|
|
|
awful.button({}, 4, function () awful.layout.inc( 1) end),
|
|
|
|
awful.button({}, 5, function () awful.layout.inc(-1) end)))
|
2017-03-03 11:58:57 +00:00
|
|
|
-- Create a taglist widget
|
|
|
|
s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, awful.util.taglist_buttons)
|
|
|
|
|
|
|
|
-- Create a tasklist widget
|
|
|
|
s.mytasklist = awful.widget.tasklist(s, awful.widget.tasklist.filter.currenttags, awful.util.tasklist_buttons)
|
|
|
|
|
|
|
|
-- Create the wibox
|
2019-03-02 18:05:33 +00:00
|
|
|
s.mywibox = awful.wibar({ position = "top", screen = s, height = dpi(16), bg = theme.bg_normal, fg = theme.fg_normal })
|
2017-03-03 11:58:57 +00:00
|
|
|
|
|
|
|
-- Add widgets to the wibox
|
|
|
|
s.mywibox:setup {
|
|
|
|
layout = wibox.layout.align.horizontal,
|
|
|
|
{ -- Left widgets
|
|
|
|
layout = wibox.layout.fixed.horizontal,
|
|
|
|
--spr,
|
|
|
|
s.mytaglist,
|
|
|
|
s.mypromptbox,
|
|
|
|
spr,
|
|
|
|
},
|
|
|
|
s.mytasklist, -- Middle widget
|
|
|
|
{ -- Right widgets
|
|
|
|
layout = wibox.layout.fixed.horizontal,
|
|
|
|
wibox.widget.systray(),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.margin(scissors, dpi(4), dpi(8)),
|
2017-03-03 12:30:08 +00:00
|
|
|
--[[ using shapes
|
2017-03-03 11:58:57 +00:00
|
|
|
pl(wibox.widget { mpdicon, theme.mpd.widget, layout = wibox.layout.align.horizontal }, "#343434"),
|
|
|
|
pl(task, "#343434"),
|
2018-09-17 19:35:27 +00:00
|
|
|
--pl(wibox.widget { mailicon, mail and theme.mail.widget, layout = wibox.layout.align.horizontal }, "#343434"),
|
2017-03-03 11:58:57 +00:00
|
|
|
pl(wibox.widget { memicon, mem.widget, layout = wibox.layout.align.horizontal }, "#777E76"),
|
|
|
|
pl(wibox.widget { cpuicon, cpu.widget, layout = wibox.layout.align.horizontal }, "#4B696D"),
|
|
|
|
pl(wibox.widget { tempicon, temp.widget, layout = wibox.layout.align.horizontal }, "#4B3B51"),
|
2018-11-29 20:41:10 +00:00
|
|
|
--pl(wibox.widget { fsicon, theme.fs and theme.fs.widget, layout = wibox.layout.align.horizontal }, "#CB755B"),
|
2017-03-03 11:58:57 +00:00
|
|
|
pl(wibox.widget { baticon, bat.widget, layout = wibox.layout.align.horizontal }, "#8DAA9A"),
|
|
|
|
pl(wibox.widget { neticon, net.widget, layout = wibox.layout.align.horizontal }, "#C0C0A2"),
|
|
|
|
pl(binclock.widget, "#777E76"),
|
|
|
|
--]]
|
|
|
|
-- using separators
|
|
|
|
arrow(theme.bg_normal, "#343434"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { mailicon, theme.mail and theme.mail.widget, layout = wibox.layout.align.horizontal }, dpi(4), dpi(7)), "#343434"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#343434", theme.bg_normal),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { mpdicon, theme.mpd.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(6)), theme.bg_focus),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow(theme.bg_normal, "#343434"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(task, dpi(3), dpi(7)), "#343434"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#343434", "#777E76"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { memicon, mem.widget, layout = wibox.layout.align.horizontal }, dpi(2), dpi(3)), "#777E76"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#777E76", "#4B696D"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { cpuicon, cpu.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(4)), "#4B696D"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#4B696D", "#4B3B51"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { tempicon, temp.widget, layout = wibox.layout.align.horizontal }, dpi(4), dpi(4)), "#4B3B51"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#4B3B51", "#CB755B"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { fsicon, theme.fs and theme.fs.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(3)), "#CB755B"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#CB755B", "#8DAA9A"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { baticon, bat.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(3)), "#8DAA9A"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#8DAA9A", "#C0C0A2"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(wibox.widget { nil, neticon, net.widget, layout = wibox.layout.align.horizontal }, dpi(3), dpi(3)), "#C0C0A2"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#C0C0A2", "#777E76"),
|
2019-03-02 18:05:33 +00:00
|
|
|
wibox.container.background(wibox.container.margin(binclock.widget, dpi(4), dpi(8)), "#777E76"),
|
2017-03-03 11:58:57 +00:00
|
|
|
arrow("#777E76", "alpha"),
|
|
|
|
--]]
|
|
|
|
s.mylayoutbox,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
return theme
|