This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local log = require "util.logger".init("auth_exoplay"); | |
local nodeprep = require "util.encodings".stringprep.nodeprep; | |
local resolve_relative_path = require "core.configmanager".resolve_relative_path; | |
local http = require "socket.http" | |
local tokens = module:shared("oauth/usertokens") | |
local host = module:get_option("oauth_host", nil); | |
local client_id = module:get_option("oauth_client_id", nil); | |
local client_secret = module:get_option("oauth_client_secret", nil); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local log = require "util.logger".init("auth_exoplay"); | |
local nodeprep = require "util.encodings".stringprep.nodeprep; | |
local resolve_relative_path = require "core.configmanager".resolve_relative_path; | |
local http = require "socket.http" | |
local json = require "cjson" | |
local new_sasl = require "util.sasl".new | |
local tokens = module:shared("oauth/usertokens") | |
local host = module:get_option("oauth_host", nil); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Arrange signal handler | |
for s in screen do s:connect_signal('arrange', function () | |
local clients = awful.client.visible(s) | |
local layout = awful.layout.getname(awful.layout.get(s)) | |
if #clients > 0 then -- Fine grained borders and floaters control | |
for _, c in pairs(clients) do -- Floaters always have borders | |
if c.floating or layout == 'floating' then | |
c.border_width = beautiful.border_width |