summaryrefslogtreecommitdiff
path: root/run-shell
diff options
context:
space:
mode:
authorstreetturtle <streetturtle@gmail.com>2019-02-04 20:29:08 -0500
committerstreetturtle <streetturtle@gmail.com>2019-02-04 20:29:08 -0500
commit0bbbfe8b67aacb6bdb672ff98d6bf4ba6ca4441a (patch)
treebf996e351411cdfadf028be8621c5fd48a6ea65f /run-shell
parent7bab821f2080e2f8d8a6285e57824dc738e1e781 (diff)
run shell
Diffstat (limited to 'run-shell')
-rw-r--r--run-shell/README.md5
-rw-r--r--run-shell/run-shell.lua8
-rw-r--r--run-shell/screenshot.pngbin0 -> 329592 bytes
3 files changed, 9 insertions, 4 deletions
diff --git a/run-shell/README.md b/run-shell/README.md
new file mode 100644
index 0000000..098de6f
--- /dev/null
+++ b/run-shell/README.md
@@ -0,0 +1,5 @@
+# Run Shell
+
+Blurs background and shows widget with run prompts:
+
+![screenshot](./screenshot.png) \ No newline at end of file
diff --git a/run-shell/run-shell.lua b/run-shell/run-shell.lua
index ae86a9e..a50400f 100644
--- a/run-shell/run-shell.lua
+++ b/run-shell/run-shell.lua
@@ -76,18 +76,18 @@ function widget.new()
function widget_instance:launch(s, c)
c = c or capi.client.focus
s = mouse.screen
- naughty.notify { text = 'screen ' .. s.index }
+-- naughty.notify { text = 'screen ' .. s.index }
if not self._cached_wiboxes[s] then
self._cached_wiboxes[s] = {}
- naughty.notify { text = 'nope' }
+-- naughty.notify { text = 'nope' }
end
if not self._cached_wiboxes[s][1] then
self._cached_wiboxes[s][1] = self:_create_wibox()
- naughty.notify { text = 'nope' }
+-- naughty.notify { text = 'nope' }
end
local w = self._cached_wiboxes[s][1]
local rnd = math.random()
- awful.spawn.with_line_callback(string.format(self._cmd_pixelate, tostring(awful.screen.focused().geometry.x), rnd), {
+ awful.spawn.with_line_callback(string.format(self._cmd_blur, tostring(awful.screen.focused().geometry.x), rnd), {
stdout = function(line)
w.visible = true
w.bgimage = '/tmp/i3lock-' .. rnd ..'.png'
diff --git a/run-shell/screenshot.png b/run-shell/screenshot.png
new file mode 100644
index 0000000..4e8b54c
--- /dev/null
+++ b/run-shell/screenshot.png
Binary files differ