ulubis icon indicating copy to clipboard operation
ulubis copied to clipboard

Implement menu with cairo

Open malcolmstill opened this issue 9 years ago • 1 comments

malcolmstill avatar Oct 07 '16 18:10 malcolmstill

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

naryl avatar May 02 '17 19:05 naryl