Commit Diff


commit - c2143b5760024c3e3855f08abcd00c6279d482b5
commit + 4b44c2212d0e8cde01b3358c29105e1c9946f2e8
blob - 92c73d6f32aea79cf63f215397d49e2c07d65a6d (mode 644)
blob + /dev/null
--- lua/bxbar/datetime.lua
+++ /dev/null
@@ -1,9 +0,0 @@
--- ~/.local/share/lua/5.4/bxbar/datetime.lua
-local M = {}
-
-function M.render()
-    return os.date("%Y-%m-%d %a %H:%M")
-end
-
-return M
-
blob - 821ce4fcc8ed2c6c876cd3e0a14f0a8dda6450cc (mode 644)
blob + /dev/null
--- lua/bxbar/workspace.lua
+++ /dev/null
@@ -1,12 +0,0 @@
--- ~/.local/share/lua/5.4/bxbar/workspace.lua
-local M = {}
-
-function M.render()
-    -- This will eventually call out to your WM, 
-    -- but for now, it returns a hardcoded active ascii emoticon
-    -- return "(^.~)"
-    return "(•_•)"
-end
-
-return M
-
blob - 25c08f892b784ee40be9b68834f555bd617871e8 (mode 644)
blob + /dev/null
--- lua/manage-bxbar
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/usr/bin/env lua5.4
-
--- Enforce Lua 5.4+
-if not _VERSION:match("5.4") then
-    io.stderr:write("Error: Lua 5.4 required (got " .. _VERSION .. ").\n")
-    os.exit(1)
-end
-
--- Load modules
-local workspace = require("bxbar.workspace")
-local datetime = require("bxbar.datetime")
-
--- Main loop
-while true do
-    local ws_text = workspace.render()
-    local dt_text = datetime.render()
-
-    io.write(ws_text .. " | " .. dt_text .. "\n")
-    io.flush()
-
-    os.execute("sleep 30")
-end
-