mirror of
https://github.com/librephoenix/nixos-config
synced 2025-04-21 01:34:34 +05:30
Added more color to dashboard
This commit is contained in:
parent
67cb2d49d9
commit
6ea06c237a
|
@ -95,34 +95,39 @@ Teach him how to program and you will frustrate him for a lifetime."
|
||||||
"I'll tell you a TCP joke. Do you want to hear it?"))
|
"I'll tell you a TCP joke. Do you want to hear it?"))
|
||||||
(setq dashboard-navigator-buttons
|
(setq dashboard-navigator-buttons
|
||||||
`(;; line1
|
`(;; line1
|
||||||
(
|
( (,"Roam" "" "" (lambda (&rest _)) 'magit-head)
|
||||||
(,(all-the-icons-octicon "mark-github" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "globe" :height 1.0 :v-adjust 0.0)
|
||||||
"GitHub" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://github.com/librephoenix")))
|
"Notes overview" "" (lambda (&rest _) (org-roam-default-overview)) 'magit-head)
|
||||||
(,(all-the-icons-faicon "gitlab" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-fileicon "org" :height 1.0 :v-adjust 0.0)
|
||||||
"GitLab" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://gitlab.com/librephoenix")))
|
"Switch roam db" "" (lambda (&rest _) (org-roam-switch-db)) 'magit-head)
|
||||||
(,(all-the-icons-faicon "coffee" :height 1.1 :v-adjust 0.0)
|
|
||||||
"Gitea" "" (lambda (&rest _) (browse-url my-gitea-domain)))
|
|
||||||
)
|
)
|
||||||
;; line 2
|
;; line 2
|
||||||
(
|
( (,"Git" "" "" (lambda (&rest _)) 'magit-keyword)
|
||||||
(,(all-the-icons-octicon "globe" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "mark-github" :height 1.0 :v-adjust 0.0)
|
||||||
"Notes overview" "" (lambda (&rest _) (org-roam-default-overview)))
|
"GitHub" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://github.com/librephoenix")) 'magit-keyword)
|
||||||
(,(all-the-icons-fileicon "org" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-faicon "gitlab" :height 1.0 :v-adjust 0.0)
|
||||||
"Switch roam db" "" (lambda (&rest _) (org-roam-switch-db)))
|
"GitLab" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://gitlab.com/librephoenix")) 'magit-keyword)
|
||||||
(,(all-the-icons-octicon "calendar" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-faicon "coffee" :height 1.0 :v-adjust 0.0)
|
||||||
"Org roam agenda" "" (lambda (&rest _) (org-agenda-list)))
|
"Gitea" "" (lambda (&rest _) (browse-url my-gitea-domain)) 'magit-keyword)
|
||||||
)
|
)
|
||||||
;; line 3
|
;; line 3
|
||||||
(
|
( (,"Agenda" "" "" (lambda (&rest _)) 'magit-tag)
|
||||||
(,(all-the-icons-faicon "cogs" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "checklist" :height 1.0 :v-adjust 0.0)
|
||||||
"System config" "" (lambda (&rest _) (projectile-switch-project-by-name "~/.dotfiles" t)))
|
"Agenda todos" "" (lambda (&rest _) (org-agenda-list)) 'magit-tag)
|
||||||
(,(all-the-icons-material "help" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "calendar" :height 1.0 :v-adjust 0.0)
|
||||||
"Doom documentation" "" (lambda (&rest _) (doom/help)))
|
"Agenda calendar" "" (lambda (&rest _) (cfw:open-org-calendar)) 'magit-tag)
|
||||||
|
)
|
||||||
|
;; line 4
|
||||||
|
( (,"Config" "" "" (lambda (&rest _)) 'magit-signature-error)
|
||||||
|
(,(all-the-icons-faicon "cogs" :height 1.0 :v-adjust 0.0)
|
||||||
|
"System config" "" (lambda (&rest _) (projectile-switch-project-by-name "~/.dotfiles" t)) 'magit-signature-error)
|
||||||
|
(,(all-the-icons-material "help" :height 1.0 :v-adjust -0.2)
|
||||||
|
"Doom documentation" "" (lambda (&rest _) (doom/help)) 'magit-signature-error)
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
(setq dashboard-footer-icon (all-the-icons-octicon "dashboard"
|
(setq dashboard-footer-icon (all-the-icons-faicon "list-alt"
|
||||||
:height 1.1
|
:height 1.0
|
||||||
:v-adjust -0.05
|
:v-adjust -0.15
|
||||||
:face 'font-lock-keyword-face))
|
:face 'font-lock-keyword-face))
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
|
|
||||||
|
@ -485,7 +490,6 @@ same directory as the org-buffer and insert a link to this file."
|
||||||
; "r" 'org-simple-print-region)
|
; "r" 'org-simple-print-region)
|
||||||
|
|
||||||
;;;------ Org roam configuration ------;;;
|
;;;------ Org roam configuration ------;;;
|
||||||
|
|
||||||
(require 'org-roam)
|
(require 'org-roam)
|
||||||
(require 'org-roam-dailies)
|
(require 'org-roam-dailies)
|
||||||
|
|
||||||
|
@ -663,7 +667,6 @@ same directory as the org-buffer and insert a link to this file."
|
||||||
;; Build agenda for first time during this session
|
;; Build agenda for first time during this session
|
||||||
(org-roam-refresh-agenda-list)
|
(org-roam-refresh-agenda-list)
|
||||||
|
|
||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:prefix ("o a")
|
:prefix ("o a")
|
||||||
|
|
||||||
|
|
|
@ -156,34 +156,39 @@ Teach him how to program and you will frustrate him for a lifetime."
|
||||||
"I'll tell you a TCP joke. Do you want to hear it?"))
|
"I'll tell you a TCP joke. Do you want to hear it?"))
|
||||||
(setq dashboard-navigator-buttons
|
(setq dashboard-navigator-buttons
|
||||||
`(;; line1
|
`(;; line1
|
||||||
(
|
( (,"Roam" "" "" (lambda (&rest _)) 'magit-head)
|
||||||
(,(all-the-icons-octicon "mark-github" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "globe" :height 1.0 :v-adjust 0.0)
|
||||||
"GitHub" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://github.com/librephoenix")))
|
"Notes overview" "" (lambda (&rest _) (org-roam-default-overview)) 'magit-head)
|
||||||
(,(all-the-icons-faicon "gitlab" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-fileicon "org" :height 1.0 :v-adjust 0.0)
|
||||||
"GitLab" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://gitlab.com/librephoenix")))
|
"Switch roam db" "" (lambda (&rest _) (org-roam-switch-db)) 'magit-head)
|
||||||
(,(all-the-icons-faicon "coffee" :height 1.1 :v-adjust 0.0)
|
|
||||||
"Gitea" "" (lambda (&rest _) (browse-url my-gitea-domain)))
|
|
||||||
)
|
)
|
||||||
;; line 2
|
;; line 2
|
||||||
(
|
( (,"Git" "" "" (lambda (&rest _)) 'magit-keyword)
|
||||||
(,(all-the-icons-octicon "globe" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "mark-github" :height 1.0 :v-adjust 0.0)
|
||||||
"Notes overview" "" (lambda (&rest _) (org-roam-default-overview)))
|
"GitHub" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://github.com/librephoenix")) 'magit-keyword)
|
||||||
(,(all-the-icons-fileicon "org" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-faicon "gitlab" :height 1.0 :v-adjust 0.0)
|
||||||
"Switch roam db" "" (lambda (&rest _) (org-roam-switch-db)))
|
"GitLab" "" (lambda (&rest _) (browse-url "ext+container:name=Tech&url=https://gitlab.com/librephoenix")) 'magit-keyword)
|
||||||
(,(all-the-icons-octicon "calendar" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-faicon "coffee" :height 1.0 :v-adjust 0.0)
|
||||||
"Org roam agenda" "" (lambda (&rest _) (org-agenda-list)))
|
"Gitea" "" (lambda (&rest _) (browse-url my-gitea-domain)) 'magit-keyword)
|
||||||
)
|
)
|
||||||
;; line 3
|
;; line 3
|
||||||
(
|
( (,"Agenda" "" "" (lambda (&rest _)) 'magit-tag)
|
||||||
(,(all-the-icons-faicon "cogs" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "checklist" :height 1.0 :v-adjust 0.0)
|
||||||
"System config" "" (lambda (&rest _) (projectile-switch-project-by-name "~/.dotfiles" t)))
|
"Agenda todos" "" (lambda (&rest _) (org-agenda-list)) 'magit-tag)
|
||||||
(,(all-the-icons-material "help" :height 1.1 :v-adjust 0.0)
|
(,(all-the-icons-octicon "calendar" :height 1.0 :v-adjust 0.0)
|
||||||
"Doom documentation" "" (lambda (&rest _) (doom/help)))
|
"Agenda calendar" "" (lambda (&rest _) (cfw:open-org-calendar)) 'magit-tag)
|
||||||
|
)
|
||||||
|
;; line 4
|
||||||
|
( (,"Config" "" "" (lambda (&rest _)) 'magit-signature-error)
|
||||||
|
(,(all-the-icons-faicon "cogs" :height 1.0 :v-adjust 0.0)
|
||||||
|
"System config" "" (lambda (&rest _) (projectile-switch-project-by-name "~/.dotfiles" t)) 'magit-signature-error)
|
||||||
|
(,(all-the-icons-material "help" :height 1.0 :v-adjust -0.2)
|
||||||
|
"Doom documentation" "" (lambda (&rest _) (doom/help)) 'magit-signature-error)
|
||||||
)
|
)
|
||||||
))
|
))
|
||||||
(setq dashboard-footer-icon (all-the-icons-octicon "dashboard"
|
(setq dashboard-footer-icon (all-the-icons-faicon "list-alt"
|
||||||
:height 1.1
|
:height 1.0
|
||||||
:v-adjust -0.05
|
:v-adjust -0.15
|
||||||
:face 'font-lock-keyword-face))
|
:face 'font-lock-keyword-face))
|
||||||
(dashboard-setup-startup-hook)
|
(dashboard-setup-startup-hook)
|
||||||
|
|
||||||
|
@ -583,7 +588,6 @@ exit
|
||||||
*** Standard Org Roam Configuration
|
*** Standard Org Roam Configuration
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
;;;------ Org roam configuration ------;;;
|
;;;------ Org roam configuration ------;;;
|
||||||
|
|
||||||
(require 'org-roam)
|
(require 'org-roam)
|
||||||
(require 'org-roam-dailies)
|
(require 'org-roam-dailies)
|
||||||
|
|
||||||
|
@ -770,14 +774,12 @@ exit
|
||||||
;; Build agenda for first time during this session
|
;; Build agenda for first time during this session
|
||||||
(org-roam-refresh-agenda-list)
|
(org-roam-refresh-agenda-list)
|
||||||
|
|
||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:prefix ("o a")
|
:prefix ("o a")
|
||||||
|
|
||||||
:desc "Refresh org agenda from roam dbs"
|
:desc "Refresh org agenda from roam dbs"
|
||||||
"r" 'org-roam-refresh-agenda-list)
|
"r" 'org-roam-refresh-agenda-list)
|
||||||
|
|
||||||
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Org Roam Keybindings
|
*** Org Roam Keybindings
|
||||||
#+BEGIN_SRC emacs-lisp :tangle config.el
|
#+BEGIN_SRC emacs-lisp :tangle config.el
|
||||||
|
|
Loading…
Reference in a new issue