mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-22 19:22:32 +00:00
lain: new commit
This commit is contained in:
parent
dd6c18271c
commit
87b7b0fd2a
2
lain
2
lain
|
@ -1 +1 @@
|
||||||
Subproject commit 7e4175f7aaef5c690afca3bc987107e2193a58df
|
Subproject commit 0b4193199b244e4f0aa365762314c0462a318014
|
|
@ -191,7 +191,7 @@ local fshome = lain.widgets.fs({
|
||||||
fs_header = ""
|
fs_header = ""
|
||||||
fs_p = ""
|
fs_p = ""
|
||||||
|
|
||||||
if fs_now.used >= 90 then
|
if tonumber(fs_now.used) >= 90 then
|
||||||
fs_header = " Hdd "
|
fs_header = " Hdd "
|
||||||
fs_p = fs_now.used
|
fs_p = fs_now.used
|
||||||
end
|
end
|
||||||
|
@ -792,14 +792,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -259,7 +259,7 @@ local fshome = lain.widgets.fs({
|
||||||
partition = "/home",
|
partition = "/home",
|
||||||
options = "--exclude-type=tmpfs",
|
options = "--exclude-type=tmpfs",
|
||||||
settings = function()
|
settings = function()
|
||||||
if fs_now.used < 90 then
|
if tonumber(fs_now.used) < 90 then
|
||||||
fsbar:set_color(beautiful.fg_normal)
|
fsbar:set_color(beautiful.fg_normal)
|
||||||
else
|
else
|
||||||
fsbar:set_color("#EB8F8F")
|
fsbar:set_color("#EB8F8F")
|
||||||
|
@ -846,14 +846,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -196,7 +196,7 @@ local fshome = lain.widgets.fs({
|
||||||
fs_header = ""
|
fs_header = ""
|
||||||
fs_p = ""
|
fs_p = ""
|
||||||
|
|
||||||
if fs_now.used >= 90 then
|
if tonumber(fs_now.used) >= 90 then
|
||||||
fs_header = " Hdd "
|
fs_header = " Hdd "
|
||||||
fs_p = fs_now.used
|
fs_p = fs_now.used
|
||||||
end
|
end
|
||||||
|
@ -778,14 +778,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -267,7 +267,6 @@ volumewidget.shape_border_width = 5
|
||||||
volumewidget.shape_border_color = beautiful.tasklist_bg_normal
|
volumewidget.shape_border_color = beautiful.tasklist_bg_normal
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
|
||||||
-- CPU
|
-- CPU
|
||||||
local cpu_icon = wibox.widget.imagebox(beautiful.cpu)
|
local cpu_icon = wibox.widget.imagebox(beautiful.cpu)
|
||||||
local cpu_widget = lain.widgets.cpu({
|
local cpu_widget = lain.widgets.cpu({
|
||||||
|
@ -889,14 +888,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -864,14 +864,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -842,14 +842,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -198,7 +198,7 @@ local fshome = lain.widgets.fs({
|
||||||
hdd = ""
|
hdd = ""
|
||||||
p = ""
|
p = ""
|
||||||
|
|
||||||
if fs_now.used >= 90 then
|
if tonumber(fs_now.used) >= 90 then
|
||||||
hdd = " Hdd "
|
hdd = " Hdd "
|
||||||
p = fs_now.used .. " "
|
p = fs_now.used .. " "
|
||||||
end
|
end
|
||||||
|
@ -778,14 +778,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -799,14 +799,12 @@ client.connect_signal("request::titlebars", function(c)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Enable sloppy focus, so that focus follows mouse.
|
-- Enable sloppy focus, so that focus follows mouse.
|
||||||
--[[
|
|
||||||
client.connect_signal("mouse::enter", function(c)
|
client.connect_signal("mouse::enter", function(c)
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
and awful.client.focus.filter(c) then
|
and awful.client.focus.filter(c) then
|
||||||
client.focus = c
|
client.focus = c
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
]]
|
|
||||||
|
|
||||||
-- No border for maximized clients
|
-- No border for maximized clients
|
||||||
client.connect_signal("focus",
|
client.connect_signal("focus",
|
||||||
|
|
|
@ -60,7 +60,7 @@ theme.layout_fullscreen = theme.dir .. "/icons/fullscree
|
||||||
theme.layout_magnifier = theme.dir .. "/icons/magnifier.png"
|
theme.layout_magnifier = theme.dir .. "/icons/magnifier.png"
|
||||||
theme.layout_floating = theme.dir .. "/icons/floating.png"
|
theme.layout_floating = theme.dir .. "/icons/floating.png"
|
||||||
|
|
||||||
theme.useless_gap = 8
|
theme.useless_gap = 0
|
||||||
|
|
||||||
theme.titlebar_close_button_focus = theme.dir .. "/icons/titlebar/close_focus.png"
|
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_close_button_normal = theme.dir .. "/icons/titlebar/close_normal.png"
|
||||||
|
|
Loading…
Reference in a new issue