summaryrefslogtreecommitdiff
path: root/awesome
diff options
context:
space:
mode:
authorBrian Picciano <me@mediocregopher.com>2023-11-13 11:32:11 +0100
committerBrian Picciano <me@mediocregopher.com>2023-11-13 11:32:11 +0100
commitf22cf5df6ddbccf5963e037444a82596070873de (patch)
tree18220ba2e2b55bdee336cca82ed53acc9aa23e27 /awesome
parent95bae8af09e85f9d4400dcc70e70218f6cb8970b (diff)
Add worldclock script and bind it to cmd+a
Diffstat (limited to 'awesome')
-rw-r--r--awesome/rc.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index 9a73444..6c32fa8 100644
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -371,7 +371,13 @@ globalkeys = awful.util.table.join(
{ }),
awful.key( { modkey }, "a", function()
- info(tostring(os.time()))
+ local cmd = io.popen("worldclock")
+ naughty.notify({
+ text = cmd:read("*all"),
+ width = 600,
+ font = "Source Code Pro",
+ })
+ cmd:close()
end)
)