feat(themes): add proced memory usage colors and syncthing faces

This commit is contained in:
2026-06-25 08:44:52 +08:00
parent 6507e5b1d4
commit a15c81447e
3 changed files with 38 additions and 7 deletions

View File

@@ -189,7 +189,9 @@
:config :config
(add-to-list (add-to-list
'proced-format-alist '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 ;; syncthing
(use-package syncthing (use-package syncthing

View File

@@ -112,14 +112,20 @@
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold)))) `(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
`(proced-pid ((,class (:foreground ,violet)))) `(proced-pid ((,class (:foreground ,violet))))
`(proced-cpu ((,class (:inherit proced-pid :weight bold)))) `(proced-session-leader-pid ((,class (:inherit proced-pid :underline t))))
`(proced-mem ((,class (:inherit proced-pid :weight bold))))
`(proced-ppid ((,class (:foreground ,blue)))) `(proced-ppid ((,class (:foreground ,blue))))
`(proced-sess ((,class (:inherit proced-ppid))))
`(proced-emacs-pid ((,class (:foreground ,magenta)))) `(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-executable ((,class (:foreground ,cyan))))
`(proced-run-status-code ((,class (:foreground ,green)))) `(proced-run-status-code ((,class (:foreground ,green))))
`(proced-interruptible-sleep-status-code ((,class (:foreground ,base01))))
`(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red)))) `(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-bold ((,class (:inherit bold))))
`(syncthing-italic ((,class (:inherit italic)))) `(syncthing-italic ((,class (:inherit italic))))

View File

@@ -112,14 +112,37 @@
`(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold)))) `(emms-playlist-selected-face ((,class (:foreground ,blue :weight bold))))
`(proced-pid ((,class (:foreground ,violet)))) `(proced-pid ((,class (:foreground ,violet))))
`(proced-cpu ((,class (:inherit proced-pid :weight bold)))) `(proced-session-leader-pid ((,class (:inherit proced-pid :underline t))))
`(proced-mem ((,class (:inherit proced-pid :weight bold))))
`(proced-ppid ((,class (:foreground ,blue)))) `(proced-ppid ((,class (:foreground ,blue))))
`(proced-sess ((,class (:inherit proced-ppid))))
`(proced-emacs-pid ((,class (:foreground ,magenta)))) `(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-executable ((,class (:foreground ,cyan))))
`(proced-run-status-code ((,class (:foreground ,green)))) `(proced-run-status-code ((,class (:foreground ,green))))
`(proced-interruptible-sleep-status-code ((,class (:foreground ,base01))))
`(proced-uninterruptible-sleep-status-code ((,class (:foreground ,red)))) `(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) (provide-theme 'my-light)