Alessandro Serra 3248f97ce6 review app package | 3 lat temu | |
---|---|---|
.. | ||
examples | 3 lat temu | |
src | 3 lat temu | |
tests | 3 lat temu | |
LICENSE | 3 lat temu | |
README.md | 3 lat temu | |
README.org | 3 lat temu | |
lilu-dmenu.asd | 3 lat temu | |
packages.lisp | 3 lat temu |
Call dmenu/rofi program from Common Lisp
(dynamic-menu "select a number" '(1 2 3 4 5)
:item-fn #'(lambda (x) (format nil "~r" x)))
(multiple-value-bind (sel match-p)
(dynamic-menu "select a number" '(1 2 3 4 5)
:item-fn #'(lambda (x) (format nil "~r" x)))
(format t "Selection: ~A (~A) ~%" sel (if match-p "matched" "unmatched")))
(let ((*dmenu* :rofi))
(multiple-value-bind (sel match-p)
(dynamic-menu "select a number" '(1 2 3 4 5)
:item-fn #'(lambda (x) (format nil "~r" x)))
(format t "Selection: ~A (~A) ~%" sel (if match-p "matched" "unmatched"))))
(multiple-value-bind (sel match-p)
(dmenu "select a number" '(1 2 3 4 5)
:item-fn #'(lambda (x) (format nil "~r" x)))
(format t "Selection: ~A (~A) ~%" sel (if match-p "matched" "unmatched")))
(multiple-value-bind (sel match-p)
(rofi "select a number" '(1 2 3 4 5)
:item-fn #'(lambda (x) (format nil "~r" x)))
(format t "Selection: ~A (~A) ~%" sel (if match-p "matched" "unmatched")))
The default theme:
lilu-dmenu:*dmenu-theme*
lilu-dmenu:*rofi-theme*
To use a different theme:
(let ((*dmenu-theme* (append '((:bg . "#ff0000")
(:fg . "#00ff00")) *dmenu-theme*)))
(dmenu "select a number" '(1 2 3 4 5)
:item-fn #'(lambda (x) (format nil "~r" x))))
Clone the project into local-projects of quicklisp, then
(ql:quickload :lilu-dmenu)
Copyright (c) 2019,2021 Alessandro Serra