add emit signal

This commit is contained in:
Pavel Makhov 2016-01-05 18:00:50 +01:00
parent 4388ce4817
commit 7d2752e3f3
1 changed files with 2 additions and 1 deletions

View File

@ -4,12 +4,13 @@ local awful = require("awful")
rateWidget = wibox.widget.textbox()
-- DBus (Command are sent to Dbus, which prevents Awesome from freezу)
sleepTimerDbus = timer ({timeout = 5})
sleepTimerDbus = timer ({timeout = 1800})
sleepTimerDbus:connect_signal ("timeout",
function ()
awful.util.spawn_with_shell("dbus-send --session --dest=org.naquadah.awesome.awful /com/console/rate com.console.rate.rateWidget string:$(python ~/.config/awesome/rates/rates.py)" )
end)
sleepTimerDbus:start()
sleepTimerDbus:emit_signal("timeout")
dbus.request_name("session", "com.console.rate")
dbus.add_match("session", "interface='com.console.rate', member='rateWidget' " )