Android dashboard

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

View file

@ -129,46 +129,38 @@
(defun android-dash ()
"Return the android dashboard."
`(:content ,(concat
(grid-make-row
`(:align center
:content (concat (grid-make-column (list (grid-make-box `(:content ,(concat
(enlight-menu
'(("Exobrain"
("Agenda" (org-agenda nil "a") "a")
("Go to Inbox" open-inbox "i")
("Capture" org-capture "c")))))
: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))))
(grid-make-column (list (grid-make-box `(:content ,(concat
(enlight-menu
'(("Userland"
("Dired" (dired "~") "d")
("RSS" elfeed "r")
("Terminal" theurgy-bottom-shell "t")
("Gomuks" theurgy-gomuks-workspace "G")
("Weather" theurgy-show-weather "w")))))
:align center
:width 20))
"\n\n"
(grid-make-box `(:content ,(concat
(enlight-menu
'(("Meta"
("Elisp Scratch" open-elisp-scratch "s")
("Org Scratch" open-org-scratch "o")
("Init Dir" (dired user-emacs-directory) "e")
("Info" info "h")))))
:align center
:width 20))))))))
))
`(:width 80
:align center
:content ,(concat
(grid-make-row
(list (grid-make-column (list (grid-make-box `(:content ,(concat
(enlight-menu
'(("Exobrain"
("Agenda" (org-agenda nil "a") "a")
("Go to Inbox" open-inbox "i")
("Capture" org-capture "c")))))
:align center
:width 20))))
(grid-make-column (list (grid-make-box `(:content ,(concat
(enlight-menu
'(("Userland"
("Dired" (dired "~") "d")
("RSS" elfeed "r")
("Terminal" theurgy-bottom-shell "t")
))))
:align center
:width 20))
"\n\n"
(grid-make-box `(:content ,(concat
(enlight-menu
'(("Meta"
("Elisp Scratch" open-elisp-scratch "s")
("Org Scratch" open-org-scratch "o")
("Init Dir" (dired user-emacs-directory) "e")
("Info" info "h")))))
:align center
:width 20)))))))
))
(defun dashboard-content ()
"Gets the dashboard content for the current platform."
@ -188,11 +180,9 @@
(grid-make-box `( :content ,(propertize "Theurgy Emacs" 'face 'variable-pitch-serif-text)
:width 80 :align center))
"\n\n"
(grid-make-column
(list
(grid-make-box
(dashboard-content))
))
(grid-make-box
(dashboard-content))
;(grid-make-box `(:content ,(enlight-weather) :align center))
)))