homes/common/.local/lib/python2.7/site-packages/powerline/bindings/awesome/powerline.lua

12 lines
400 B
Lua
Raw Normal View History

2013-05-02 18:11:33 +02:00
local wibox = require('wibox')
local awful = require('awful')
powerline_widget = wibox.widget.textbox()
powerline_widget:set_align('right')
function powerline(mode, widget) end
bindings_path = string.gsub(debug.getinfo(1).source:match('@(.*)$'), '/[^/]+$', '')
powerline_cmd = bindings_path .. '/powerline-awesome.py'
awful.util.spawn_with_shell('ps -C powerline-awesome.py || ' .. powerline_cmd)