-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathпро-стартовый-экран.el
133 lines (111 loc) · 4.01 KB
/
про-стартовый-экран.el
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
;;; про-стартовый-экран.el --- Альтернативный стартовый экран -*- lexical-binding: t -*-
;; Author: az
;; Maintainer: az
;; Version: version
;; Package-Requires: (dependencies)
;; Homepage: homepage
;; Keywords: keywords
;; This file is not part of GNU Emacs
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; commentary
;;; Code:
(use-package grid
:defer t
:ensure t
:init
(unless (package-installed-p 'grid)
(package-vc-install
'(grid
:vc-backend Git
:url "https://github.com/ichernyshovvv/grid.el"
:branch "master"))))
(require 'grid)
(defvar enlight-lipsum "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.")
(defface enlight-yellow-bold
'((t (:foreground "#cabf00" :bold t)))
"Yellow bold face")
(defvar enlight-guix
(propertize
" .. `.
`--..```..` `..```..--`
.-:///-:::. `-:::///:-.
````.:::` `:::.````
-//:` -::-
://: -::-
`///- .:::`
-+++-:::.
:+/:::-
`-....` "
'face 'enlight-yellow-bold))
(defvar enlight-guix-widget
`( :content ,(concat "\n" (propertize "Block 1" 'face 'enlight-yellow-bold)
"\nGUIX MANAGEMENT WIDGET\n\n")
:width 22 :border t :align center :padding 2))
(defvar enlight-email-width
`( :content
,(concat "\n" (propertize "Block 2" 'face 'enlight-yellow-bold)
"\nEMAIL WIDGET\n\n")
:padding 2 :width 22 :align center :border t))
(defvar enlight-weather-width
`( :content
,(concat "\n" (propertize "Block 3" 'face 'enlight-yellow-bold)
"\nWEATHER WIDGET\n\n")
:padding 2 :width 22 :border t :align center))
(defvar enlight-calendar
(progn
(calendar)
(diary-mark-entries)
(prog1 (with-current-buffer (buffer-name (current-buffer))
(buffer-string))
(calendar-exit))))
(use-package enlight
:defer t
:custom
(enlight-content
(concat
(grid-get-box `( :align center :content ,enlight-guix :width 80))
(grid-get-row
(list
(grid-get-box
(concat
(grid-get-box
`( :content
,(concat
(grid-get-box `( :content ,(propertize "HEADER" 'face 'highlight)
:width 80 :align center))
(grid-get-row
`(,enlight-guix-widget
" "
,enlight-email-width
" "
,enlight-weather-width)))
:width 80))
enlight-calendar "\n"
(grid-get-row
`(,(concat
(propertize "MENU" 'face 'highlight)
"\n"
(enlight-menu
'(("Org Mode"
("Org-Agenda (current day)" (org-agenda nil "a") "a"))
("Downloads"
("Transmission" transmission "t")
("Downloads folder" (dired "~/Downloads") "a"))
("Other"
("Projects" project-switch-project "p")))))
,(grid-get-column
`(,(propertize "THINGS TO REMEMBER" 'face 'highlight)
(:content ,enlight-lipsum :width 50))))))))))))
(provide 'про-стартовый-экран)
;;; про-стартовый-экран.el ends here