]> 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:

quake: set default geometry only on first spawn
authorcopycat-killer <dada@archlinux.info>
Wed, 3 Aug 2016 15:38:51 +0000 (17:38 +0200)
committercopycat-killer <dada@archlinux.info>
Wed, 3 Aug 2016 15:38:51 +0000 (17:38 +0200)
util/quake.lua
widgets/contrib/redshift.lua
widgets/contrib/tpbat/smapi.lua
widgets/mem.lua
widgets/mpd.lua
widgets/pulseaudio.lua
wiki

index ab412acafb38a63fec7bde8ad634b9cf19632c60..5a55200bda61c00bc383237b63f63522ad911bee 100644 (file)
@@ -51,17 +51,22 @@ function quake:display()
    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
-   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
index 5ed930026d23fcb210e315f3773af1e2ee53b5a8..69247ee7716b2a55038e9630d41fc53db39d99ec 100644 (file)
@@ -16,11 +16,10 @@ local setmetatable = setmetatable
 -- 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
index c7f093e1a6b58cc96993e38475664c8dea79f2c4..271d9c2d4c721223ddaef53729140708ab2808c5 100644 (file)
@@ -16,7 +16,6 @@ local tonumber     = tonumber
 local setmetatable = setmetatable
 
 local smapi = {}
-
 local apipath = "/sys/devices/platform/smapi"
 
 -- Most are readable values, but some can be written to (not implemented, yet?)
index 99d91c71937703f4e62135a84dc1b13f856dab61..aede803c0c9a50fe8aef6f051efcc72e19a767ad 100644 (file)
@@ -7,15 +7,15 @@
                                                   
 --]]
 
-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
index 6a327b00de8646c16600cddf8f925bd4217438b5..8568764aeeaa69089f15cf1c5656783e1c08c493 100644 (file)
@@ -14,13 +14,13 @@ local escape_f     = require("awful.util").escape
 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 mouse        = mouse
-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
 
index 17fdb9c2c24266871eb702b88fb443dd4f7089ae..c2686d8fee97291d4c3e1c9f145689fbe38b2130 100644 (file)
@@ -6,14 +6,14 @@
                                                   
 --]]
 
-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
diff --git a/wiki b/wiki
index 7689c026b9b2a1a7d2582c48700aace3983b8711..1a72051053b009e74f7a50e5cff784829eda370c 160000 (submodule)
--- a/wiki
+++ b/wiki
@@ -1 +1 @@
-Subproject commit 7689c026b9b2a1a7d2582c48700aace3983b8711
+Subproject commit 1a72051053b009e74f7a50e5cff784829eda370c