aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
Diffstat (limited to 'gui/conf')
-rw-r--r--gui/conf/init.el21
-rw-r--r--gui/conf/niri.kdl18
2 files changed, 38 insertions, 1 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index fc5e344..1c96458 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -248,6 +248,27 @@
"* %:description\n%:link %U"
:immediate-finish t)))
+(defcustom custom/org-capture-frame-name "**Capture**"
+ :type 'string)
+
+(defun custom/org-capture-frame (template)
+ (interactive '(nil))
+ (if (not (equal custom/org-capture-frame-name (frame-parameter nil 'name)))
+ (make-frame '((name . custom/org-capture-frame-name))))
+ (select-frame-by-name custom/org-capture-frame-name)
+ (delete-other-windows)
+ (defun org-capture-after-finalize-clean-up ()
+ "Clean up after `org-capture' finalizes.
+ We delete the dedicated frame and removing advice."
+ (advice-remove 'org-capture-place-template 'delete-other-windows)
+ (remove-hook 'org-capture-after-finalize-hook 'org-capture-after-finalize-clean-up)
+ (select-frame-by-name custom/org-capture-frame-name)
+ (delete-frame nil t))
+ (add-hook 'org-capture-mode-hook 'evil-insert-state)
+ (add-hook 'org-capture-after-finalize-hook 'org-capture-after-finalize-clean-up)
+ (advice-add #'org-capture-place-template :after 'delete-other-windows)
+ (org-capture nil template))
+
(setq org-agenda-custom-commands
'(("p" "Priorities Dashboard"
((tags-todo "+PRIORITY=\"A\""
diff --git a/gui/conf/niri.kdl b/gui/conf/niri.kdl
index e09fe68..3e74475 100644
--- a/gui/conf/niri.kdl
+++ b/gui/conf/niri.kdl
@@ -97,11 +97,26 @@ window-rule {
window-rule {
match app-id="^blender$"
- match app-id="^gimp"
+ match app-id="^gimp$"
default-column-width { proportion 1.0; }
}
+window-rule {
+ match title="\\*\\*Capture\\*\\*"
+ open-floating true
+ open-focused true
+ focus-ring {
+ off
+ }
+ shadow {
+ on
+ spread 8
+ softness 50
+ color "#909636"
+ }
+}
+
binds {
Mod+F1 { show-hotkey-overlay; }
@@ -110,6 +125,7 @@ binds {
Mod+Return { spawn "kitty"; }
Mod+Shift+Return { spawn "emacsclient" "-c"; }
+ Mod+numbersign { spawn "org-capture-todo"; }
Mod+Space { spawn "rofi" "-show" "combi"; }
Ctrl+Alt+L { spawn "swaylock" "--color" "#000000"; }