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
|
end
|
||||||
|
|
||||||
run_once("urxvtd")
|
run_once("urxvtd")
|
||||||
run_once("unclutter")
|
run_once("unclutter -root")
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
-- {{{ Variable definitions
|
-- {{{ Variable definitions
|
||||||
|
@ -603,19 +603,22 @@ awful.rules.rules = {
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
-- signal function to execute when a new client appears.
|
-- signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = false
|
local titlebars_enabled = false
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
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
|
-- ALSA volume bar
|
||||||
volicon = wibox.widget.imagebox(beautiful.vol)
|
volicon = wibox.widget.imagebox(beautiful.vol)
|
||||||
volume = lain.widgets.alsabar({width = 55, ticks = true, ticks_size = 6,
|
volume = lain.widgets.alsabar({width = 55, ticks = true, ticks_size = 6,
|
||||||
card = "1", step = "2%",
|
card = "0", step = "2%",
|
||||||
settings = function()
|
settings = function()
|
||||||
if volume_now.status == "off" then
|
if volume_now.status == "off" then
|
||||||
volicon:set_image(beautiful.vol_mute)
|
volicon:set_image(beautiful.vol_mute)
|
||||||
|
@ -675,18 +675,21 @@ awful.rules.rules = {
|
||||||
-- Signal function to execute when a new client appears.
|
-- Signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- Enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = true
|
local titlebars_enabled = true
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
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.
|
-- Signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- Enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = true
|
local titlebars_enabled = true
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
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
|
-- ALSA volume bar
|
||||||
myvolumebar = lain.widgets.alsabar({
|
myvolumebar = lain.widgets.alsabar({
|
||||||
|
card = "0",
|
||||||
ticks = true,
|
ticks = true,
|
||||||
width = 80,
|
width = 80,
|
||||||
height = 10,
|
height = 10,
|
||||||
|
@ -736,18 +737,21 @@ awful.rules.rules = {
|
||||||
-- Signal function to execute when a new client appears.
|
-- Signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- Enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = false
|
local titlebars_enabled = false
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||||
|
|
|
@ -674,19 +674,22 @@ awful.rules.rules = {
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
-- signal function to execute when a new client appears.
|
-- signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = false
|
local titlebars_enabled = false
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||||
|
|
|
@ -649,19 +649,22 @@ awful.rules.rules = {
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
-- signal function to execute when a new client appears.
|
-- signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = false
|
local titlebars_enabled = false
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||||
|
|
|
@ -185,7 +185,7 @@ fshome = lain.widgets.fs({
|
||||||
})
|
})
|
||||||
|
|
||||||
-- ALSA volume bar
|
-- 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 = wibox.layout.margin(volume.bar, 5, 8, 80)
|
||||||
volmargin:set_top(7)
|
volmargin:set_top(7)
|
||||||
volmargin:set_bottom(7)
|
volmargin:set_bottom(7)
|
||||||
|
@ -601,19 +601,22 @@ awful.rules.rules = {
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
-- signal function to execute when a new client appears.
|
-- signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = false
|
local titlebars_enabled = false
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||||
|
|
|
@ -610,19 +610,22 @@ awful.rules.rules = {
|
||||||
-- {{{ Signals
|
-- {{{ Signals
|
||||||
-- signal function to execute when a new client appears.
|
-- signal function to execute when a new client appears.
|
||||||
client.connect_signal("manage", function (c, startup)
|
client.connect_signal("manage", function (c, startup)
|
||||||
-- enable sloppy focus
|
-- Enable sloppy focus
|
||||||
c:connect_signal("mouse::enter", function(c)
|
local sloppyfocus_last = {x=nil, y=nil, c=nil}
|
||||||
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
client.connect_signal("mouse::enter", function(c)
|
||||||
and awful.client.focus.filter(c) then
|
local mcoords = mouse.coords()
|
||||||
client.focus = c
|
if awful.layout.get(c.screen) ~= awful.layout.suit.magnifier
|
||||||
end
|
and awful.client.focus.filter(c) then
|
||||||
end)
|
-- Skip focusing the client if the mouse wasn't moved.
|
||||||
|
if (mcoords.x ~= sloppyfocus_last.x or mcoords.y ~= sloppyfocus_last.y)
|
||||||
if not startup and not c.size_hints.user_position
|
and c ~= sloppyfocus_last.c then
|
||||||
and not c.size_hints.program_position then
|
client.focus = c
|
||||||
awful.placement.no_overlap(c)
|
sloppyfocus_last.c = c
|
||||||
awful.placement.no_offscreen(c)
|
end
|
||||||
end
|
end
|
||||||
|
sloppyfocus_last.x = mcoords.x
|
||||||
|
sloppyfocus_last.y = mcoords.y
|
||||||
|
end)
|
||||||
|
|
||||||
local titlebars_enabled = false
|
local titlebars_enabled = false
|
||||||
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
if titlebars_enabled and (c.type == "normal" or c.type == "dialog") then
|
||||||
|
|
Loading…
Reference in a new issue