]>
git.madduck.net Git - etc/awesome.git/commitdiff
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (parent:
d747e16 )
if not client and not self.visible then return end
if not client then
if not client and not self.visible then return end
if not client then
- -- The client does not exist, we spawn it
- awful.util.spawn(self.app .. " " .. string.format(self.argname, self.name),
- false, self.screen)
- return
+ -- The client does not exist, we spawn it
+ awful.util.spawn(self.app .. " " .. string.format(self.argname, self.name),
+ false, self.screen)
+ self.exist = true
+ return
end
-- Resize
awful.client.floating.set(client, true)
client.border_width = 0
client.size_hints_honor = false
end
-- Resize
awful.client.floating.set(client, true)
client.border_width = 0
client.size_hints_honor = false
- client:geometry(self.geometry)
+ if self.notexist then
+ -- set default geometry only on first spawn
+ client:geometry(self.geometry)
+ self.notexist = false
+ end
-- Not sticky and on top
client.ontop = true
-- Not sticky and on top
client.ontop = true
-- lain.widgets.contrib.redshift
local redshift = {}
-- lain.widgets.contrib.redshift
local redshift = {}
-local attached = false -- true if attached to a widget
-local active = false -- true if redshift is active
-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 attached = false -- true if attached to a widget
+local active = false -- true if redshift is active
+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 function init()
-- As there is no way to determine if redshift was previously
local function init()
-- As there is no way to determine if redshift was previously
local setmetatable = setmetatable
local smapi = {}
local setmetatable = setmetatable
local smapi = {}
local apipath = "/sys/devices/platform/smapi"
-- Most are readable values, but some can be written to (not implemented, yet?)
local apipath = "/sys/devices/platform/smapi"
-- Most are readable values, but some can be written to (not implemented, yet?)
-local newtimer = require("lain.helpers").newtimer
+local newtimer = require("lain.helpers").newtimer
-local wibox = require("wibox")
+local wibox = require("wibox")
-local io = { lines = io.lines }
-local math = { floor = math.floor }
-local string = { gmatch = string.gmatch }
+local io = { lines = io.lines }
+local math = { floor = math.floor }
+local string = { gmatch = string.gmatch }
-local setmetatable = setmetatable
+local setmetatable = setmetatable
-- Memory usage (ignoring caches)
-- lain.widgets.mem
-- Memory usage (ignoring caches)
-- lain.widgets.mem
local naughty = require("naughty")
local wibox = require("wibox")
local naughty = require("naughty")
local wibox = require("wibox")
-local os = { execute = os.execute,
- getenv = os.getenv }
-local math = { floor = math.floor }
+local os = { execute = os.execute,
+ getenv = os.getenv }
+local math = { floor = math.floor }
-local string = { format = string.format,
- match = string.match,
- gmatch = string.gmatch }
+local string = { format = string.format,
+ match = string.match,
+ gmatch = string.gmatch }
local setmetatable = setmetatable
local setmetatable = setmetatable
-local read_pipe = require("lain.helpers").read_pipe
-local newtimer = require("lain.helpers").newtimer
-local wibox = require("wibox")
+local read_pipe = require("lain.helpers").read_pipe
+local newtimer = require("lain.helpers").newtimer
+local wibox = require("wibox")
-local string = { match = string.match,
- format = string.format }
+local string = { match = string.match,
+ format = string.format }
-local setmetatable = setmetatable
+local setmetatable = setmetatable
-- PulseAudio volume
-- lain.widgets.pulseaudio
-- PulseAudio volume
-- lain.widgets.pulseaudio
-Subproject commit 7689c026b9b2a1a7d2582c48700aace3983b8711
+Subproject commit 1a72051053b009e74f7a50e5cff784829eda370c