[awesome] name imported gears.table gtable to avoid name collision
This commit is contained in:
parent
e3b2307a15
commit
1ad2a58aac
|
@ -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" })
|
||||
|
|
Reference in a new issue