summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@touchtunes.com>2018-12-22 17:51:47 -0500
committerPavel Makhov <pmakhov@touchtunes.com>2018-12-22 17:51:47 -0500
commitdcdabdac27bce850b385af7a342db3e7253ced59 (patch)
treeb242fb67cd185f1d4b0dee3ac066065b674695dd
parent3745b677d3b7f80756cb31d7e598827cb3aa3314 (diff)
screen support for run shell
-rw-r--r--run-shell/run-shell.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/run-shell/run-shell.lua b/run-shell/run-shell.lua
index 06fdd23..ad02437 100644
--- a/run-shell/run-shell.lua
+++ b/run-shell/run-shell.lua
@@ -80,10 +80,9 @@ function widget.new()
end
function widget_instance:launch(s, c)
--- c = c or capi.client.focus
--- s = s or (c and c.screen or awful.screen.focused())
- s = 1
- naughty.notify{text = 'screen ' .. s}
+ c = c or capi.client.focus
+ s = s or (c and c.screen or awful.screen.focused())
+ naughty.notify{text = 'screen ' .. s.index}
if not self._cached_wiboxes[s] then
self._cached_wiboxes[s] = {}
naughty.notify{text = 'nope'}