about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el86
1 files changed, 51 insertions, 35 deletions
diff --git a/init.el b/init.el index 5b6b72c..6ce3eb1 100644 --- a/init.el +++ b/init.el
@@ -75,7 +75,6 @@
75(global-visual-line-mode 1) 75(global-visual-line-mode 1)
76(delight 'global-visual-line-mode) 76(delight 'global-visual-line-mode)
77 77
78(display-battery-mode 1)
79(display-time-mode 1) 78(display-time-mode 1)
80 79
81(add-hook 'before-save-hook #'delete-trailing-whitespace) 80(add-hook 'before-save-hook #'delete-trailing-whitespace)
@@ -169,25 +168,28 @@
169 (lambda () "Autostart" 168 (lambda () "Autostart"
170 (start-process-shell-command "cmst" nil "cmst -m -w 5") 169 (start-process-shell-command "cmst" nil "cmst -m -w 5")
171 (start-process-shell-command "keepassxc" nil "keepassxc") 170 (start-process-shell-command "keepassxc" nil "keepassxc")
172 (start-process-shell-command "pa-applet" nil 171 (start-process-shell-command
173 "pa-applet --disable-key-grabbing --disable-notifications")))) 172 "pa-applet" nil
173 "pa-applet --disable-key-grabbing --disable-notifications")
174 (start-process-shell-command "cbatticon" nil "cbatticon"))))
174 :config 175 :config
175 (require 'exwm) 176 (require 'exwm)
176 (exwm-enable) 177 (exwm-enable)
177 (require 'exwm-systemtray) 178 (require 'exwm-systemtray)
178 (exwm-systemtray-enable)) 179 (exwm-systemtray-enable))
179 180
180(use-package mini-modeline 181;; (use-package mini-modeline
181 :quelpa (mini-modeline 182;; :quelpa (mini-modeline
182 :repo "kiennq/emacs-mini-modeline" 183;; :repo "kiennq/emacs-mini-modeline"
183 :fetcher github) 184;; :fetcher github)
184 :delight 185;; :delight
185 :custom 186;; :custom
186 (mini-modeline-enhance-viusual t) 187;; (mini-modeline-enhance-viusual t)
187 (mini-modeline-display-gui-line t) 188;; (mini-modeline-display-gui-line t)
188 (mini-modeline-right-padding 7) ;; characters -- for systemtray 189;; (mini-modeline-right-padding 7) ;; characters -- for systemtray
189 :config 190;; (mini-modeline-face-attr nil)
190 (mini-modeline-mode t)) 191;; :config
192;; (mini-modeline-mode t))
191 193
192(use-package desktop-environment 194(use-package desktop-environment
193 :ensure 195 :ensure
@@ -211,6 +213,11 @@
211 (desktop-environment-volume-small-increment "inc 5") 213 (desktop-environment-volume-small-increment "inc 5")
212 (desktop-environment-volume-small-decrement "dec 5")) 214 (desktop-environment-volume-small-decrement "dec 5"))
213 215
216(use-package trashed
217 :ensure
218 :custom
219 (delete-by-moving-to-trash t))
220
214(use-package switch-window 221(use-package switch-window
215 :ensure 222 :ensure
216 :custom 223 :custom
@@ -227,29 +234,31 @@
227 :custom 234 :custom
228 (all-the-icons-scale-factor 1.0)) 235 (all-the-icons-scale-factor 1.0))
229 236
230;; (use-package doom-modeline 237(use-package doom-modeline
231;; :ensure 238 :ensure
232;; :custom 239 :custom
233;; (doom-modeline-height 16) 240 (doom-modeline-height 16)
234;; (doom-modeline-icon nil) 241 (doom-modeline-icon nil)
235;; (doom-modeline-enable-word-count t) 242 (doom-modeline-enable-word-count t)
236;; (doom-modeline-mu4e t) 243 (doom-modeline-mu4e t)
237;; (doom-modeline-gnus nil) 244 (doom-modeline-gnus nil)
238;; (doom-modeline-irc t) 245 (doom-modeline-irc t)
239;; :custom-face 246 :custom-face
240;; (doom-modeline-vspc-face ((t (:inherit nil)))) 247 (doom-modeline-vspc-face ((t (:inherit nil))))
241;; :config 248 :config
242;; (doom-modeline-mode t)) 249 (doom-modeline-mode t))
243 250
244(use-package zoom 251(use-package zoom
245 :ensure 252 :ensure
246 :delight 253 :delight
247 :custom 254 :custom
248 (zoom-size '(0.618 . 0.618)) 255 (zoom-size '(0.618 . 0.618)))
249 :config
250 (zoom-mode 1))
251 256
252;; themes 257;; themes
258(defun my/sunrise ()
259 (enable-theme 'modus-operandi)
260 (desktop-environment-brightness-set 60))
261
253(use-package modus-operandi-theme 262(use-package modus-operandi-theme
254 :if window-system 263 :if window-system
255 :ensure 264 :ensure
@@ -260,8 +269,11 @@
260 :config 269 :config
261 (load-theme 'modus-operandi t t) 270 (load-theme 'modus-operandi t t)
262 (run-at-time (nth 1 (split-string (sunrise-sunset))) 271 (run-at-time (nth 1 (split-string (sunrise-sunset)))
263 (* 60 60 24) 272 (* 60 60 24) #'my/sunrise))
264 (lambda () (enable-theme 'modus-operandi)))) 273
274(defun my/sunset ()
275 (enable-theme 'modus-vivendi)
276 (desktop-environment-brightness-set 35))
265 277
266(use-package modus-vivendi-theme 278(use-package modus-vivendi-theme
267 :if window-system 279 :if window-system
@@ -273,9 +285,8 @@
273 :config 285 :config
274 (load-theme 'modus-vivendi t t) 286 (load-theme 'modus-vivendi t t)
275 (run-at-time (nth 4 (split-string (sunrise-sunset))) 287 (run-at-time (nth 4 (split-string (sunrise-sunset)))
276 (* 60 60 24) 288 (* 60 60 24) #'my/sunset)
277 (lambda () (enable-theme 'modus-vivendi))) 289 (run-at-time "12am" (* 60 60 24) #'my/sunset))
278 (run-at-time "12am" (* 60 60 24) (lambda () (enable-theme 'modus-vivendi))))
279 290
280;; sudo 291;; sudo
281(use-package su 292(use-package su
@@ -318,6 +329,11 @@
318 :config 329 :config
319 (savehist-mode 1)) 330 (savehist-mode 1))
320 331
332(use-package magit
333 :ensure
334 :bind
335 ("M-g" . magit))
336
321;; mu4e 337;; mu4e
322(use-package mu4e 338(use-package mu4e
323 :ensure-system-package mu ; TODO ensure mu4e is also installed 339 :ensure-system-package mu ; TODO ensure mu4e is also installed