modif focus and remove lain battery

This commit is contained in:
vincent 2019-10-24 21:03:48 +02:00
parent bd1c7c594d
commit 543addd2fb
2 changed files with 2 additions and 15 deletions

View File

@ -721,7 +721,7 @@ function hotkeys:init(args)
}, },
--application hotkeys (logitech keyboard g710+) --application hotkeys (logitech keyboard g710+)
{ {
{ }, "XF86LaunchA", function () awful.spawn(terminal) end, { }, "XF86LaunchA", function () awful.spawn(env.terminal) end,
{description = "open a terminal", group = "launcher"} {description = "open a terminal", group = "launcher"}
}, },
{ {

View File

@ -30,7 +30,7 @@ require("hotkeys_popup.termite")
require("ercheck-config") -- load file with error handling require("ercheck-config") -- load file with error handling
env=require("env-config") env=require("env-config")
env:init() env:init({sloppy_focus=true})
-- This is used later as the default terminal and editor to run. -- This is used later as the default terminal and editor to run.
awful.util.terminal = env.terminal awful.util.terminal = env.terminal
@ -210,20 +210,7 @@ local mpd = lain.widget.mpd({
end end
}) })
local baticon = wibox.widget.imagebox(beautiful.widget_batt)
local bat = lain.widget.bat({
settings = function()
local perc = bat_now.perc ~= "N/A" and bat_now.perc .. "%" or bat_now.perc
if bat_now.status then
perc = perc .. " " .. bat_now.status
else
return
end
widget:set_markup(markup.fontfg(beautiful.font, beautiful.fg_normal, perc .. " "))
end
})