diff options
Diffstat (limited to 'pkgs/astal/src/shell.lua')
-rw-r--r-- | pkgs/astal/src/shell.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/astal/src/shell.lua b/pkgs/astal/src/shell.lua index c370349..4baede7 100644 --- a/pkgs/astal/src/shell.lua +++ b/pkgs/astal/src/shell.lua @@ -1,12 +1,15 @@ local App = require("astal.gtk3.app") local lib = require("lib") +local Variable = require("astal").Variable local Bar = require("widget.bar") local Corners = require("widget.corners") local Deck = require("widget.deck") +local Launcher = require("widget.launcher") + +local launcher_visible App:start({ - instance_name = "shell", css = lib.src("main.css"), main = function() for _, mon in pairs(App.monitors) do @@ -14,5 +17,13 @@ App:start({ Corners(mon) Deck(mon) end + launcher_visible = Launcher() + end, + request_handler = function(req, res) + if req == "launcher" then + launcher_visible:set(true) + return res("opening launcher") + end + res("unknown command") end, }) |