-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodeline.lisp
76 lines (59 loc) · 1.66 KB
/
modeline.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
(in-package :stumpwm)
(load-module "battery-portable")
(load-module "wifi")
(load-module "maildir")
;; "[^B%n^b] %W"
;; "%n%s%t"
;; "%m%n%s%50t"
;; "%a %b %e %k:%M:%S"
(load-conf-file "kb-layout.lisp")
(setf *bar-med-color* "^B^8")
(setf *bar-hi-color* "^B^3")
(setf *bar-crit-color* "^B^1")
(setf *colors*
'("black"
"red"
"green"
"yellow"
"blue"
"magenta"
"cyan"
"white"
"GreenYellow"
"#009696"))
(update-color-map (current-screen))
(setf *group-format* " %t ")
;; (setf *window-format* "%m%50t ")
(setf *window-format* "%m%n%s%20t ")
(setf *mode-line-timeout* 1)
(setf *time-modeline-string* "^9 • %e, %a^n^B %l:%M ^b")
(defun get-date-modeline ()
(stumpwm:run-shell-command
(format nil "date +\"~A\""
*time-modeline-string*) t))
(defun get-layout-modeline ()
(if (= 0 (get-current-layout))
"^3 en ^n"
"^3^R ru ^r^n"))
(defvar jabber-message-count "0")
(setf jabber-message-count "0")
(defun get-jabber-message-count ()
(if (equal "0" jabber-message-count)
" • "
(format nil "^R ~A ^r" jabber-message-count)))
(setf *screen-mode-line-format*
(list "^B^3 %g ^n^b %W ^> "
;; '(:eval (get-layout-modeline))
" "
;; "^3%M^n"
;; '(:eval (get-jabber-message-count))
"%I "
"^B^2^n^b%B "
'(:eval (get-date-modeline))
))
(setf *mode-line-border-width* 0)
(setf *mode-line-background-color* "#000809")
(setf *mode-line-foreground-color* "DeepSkyBlue")
(if (not (head-mode-line (current-head)))
(toggle-mode-line (current-screen)
(current-head)))