From: copycat-killer Date: Mon, 23 Jan 2017 14:46:33 +0000 (+0100) Subject: quake: add settings function; closes #273 X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/5383f3db0dbb7e06f09a61e1db803a656abe252e?ds=inline;hp=--cc quake: add settings function; closes #273 --- 5383f3db0dbb7e06f09a61e1db803a656abe252e diff --git a/util/quake.lua b/util/quake.lua index 0ec1081..4c42803 100644 --- a/util/quake.lua +++ b/util/quake.lua @@ -72,6 +72,9 @@ function quake:display() client.above = true client.skip_taskbar = true + -- Additional user settings + if self.settings then self.settings(client) end + -- Toggle display if self.visible then client.hidden = false @@ -127,6 +130,7 @@ function quake:new(config) conf.followtag = conf.followtag or false -- spawn on currently focused screen conf.overlap = conf.overlap or false -- overlap wibox conf.screen = conf.screen or awful.screen.focused() + conf.settings = conf.settings -- If width or height <= 1 this is a proportion of the workspace conf.height = conf.height or 0.25 -- height diff --git a/wiki b/wiki index 2e19b23..85fa41e 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 2e19b23ba12894682699acdb70eeb130e51a9f3b +Subproject commit 85fa41e74a7ed2923f6e289273e436ff187c6fdc