summaryrefslogtreecommitdiff
path: root/RatesWidget
diff options
context:
space:
mode:
authorPavel Makhov <streetturtle@users.noreply.github.com>2016-01-05 18:00:50 +0100
committerPavel Makhov <streetturtle@users.noreply.github.com>2016-01-05 18:00:50 +0100
commit7d2752e3f3d7d7e86863fa2987b028885f25c66a (patch)
tree4e1a941e68f445761edd17ee5b6ff8cfd3291d08 /RatesWidget
parent4388ce48170031f55bff953f8fcae8e137ed2673 (diff)
add emit signal
Diffstat (limited to 'RatesWidget')
-rw-r--r--RatesWidget/rates.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/RatesWidget/rates.lua b/RatesWidget/rates.lua
index 485eacb..b170210 100644
--- a/RatesWidget/rates.lua
+++ b/RatesWidget/rates.lua
@@ -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' " )