System utilities and desktop configuration changes

This commit is contained in:
BirDt_ 2025-10-11 03:10:50 +08:00
parent 445f4ccf64
commit e0e8797aa4
4 changed files with 86 additions and 17 deletions

19
ui.el
View file

@ -184,6 +184,25 @@
(global-set-key (kbd "<volume-up> <volume-up>")
'(lambda () (interactive) (frame-toggle-on-screen-keyboard (selected-frame) nil))))
;; Desktop specific configuration
;; We can replace the system bar here:
(defcustom theurgy-replace-bar
t
"Whether to show battery and time values in the tab bar."
:type 'boolean
:group 'theurgy
:group 'theurgy-ui)
(when (and (equal system-type 'gnu/linux)
theurgy-replace-bar)
(display-battery-mode 1)
(add-to-list 'tab-bar-format 'tab-bar-format-align-right 'append)
(add-to-list 'tab-bar-format 'tab-bar-format-global 'append)
(setq display-time-format "%a %F %H:%M (%Z)")
(setq display-time-default-load-average nil) ;; Turn off load number by default
(setq display-time-interval 1)
(display-time-mode 1))
(provide 'ui)
;;; ui.el ends here