Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement menu with cairo #4

Open
malcolmstill opened this issue Oct 7, 2016 · 1 comment
Open

Implement menu with cairo #4

malcolmstill opened this issue Oct 7, 2016 · 1 comment
Assignees

Comments

@malcolmstill
Copy link
Owner

No description provided.

@naryl
Copy link

naryl commented May 2, 2017

I'm going use cairo-surface to implement a statusbar, decorations, and a menu. I just need your idea of the API. Here's my first take:

(define-menu root-menu
  ("Applications"
    ("Terminal" (run-program "weston-terminal"))
    ("Firefox" (run-program "firefox")))
  ("Lock Screen" (lock-screen)) ;; E.g.
  ("Quit" (uiop:quit)))

;; That's exactly your commented-out code
(defmousebinding (:pressed 1) (mode) (desktop-mode)
  (show-menu 'root-menu))

Intended to be called from ~/.ulubis.lisp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants