[awesome] name imported gears.table gtable to avoid name collision

This commit is contained in:
Simon Bruder 2019-06-21 16:11:00 +00:00
parent e3b2307a15
commit 1ad2a58aac
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -1,6 +1,6 @@
local awful = require("awful") local awful = require("awful")
local wibox = require("wibox") local wibox = require("wibox")
local table = require("gears.table") local gtable = require("gears.table")
local lain = require("lain") local lain = require("lain")
local helpers = require("lain.helpers") local helpers = require("lain.helpers")
@ -125,7 +125,7 @@ widgets.bluetooth.toggle = function()
end end
widgets.bluetooth:buttons( widgets.bluetooth:buttons(
table.join( gtable.join(
awful.button({ }, 1, widgets.bluetooth.toggle), awful.button({ }, 1, widgets.bluetooth.toggle),
awful.button({ }, 3, function() awful.button({ }, 3, function()
awful.spawn.with_shell("blueman-manager; pkill blueman-applet") awful.spawn.with_shell("blueman-manager; pkill blueman-applet")
@ -158,7 +158,7 @@ widgets.redshift.toggle = function()
end end
widgets.redshift:buttons( widgets.redshift:buttons(
table.join( gtable.join(
awful.button({ }, 1, widgets.redshift.toggle) awful.button({ }, 1, widgets.redshift.toggle)
) )
) )
@ -173,7 +173,7 @@ end)
widgets.tearstop.pid = nil widgets.tearstop.pid = nil
widgets.tearstop:buttons( widgets.tearstop:buttons(
table.join( gtable.join(
awful.button({ }, 1, function() awful.button({ }, 1, function()
if widgets.tearstop.pid == nil then if widgets.tearstop.pid == nil then
widgets.tearstop.pid = awful.spawn.spawn({ "compton", "--backend=glx" }) widgets.tearstop.pid = awful.spawn.spawn({ "compton", "--backend=glx" })