From 9012468e8f9346fcbd8d1a59fab17b6ce6df990a Mon Sep 17 00:00:00 2001 From: Pavel Makhov Date: Sat, 22 Dec 2018 18:08:05 -0500 Subject: Small fix for run shell --- run-shell/run-shell.lua | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/run-shell/run-shell.lua b/run-shell/run-shell.lua index ad02437..44fd367 100644 --- a/run-shell/run-shell.lua +++ b/run-shell/run-shell.lua @@ -20,12 +20,6 @@ local completion = require("awful.completion") local run_shell = awful.widget.prompt() - -local function get_screen(s) - return s and capi.screen[s] -end - - local widget = {} function widget.new() @@ -98,7 +92,7 @@ function widget.new() w.bgimage = '/tmp/i3lock-' .. line .. '.png' awful.placement.top(w, { margins = { top = 20 }, parent = awful.screen.focused() }) awful.prompt.run { - prompt = "Run: ", + prompt = 'Run: ', bg_cursor = '#74aeab', textbox = run_shell.widget, completion_callback = completion.shell, @@ -107,7 +101,6 @@ function widget.new() end, history_path = gfs.get_cache_dir() .. "/history", done_callback = function() - -- w.bgimage='' w.visible = false w.bgimage = '' awful.spawn([[bash -c 'rm -f /tmp/i3lock*']]) -- cgit v1.2.3