diff options
author | bd <bdunahu@operationnull.com> | 2024-07-10 01:41:01 -0600 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2024-07-10 01:41:01 -0600 |
commit | 66d19db226f5ec46871d382b4b70d9576c6afbc4 (patch) | |
tree | 36662aef40ab5c456807dfab93d4dfed1a3394f6 | |
parent | d1b3440d38a3bea44b8f0e8c63cd3cf2ec0a22d8 (diff) |
hide dwm-status bar by default, add time back to emacs modeline
-rw-r--r-- | .config/emacs/modules/bd--modeline.el | 9 | ||||
-rw-r--r-- | .config/guix/modules/base.scm | 2 | ||||
-rw-r--r-- | .config/guix/modules/dwm/config.def.h | 2 |
3 files changed, 11 insertions, 2 deletions
diff --git a/.config/emacs/modules/bd--modeline.el b/.config/emacs/modules/bd--modeline.el index 1b0f5ee..39e5088 100644 --- a/.config/emacs/modules/bd--modeline.el +++ b/.config/emacs/modules/bd--modeline.el @@ -5,6 +5,7 @@ ;;; Code: +(require 'time) (defun mode-line-fill (reserve) "Return empty space, leaving RESERVE space on the right." (unless reserve @@ -33,11 +34,17 @@ (global-set-key (kbd "C-c ,") 'minor-mode-blackout-mode) +;;;; time and date +(setq display-time-format "%m/%d/%y %H:%M (%a)" + display-time-default-load-average nil) +(display-time) + (defvar-local bd/time-mode-line '(:eval (when (mode-line-window-selected-p) display-time-string)) "displays current time and date in selected window.") +(display-time) ;;;; buffer name @@ -94,7 +101,7 @@ mode-line-modified bd/vc-mode-line " " - (mode-line-fill 19) + (mode-line-fill 39) bd/line-position " " bd/time-mode-line)) diff --git a/.config/guix/modules/base.scm b/.config/guix/modules/base.scm index 5bc7d0f..35ea6b7 100644 --- a/.config/guix/modules/base.scm +++ b/.config/guix/modules/base.scm @@ -41,6 +41,7 @@ image ;; flameshot imagemagick ;; imagemagick mail ;; offlineimap + man ;; man-pages package-management ;; stow password-utils ;; pass-otp, password-store pdf ;; xpdf @@ -70,6 +71,7 @@ git jq netcat + man-pages recutils rsync stow diff --git a/.config/guix/modules/dwm/config.def.h b/.config/guix/modules/dwm/config.def.h index dc62826..3ed95e4 100644 --- a/.config/guix/modules/dwm/config.def.h +++ b/.config/guix/modules/dwm/config.def.h @@ -4,7 +4,7 @@ static const unsigned int borderpx = 1; /* border pixel of windows */ static const unsigned int gappx = 8; /* gaps between windows */ static const unsigned int snap = 32; /* snap pixel */ -static const int showbar = 1; /* 0 means no bar */ +static const int showbar = 0; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ static const char *fonts[] = { "Terminus:size=10", "fontawesome:size=10" }; static const char dmenufont[] = "Terminus:size=10"; |