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,20 +603,23 @@ 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)
|
||||
-- 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)
|
||||
|
||||
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 titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
|
@ -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,19 +675,22 @@ 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)
|
||||
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)
|
||||
|
||||
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 titlebars_enabled = true
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
|
@ -604,19 +604,22 @@ 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)
|
||||
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)
|
||||
|
||||
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 titlebars_enabled = true
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
18
rc.lua.holo
18
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,19 +737,22 @@ 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)
|
||||
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)
|
||||
|
||||
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 titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
|
@ -674,20 +674,23 @@ 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)
|
||||
-- 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)
|
||||
|
||||
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 titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
|
@ -649,20 +649,23 @@ 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)
|
||||
-- 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)
|
||||
|
||||
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 titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
|
@ -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,20 +601,23 @@ 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)
|
||||
-- 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)
|
||||
|
||||
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 titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
|
@ -610,20 +610,23 @@ 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)
|
||||
-- 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)
|
||||
|
||||
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 titlebars_enabled = false
|
||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||
-- buttons for the titlebar
|
||||
|
|
Loading…
Reference in a new issue