Android dashboard

This commit is contained in:
BirDt_ 2025-09-27 11:21:50 +08:00
parent d1a8731c0a
commit 79a52665b0

View file

@ -129,24 +129,17 @@
(defun android-dash () (defun android-dash ()
"Return the android dashboard." "Return the android dashboard."
`(:content ,(concat `(:width 80
:align center
:content ,(concat
(grid-make-row (grid-make-row
`(:align center (list (grid-make-column (list (grid-make-box `(:content ,(concat
:content (concat (grid-make-column (list (grid-make-box `(:content ,(concat
(enlight-menu (enlight-menu
'(("Exobrain" '(("Exobrain"
("Agenda" (org-agenda nil "a") "a") ("Agenda" (org-agenda nil "a") "a")
("Go to Inbox" open-inbox "i") ("Go to Inbox" open-inbox "i")
("Capture" org-capture "c"))))) ("Capture" org-capture "c")))))
:align center :align center
:width 20))
"\n\n"
(grid-make-box `(:content ,(concat
(enlight-menu
'(("Projects"
("Switch To" theurgy-open-project "p")
("Project List" theurgy-edit-projects-list "l")))))
:align center
:width 20)))) :width 20))))
(grid-make-column (list (grid-make-box `(:content ,(concat (grid-make-column (list (grid-make-box `(:content ,(concat
(enlight-menu (enlight-menu
@ -154,8 +147,7 @@
("Dired" (dired "~") "d") ("Dired" (dired "~") "d")
("RSS" elfeed "r") ("RSS" elfeed "r")
("Terminal" theurgy-bottom-shell "t") ("Terminal" theurgy-bottom-shell "t")
("Gomuks" theurgy-gomuks-workspace "G") ))))
("Weather" theurgy-show-weather "w")))))
:align center :align center
:width 20)) :width 20))
"\n\n" "\n\n"
@ -167,7 +159,7 @@
("Init Dir" (dired user-emacs-directory) "e") ("Init Dir" (dired user-emacs-directory) "e")
("Info" info "h"))))) ("Info" info "h")))))
:align center :align center
:width 20)))))))) :width 20)))))))
)) ))
(defun dashboard-content () (defun dashboard-content ()
@ -188,11 +180,9 @@
(grid-make-box `( :content ,(propertize "Theurgy Emacs" 'face 'variable-pitch-serif-text) (grid-make-box `( :content ,(propertize "Theurgy Emacs" 'face 'variable-pitch-serif-text)
:width 80 :align center)) :width 80 :align center))
"\n\n" "\n\n"
(grid-make-column
(list
(grid-make-box (grid-make-box
(dashboard-content)) (dashboard-content))
))
;(grid-make-box `(:content ,(enlight-weather) :align center)) ;(grid-make-box `(:content ,(enlight-weather) :align center))
))) )))