Small fix for run shell
This commit is contained in:
parent
dcdabdac27
commit
9012468e8f
|
@ -20,12 +20,6 @@ local completion = require("awful.completion")
|
||||||
|
|
||||||
local run_shell = awful.widget.prompt()
|
local run_shell = awful.widget.prompt()
|
||||||
|
|
||||||
|
|
||||||
local function get_screen(s)
|
|
||||||
return s and capi.screen[s]
|
|
||||||
end
|
|
||||||
|
|
||||||
|
|
||||||
local widget = {}
|
local widget = {}
|
||||||
|
|
||||||
function widget.new()
|
function widget.new()
|
||||||
|
@ -98,7 +92,7 @@ function widget.new()
|
||||||
w.bgimage = '/tmp/i3lock-' .. line .. '.png'
|
w.bgimage = '/tmp/i3lock-' .. line .. '.png'
|
||||||
awful.placement.top(w, { margins = { top = 20 }, parent = awful.screen.focused() })
|
awful.placement.top(w, { margins = { top = 20 }, parent = awful.screen.focused() })
|
||||||
awful.prompt.run {
|
awful.prompt.run {
|
||||||
prompt = "<b>Run</b>: ",
|
prompt = 'Run: ',
|
||||||
bg_cursor = '#74aeab',
|
bg_cursor = '#74aeab',
|
||||||
textbox = run_shell.widget,
|
textbox = run_shell.widget,
|
||||||
completion_callback = completion.shell,
|
completion_callback = completion.shell,
|
||||||
|
@ -107,7 +101,6 @@ function widget.new()
|
||||||
end,
|
end,
|
||||||
history_path = gfs.get_cache_dir() .. "/history",
|
history_path = gfs.get_cache_dir() .. "/history",
|
||||||
done_callback = function()
|
done_callback = function()
|
||||||
-- w.bgimage=''
|
|
||||||
w.visible = false
|
w.visible = false
|
||||||
w.bgimage = ''
|
w.bgimage = ''
|
||||||
awful.spawn([[bash -c 'rm -f /tmp/i3lock*']])
|
awful.spawn([[bash -c 'rm -f /tmp/i3lock*']])
|
||||||
|
|
Loading…
Reference in New Issue