org agenda frames

This commit is contained in:
Chris Cochrun 2021-09-28 06:18:42 -05:00
parent ede21c8cd9
commit 22103de07b
2 changed files with 20 additions and 27 deletions

View file

@ -104,12 +104,9 @@ In order to have this config work on both my desktop with regular joe-schmoe mon
(defun chris/set-transparency () (defun chris/set-transparency ()
"Set the frame to be transparent on Wayland compositors" "Set the frame to be transparent on Wayland compositors"
(if (string-search "wayland" x-display-name) (if (string-search "wayland" x-display-name)
'((set-frame-parameter (selected-frame) 'alpha '(100 . 100)) '((set-frame-parameter (selected-frame) 'alpha '(80 . 50))
(set-frame-parameter (selected-frame) 'undecorated nil) (add-to-list 'default-frame-alist '(alpha . (80 . 50)))
(add-to-list 'default-frame-alist '(undecorated . nil)) (add-to-list 'initial-frame-alist '(alpha . (80 . 50))))))
(add-to-list 'default-frame-alist '(alpha . (100 . 100)))
(add-to-list 'initial-frame-alist '(alpha . (100 . 100)))
(add-to-list 'initial-frame-alist '(undecorated . t)))))
(if (daemonp) (if (daemonp)
(add-hook 'after-make-frame-functions (add-hook 'after-make-frame-functions
@ -118,7 +115,6 @@ In order to have this config work on both my desktop with regular joe-schmoe mon
(chris/set-font-faces))) (chris/set-font-faces)))
(chris/set-font-faces))) (chris/set-font-faces)))
(add-to-list 'default-frame-alist '(undecorated . t))
#+end_src #+end_src
Then let's make sure line-numbers are relative and on. And let's turn on visual-line-mode globally. Then let's make sure line-numbers are relative and on. And let's turn on visual-line-mode globally.
@ -1178,12 +1174,13 @@ Part of this config includes some special capture templates for my work as a you
(setq org-agenda-window-setup 'current-window) (setq org-agenda-window-setup 'current-window)
(defun chris/org-agenda () (defun chris/org-agenda ()
"create a window in AwesomeWM that houses my org-agenda" "create a window that houses my org-agenda"
(interactive) (interactive)
(if (not (ignore-errors (select-frame-by-name "org-agenda")))
(with-selected-frame (make-frame (with-selected-frame (make-frame
'((name . "org-agenda") '((name . "org-agenda")
(width . 100))) (width . 100)))
(org-agenda-list))) (org-agenda-list))))
:general :general

16
init.el
View file

@ -39,12 +39,9 @@
(defun chris/set-transparency () (defun chris/set-transparency ()
"Set the frame to be transparent on Wayland compositors" "Set the frame to be transparent on Wayland compositors"
(if (string-search "wayland" x-display-name) (if (string-search "wayland" x-display-name)
'((set-frame-parameter (selected-frame) 'alpha '(100 . 100)) '((set-frame-parameter (selected-frame) 'alpha '(80 . 50))
(set-frame-parameter (selected-frame) 'undecorated nil) (add-to-list 'default-frame-alist '(alpha . (80 . 50)))
(add-to-list 'default-frame-alist '(undecorated . nil)) (add-to-list 'initial-frame-alist '(alpha . (80 . 50))))))
(add-to-list 'default-frame-alist '(alpha . (100 . 100)))
(add-to-list 'initial-frame-alist '(alpha . (100 . 100)))
(add-to-list 'initial-frame-alist '(undecorated . t)))))
(if (daemonp) (if (daemonp)
(add-hook 'after-make-frame-functions (add-hook 'after-make-frame-functions
@ -53,8 +50,6 @@
(chris/set-font-faces))) (chris/set-font-faces)))
(chris/set-font-faces))) (chris/set-font-faces)))
(add-to-list 'default-frame-alist '(undecorated . t))
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
(global-display-line-numbers-mode +1) (global-display-line-numbers-mode +1)
(add-hook 'prog-mode-hook (display-line-numbers-mode +1)) (add-hook 'prog-mode-hook (display-line-numbers-mode +1))
@ -780,12 +775,13 @@ vertically."
(setq org-agenda-window-setup 'current-window) (setq org-agenda-window-setup 'current-window)
(defun chris/org-agenda () (defun chris/org-agenda ()
"create a window in AwesomeWM that houses my org-agenda" "create a window that houses my org-agenda"
(interactive) (interactive)
(if (not (ignore-errors (select-frame-by-name "org-agenda")))
(with-selected-frame (make-frame (with-selected-frame (make-frame
'((name . "org-agenda") '((name . "org-agenda")
(width . 100))) (width . 100)))
(org-agenda-list))) (org-agenda-list))))
:general :general