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