From dcdabdac27bce850b385af7a342db3e7253ced59 Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Sat, 22 Dec 2018 17:51:47 -0500 Subject: screen support for run shell --- run-shell/run-shell.lua | 7 +++---- 1 file 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'} -- cgit v1.2.3