summaryrefslogtreecommitdiff
path: root/RatesWidget/rates.lua
diff options
context:
space:
mode:
Diffstat (limited to 'RatesWidget/rates.lua')
-rw-r--r--RatesWidget/rates.lua17
1 files changed, 17 insertions, 0 deletions
diff --git a/RatesWidget/rates.lua b/RatesWidget/rates.lua
index b170210..6fa2e47 100644
--- a/RatesWidget/rates.lua
+++ b/RatesWidget/rates.lua
@@ -20,3 +20,20 @@ dbus.connect_signal("com.console.rate",
local dbustext = data[2]
rateWidget:set_text(dbustext)
end)
+
+-- The notification popup which shows rates for other currencies
+function showRatesPopup()
+ naughty.notify({
+ title = "Rates",
+ text = awful.util.pread("python ~/.config/awesome/rates/ratesPopup.py"),
+ icon = "/home/username/.config/awesome/rates/currency.png",
+ icon_size = 100,
+ timeout = 10,
+ width = 300,
+ padding = 100,
+ fg = "#ffffff",
+ bg = "#333333aa",
+ })
+end
+
+rateWidget:connect_signal("mouse::enter", function() showRatesPopup() end) \ No newline at end of file