mirror of
https://github.com/lcpz/awesome-copycats.git
synced 2024-12-23 03:32:30 +00:00
#81 fix
This commit is contained in:
parent
73c3a02dd4
commit
25e45b6e3a
|
@ -49,7 +49,7 @@ function run_once(cmd)
|
|||
end
|
||||
|
||||
run_once("urxvtd")
|
||||
run_once("unclutter")
|
||||
run_once("unclutter -root")
|
||||
-- }}}
|
||||
|
||||
-- {{{ Variable definitions
|
||||
|
@ -603,19 +603,22 @@ awful.rules.rules = {
|
|||
-- {{{ Signals
|
||||
-- signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
-- Enable sloppy focus
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
|
@ -249,7 +249,7 @@ diskwidget:set_bgimage(beautiful.widget_bg)
|
|||
-- ALSA volume bar
|
||||
volicon = wibox.widget.imagebox(beautiful.vol)
|
||||
volume = lain.widgets.alsabar({width = 55, ticks = true, ticks_size = 6,
|
||||
card = "1", step = "2%",
|
||||
card = "0", step = "2%",
|
||||
settings = function()
|
||||
if volume_now.status == "off" then
|
||||
volicon:set_image(beautiful.vol_mute)
|
||||
|
@ -675,18 +675,21 @@ awful.rules.rules = {
|
|||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- Enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = true
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
|
@ -604,18 +604,21 @@ awful.rules.rules = {
|
|||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- Enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = true
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
28
rc.lua.holo
28
rc.lua.holo
|
@ -236,6 +236,7 @@ batwidget = lain.widgets.bat({
|
|||
|
||||
-- ALSA volume bar
|
||||
myvolumebar = lain.widgets.alsabar({
|
||||
card = "0",
|
||||
ticks = true,
|
||||
width = 80,
|
||||
height = 10,
|
||||
|
@ -736,18 +737,21 @@ awful.rules.rules = {
|
|||
-- Signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- Enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
|
@ -674,19 +674,22 @@ awful.rules.rules = {
|
|||
-- {{{ Signals
|
||||
-- signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
-- Enable sloppy focus
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
|
@ -649,19 +649,22 @@ awful.rules.rules = {
|
|||
-- {{{ Signals
|
||||
-- signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
-- Enable sloppy focus
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
|
@ -185,7 +185,7 @@ fshome = lain.widgets.fs({
|
|||
})
|
||||
|
||||
-- ALSA volume bar
|
||||
volume = lain.widgets.alsabar({ ticks = true })
|
||||
volume = lain.widgets.alsabar({ card = "0", ticks = true })
|
||||
volmargin = wibox.layout.margin(volume.bar, 5, 8, 80)
|
||||
volmargin:set_top(7)
|
||||
volmargin:set_bottom(7)
|
||||
|
@ -601,19 +601,22 @@ awful.rules.rules = {
|
|||
-- {{{ Signals
|
||||
-- signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
-- Enable sloppy focus
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
|
@ -610,19 +610,22 @@ awful.rules.rules = {
|
|||
-- {{{ Signals
|
||||
-- signal function to execute when a new client appears.
|
||||
client.connect_signal("manage", function (c, startup)
|
||||
-- enable sloppy focus
|
||||
c:connect_signal("mouse::enter", function(c)
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
client.focus = c
|
||||
end
|
||||
end)
|
||||
|
||||
if not startup and not c.size_hints.user_position
|
||||
and not c.size_hints.program_position then
|
||||
awful.placement.no_overlap(c)
|
||||
awful.placement.no_offscreen(c)
|
||||
end
|
||||
-- Enable sloppy focus
|
||||
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||
client.connect_signal("mouse::enter", function(c)
|
||||
local mcoords = mouse.coords()
|
||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||
and awful.client.focus.filter(c) then
|
||||
-- Skip focusing the client if the mouse wasn't moved.
|
||||
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||
and c ~= sloppyfocus_last.c then
|
||||
client.focus = c
|
||||
sloppyfocus_last.c = c
|
||||
end
|
||||
end
|
||||
sloppyfocus_last.x = mcoords.x
|
||||
sloppyfocus_last.y = mcoords.y
|
||||
end)
|
||||
|
||||
local titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
|
|
Loading…
Reference in a new issue