File tree Expand file tree Collapse file tree 7 files changed +33
-30
lines changed Expand file tree Collapse file tree 7 files changed +33
-30
lines changed Original file line number Diff line number Diff line change @@ -51,17 +51,22 @@ function quake:display()
51
51
if not client and not self .visible then return end
52
52
53
53
if not client then
54
- -- The client does not exist, we spawn it
55
- awful .util .spawn (self .app .. " " .. string.format (self .argname , self .name ),
56
- false , self .screen )
57
- return
54
+ -- The client does not exist, we spawn it
55
+ awful .util .spawn (self .app .. " " .. string.format (self .argname , self .name ),
56
+ false , self .screen )
57
+ self .exist = true
58
+ return
58
59
end
59
60
60
61
-- Resize
61
62
awful .client .floating .set (client , true )
62
63
client .border_width = 0
63
64
client .size_hints_honor = false
64
- client :geometry (self .geometry )
65
+ if self .notexist then
66
+ -- set default geometry only on first spawn
67
+ client :geometry (self .geometry )
68
+ self .notexist = false
69
+ end
65
70
66
71
-- Not sticky and on top
67
72
client .ontop = true
Original file line number Diff line number Diff line change @@ -16,11 +16,10 @@ local setmetatable = setmetatable
16
16
-- lain.widgets.contrib.redshift
17
17
local redshift = {}
18
18
19
- local attached = false -- true if attached to a widget
20
- local active = false -- true if redshift is active
21
- local running = false -- true if redshift was initialized
22
- local update_fnct = function () end -- Function that is run each time redshift is toggled. See redshift:attach().
23
-
19
+ local attached = false -- true if attached to a widget
20
+ local active = false -- true if redshift is active
21
+ local running = false -- true if redshift was initialized
22
+ local update_fnct = function () end -- Function that is run each time redshift is toggled. See redshift:attach().
24
23
25
24
local function init ()
26
25
-- As there is no way to determine if redshift was previously
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ local tonumber = tonumber
16
16
local setmetatable = setmetatable
17
17
18
18
local smapi = {}
19
-
20
19
local apipath = " /sys/devices/platform/smapi"
21
20
22
21
-- Most are readable values, but some can be written to (not implemented, yet?)
Original file line number Diff line number Diff line change 7
7
8
8
--]]
9
9
10
- local newtimer = require (" lain.helpers" ).newtimer
10
+ local newtimer = require (" lain.helpers" ).newtimer
11
11
12
- local wibox = require (" wibox" )
12
+ local wibox = require (" wibox" )
13
13
14
- local io = { lines = io.lines }
15
- local math = { floor = math.floor }
16
- local string = { gmatch = string.gmatch }
14
+ local io = { lines = io.lines }
15
+ local math = { floor = math.floor }
16
+ local string = { gmatch = string.gmatch }
17
17
18
- local setmetatable = setmetatable
18
+ local setmetatable = setmetatable
19
19
20
20
-- Memory usage (ignoring caches)
21
21
-- lain.widgets.mem
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ local escape_f = require("awful.util").escape
14
14
local naughty = require (" naughty" )
15
15
local wibox = require (" wibox" )
16
16
17
- local os = { execute = os.execute ,
18
- getenv = os.getenv }
19
- local math = { floor = math.floor }
17
+ local os = { execute = os.execute ,
18
+ getenv = os.getenv }
19
+ local math = { floor = math.floor }
20
20
local mouse = mouse
21
- local string = { format = string.format ,
22
- match = string.match ,
23
- gmatch = string.gmatch }
21
+ local string = { format = string.format ,
22
+ match = string.match ,
23
+ gmatch = string.gmatch }
24
24
25
25
local setmetatable = setmetatable
26
26
Original file line number Diff line number Diff line change 6
6
7
7
--]]
8
8
9
- local read_pipe = require (" lain.helpers" ).read_pipe
10
- local newtimer = require (" lain.helpers" ).newtimer
11
- local wibox = require (" wibox" )
9
+ local read_pipe = require (" lain.helpers" ).read_pipe
10
+ local newtimer = require (" lain.helpers" ).newtimer
11
+ local wibox = require (" wibox" )
12
12
13
- local string = { match = string.match ,
14
- format = string.format }
13
+ local string = { match = string.match ,
14
+ format = string.format }
15
15
16
- local setmetatable = setmetatable
16
+ local setmetatable = setmetatable
17
17
18
18
-- PulseAudio volume
19
19
-- lain.widgets.pulseaudio
You can’t perform that action at this time.
0 commit comments