From a15c81447eee459687e15c44ca0ce6eac2e9f203 Mon Sep 17 00:00:00 2001 From: andsy10 Date: Thu, 25 Jun 2026 08:44:52 +0800 Subject: [PATCH] feat(themes): add proced memory usage colors and syncthing faces --- lisp/init-package.el | 4 +++- lisp/my-dark-theme.el | 12 +++++++++--- lisp/my-light-theme.el | 29 ++++++++++++++++++++++++++--- 3 files changed, 38 insertions(+), 7 deletions(-) diff --git a/lisp/init-package.el b/lisp/init-package.el index 4fce504..c52efc2 100644 --- a/lisp/init-package.el +++ b/lisp/init-package.el @@ -189,7 +189,9 @@ :config (add-to-list 'proced-format-alist - '(custom user pid ppid sess tree pcpu pmem rss start time state (args comm)))) + '(custom user pid ppid sess tree pcpu pmem rss start time state (args comm))) + (setq proced-low-memory-usage-threshold 0.025 + proced-medium-memory-usage-threshold 0.125)) ;; syncthing (use-package syncthing diff --git a/lisp/my-dark-theme.el b/lisp/my-dark-theme.el index 962d69a..a0f8d04 100644 --- a/lisp/my-dark-theme.el +++ b/lisp/my-dark-theme.el @@ -112,14 +112,20 @@ `(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold)))) `(proced-pid ((,class (:foreground ,violet)))) - `(proced-cpu ((,class (:inherit proced-pid :weight bold)))) - `(proced-mem ((,class (:inherit proced-pid :weight bold)))) + `(proced-session-leader-pid ((,class (:inherit proced-pid :underline t)))) `(proced-ppid ((,class (:foreground ,blue)))) + `(proced-sess ((,class (:inherit proced-ppid)))) `(proced-emacs-pid ((,class (:foreground ,magenta)))) + `(proced-memory-low-usage ((,class (:foreground ,green)))) + `(proced-memory-medium-usage ((,class (:foreground ,yellow)))) + `(proced-memory-high-usage ((,class (:foreground ,red)))) `(proced-executable ((,class (:foreground ,cyan)))) `(proced-run-status-code ((,class (:foreground ,green)))) + `(proced-interruptible-sleep-status-code ((,class (:foreground ,base01)))) `(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red)))) - `(proced-time-colon ((,class (:foreground ,violet)))) + `(proced-time-colon ((,class (:foreground ,base01)))) + `(proced-cpu ((,class (:foreground ,base0)))) + `(proced-mem ((,class (:foreground ,base0)))) `(syncthing-bold ((,class (:inherit bold)))) `(syncthing-italic ((,class (:inherit italic)))) diff --git a/lisp/my-light-theme.el b/lisp/my-light-theme.el index 5868417..21be2ac 100644 --- a/lisp/my-light-theme.el +++ b/lisp/my-light-theme.el @@ -112,14 +112,37 @@ `(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold)))) `(proced-pid ((,class (:foreground ,violet)))) - `(proced-cpu ((,class (:inherit proced-pid :weight bold)))) - `(proced-mem ((,class (:inherit proced-pid :weight bold)))) + `(proced-session-leader-pid ((,class (:inherit proced-pid :underline t)))) `(proced-ppid ((,class (:foreground ,blue)))) + `(proced-sess ((,class (:inherit proced-ppid)))) `(proced-emacs-pid ((,class (:foreground ,magenta)))) + `(proced-memory-low-usage ((,class (:foreground ,green)))) + `(proced-memory-medium-usage ((,class (:foreground ,yellow)))) + `(proced-memory-high-usage ((,class (:foreground ,red)))) `(proced-executable ((,class (:foreground ,cyan)))) `(proced-run-status-code ((,class (:foreground ,green)))) + `(proced-interruptible-sleep-status-code ((,class (:foreground ,base01)))) `(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red)))) - `(proced-time-colon ((,class (:foreground ,violet))))))) + `(proced-time-colon ((,class (:foreground ,base01)))) + `(proced-cpu ((,class (:foreground ,base0)))) + `(proced-mem ((,class (:foreground ,base0)))) + + `(syncthing-bold ((,class (:inherit bold)))) + `(syncthing-italic ((,class (:inherit italic)))) + `(syncthing-my-id ((,class (:foreground ,blue :weight bold)))) + `(syncthing-rate-upload ((,class (:foreground ,green)))) + `(syncthing-rate-download ((,class (:foreground ,blue :weight bold)))) + `(syncthing-uptime ((,class (:foreground ,magenta :wegiht bold)))) + `(syncthing-count-discovery ((,class (:foreground ,blue :weight bold)))) + `(syncthing-count-listeners ((,class (:foreground ,green :weight bold)))) + `(syncthing-count-local-bytes ((,class (:foreground ,cyan :weight bold)))) + `(syncthing-count-local-files ((,class (:inherit default :weight bold)))) + `(syncthing-count-local-folders ((,class (:foreground ,yellow :weight bold)))) + `(syncthing-progress-100 ((,class (:foreground ,green)))) + `(syncthing-progress-75 ((,class (:foreground ,cyan)))) + `(syncthing-progress-50 ((,class (:foreground ,yellow)))) + `(syncthing-progress-25 ((,class (:foreground ,orange)))) + `(syncthing-progress-0 ((,class (:foreground ,red))))))) (provide-theme 'my-light)