1
0
Fork 0
mirror of https://github.com/lcpz/awesome-copycats.git synced 2024-12-23 03:32:30 +00:00

lain: new commit

This commit is contained in:
copycat-killer 2017-01-25 19:50:52 +01:00
parent a63e15fa12
commit 88c1716261
9 changed files with 19 additions and 27 deletions

2
lain

@ -1 +1 @@
Subproject commit 32eddd514f8ccc35eeaa128a441f6a47708e6a04 Subproject commit 58b2a122dd20cc4d1d15a29a27e618c9c88050cc

View file

@ -808,10 +808,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end

View file

@ -279,7 +279,7 @@ local fswidget = wibox.container.margin(fsbg, 2, 7, 4, 4)
-- ALSA volume bar -- ALSA volume bar
local volicon = wibox.widget.imagebox(beautiful.vol) local volicon = wibox.widget.imagebox(beautiful.vol)
local volume = lain.widgets.alsabar({ local volume = lain.widgets.alsabar({
width = 59, border_width = 0, ticks = true, ticks_size = 6 width = 59, border_width = 0, ticks = true, ticks_size = 6,
notification_preset = { font = beautiful.font }, notification_preset = { font = beautiful.font },
settings = function() settings = function()
if volume_now.status == "off" then if volume_now.status == "off" then
@ -862,10 +862,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end

View file

@ -793,10 +793,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end

View file

@ -898,10 +898,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end

View file

@ -258,7 +258,7 @@ local netupicon = wibox.widget.imagebox(beautiful.widget_netup)
local netupinfo = lain.widgets.net({ local netupinfo = lain.widgets.net({
settings = function() settings = function()
if iface ~= "network off" and if iface ~= "network off" and
string.match(myweather._private.layout.text, "N/A") string.match(myweather.widget.text, "N/A")
then then
myweather.update() myweather.update()
end end
@ -880,10 +880,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end

View file

@ -858,10 +858,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end

View file

@ -795,10 +795,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end

View file

@ -815,10 +815,9 @@ end)
-- No border for maximized clients -- No border for maximized clients
client.connect_signal("focus", client.connect_signal("focus",
function(c) function(c)
if c.maximized_horizontal == true and c.maximized_vertical == true then if c.maximized then -- no borders if only 1 client visible
c.border_width = 0 c.border_width = 0
-- no borders if only 1 client visible elseif #awful.screen.focused().clients > 1 then
elseif #awful.client.visible(mouse.screen) > 1 then
c.border_width = beautiful.border_width c.border_width = beautiful.border_width
c.border_color = beautiful.border_focus c.border_color = beautiful.border_focus
end end