awesomerc/configuration/applications.lua

16 lines
366 B
Lua
Raw Normal View History

2021-05-25 17:37:29 +02:00
local applications = {}
applications.terminal = 'xterm'
applications.editor = os.getenv('EDITOR') or 'vim'
applications.open_editor = function (file)
return applications.terminal
.. ' -e ' .. applications.editor .. ' ' .. file
end
applications.open_man = function (file)
return applications.terminal .. ' -e man ' .. file
end
return applications