mirror of https://github.com/lcpz/lain.git
whitespaces cleaning
This commit is contained in:
parent
95c019cb25
commit
e1450f8828
|
@ -2,10 +2,10 @@
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
Licensed under GNU General Public License v2
|
Licensed under GNU General Public License v2
|
||||||
* (c) 2014 projektile
|
* (c) 2014, projektile
|
||||||
* (c) 2013 Luke Bonham
|
* (c) 2013, Luke Bonham
|
||||||
* (c) 2009 Uli Schlachter
|
* (c) 2009, Uli Schlachter
|
||||||
* (c) 2008 Julien Danjolu
|
* (c) 2008, Julien Danjolu
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
Licensed under GNU General Public License v2
|
Licensed under GNU General Public License v2
|
||||||
* (c) 2014 projektile, worron
|
* (c) 2014, projektile, worron
|
||||||
* (c) 2013 Luke Bonham
|
* (c) 2013, Luke Bonham
|
||||||
* (c) 2009 Donald Ephraim Curtis
|
* (c) 2009, Donald Ephraim Curtis
|
||||||
* (c) 2008 Julien Danjolu
|
* (c) 2008, Julien Danjolu
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
--[[
|
--[[
|
||||||
|
|
||||||
Licensed under GNU General Public License v2
|
Licensed under GNU General Public License v2
|
||||||
* (c) 2015, Luke Bonham
|
* (c) 2015, Luke Bonham
|
||||||
* (c) 2015, plotnikovanton
|
* (c) 2015, plotnikovanton
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
|
|
|
@ -6,20 +6,20 @@
|
||||||
|
|
||||||
--]]
|
--]]
|
||||||
|
|
||||||
local os = os
|
local awful = require("awful")
|
||||||
local awful = require("awful")
|
local os = os
|
||||||
local spawn = awful.util.spawn_with_shell
|
local spawn = awful.util.spawn_with_shell
|
||||||
|
|
||||||
local setmetatable = setmetatable
|
local setmetatable = setmetatable
|
||||||
|
|
||||||
-- redshift
|
-- Redshift
|
||||||
-- lain.widgets.contrib.redshift
|
-- lain.widgets.contrib.redshift
|
||||||
local redshift = {}
|
local redshift = {}
|
||||||
|
|
||||||
local attached = false -- true if attached to a widget
|
local attached = false -- true if attached to a widget
|
||||||
local active = false -- true if redshift is active
|
local active = false -- true if redshift is active
|
||||||
local running = false -- true if redshift was initialized
|
local running = false -- true if redshift was initialized
|
||||||
local update_fnct = function() end -- function that is run each time redshift is toggled. See redshift:attach().
|
local update_fnct = function() end -- Function that is run each time redshift is toggled. See redshift:attach().
|
||||||
|
|
||||||
|
|
||||||
local function init()
|
local function init()
|
||||||
|
@ -63,9 +63,9 @@ end
|
||||||
|
|
||||||
-- Attach to a widget
|
-- Attach to a widget
|
||||||
-- Provides a button which toggles redshift on/off on click
|
-- Provides a button which toggles redshift on/off on click
|
||||||
-- @ param widget: widget to attach to
|
-- @param widget: Widget to attach to.
|
||||||
-- @ param fnct: function to be run each time redshift is toggled (optional).
|
-- @param fnct: Function to be run each time redshift is toggled (optional).
|
||||||
-- Use it to update widget text or icons on status change.
|
-- Use it to update widget text or icons on status change.
|
||||||
function redshift:attach(widget, fnct)
|
function redshift:attach(widget, fnct)
|
||||||
update_fnct = fnct or function() end
|
update_fnct = fnct or function() end
|
||||||
if not attached then
|
if not attached then
|
||||||
|
|
Loading…
Reference in New Issue