Compare commits
41 Commits
3101834051
...
feat/per-h
| Author | SHA1 | Date | |
|---|---|---|---|
| 504daea61e | |||
| d06a382cbf | |||
| fac4a09eeb | |||
| fe90a0f607 | |||
| dfa689633f | |||
| c40210ab31 | |||
| f507d53c42 | |||
| c659d00098 | |||
| f45387456b | |||
| 75df6d502a | |||
| 8e9204bc21 | |||
| 05a3a8546c | |||
| d23138ff2c | |||
| af9fa42cd3 | |||
| 7220066149 | |||
| a7e18db821 | |||
| 7b1998a40d | |||
| 9b4c678fd9 | |||
| 53b376e6e3 | |||
| 6f6b24d3c3 | |||
| 7a0948a43f | |||
| addf9fbe83 | |||
| fb1d0cd2d9 | |||
| 5f465ecb5a | |||
| 48038df872 | |||
| d5095064c2 | |||
| 8f5d2e73bc | |||
| 69c2447f04 | |||
| 4982831883 | |||
| 311a2eae57 | |||
| 79ce045657 | |||
|
|
386d1a3bf8 | ||
|
|
a09a7c03ef | ||
|
|
d73ed29733 | ||
|
|
a2a3baf7da | ||
|
|
aa06568852 | ||
|
|
390ba2ef61 | ||
| 5ee760fbe8 | |||
| c1fbe2e8d9 | |||
| 1a4cafa098 | |||
| 7e48bf1b87 |
2
Makefile
2
Makefile
@@ -1,5 +1,5 @@
|
||||
# Define list of directories you want to stow
|
||||
CONFIG_DIRS := btop doom hypr kitty nvim rclone starship tmux wallpapers waybar wireplumber wofi yazi zsh
|
||||
CONFIG_DIRS := btop doom hypr kitty local nvim rclone starship tmux wallpapers waybar wireplumber wofi yazi zsh
|
||||
|
||||
all: stow_all
|
||||
wal -i ~/.config/wallpapers/green_yellow_forest.jpg -o ~/.config/waybar/launch.sh
|
||||
|
||||
@@ -112,7 +112,9 @@ My current workflow consist in having the 3-5 files I work on open in vertical s
|
||||
#+begin_src emacs-lisp
|
||||
(map! :leader
|
||||
(:prefix ("w" . "window")
|
||||
:desc "Minimize window" "O" #'minimize-window))
|
||||
:desc "Minimize window" "O" #'minimize-window)
|
||||
(:prefix ("z" . "Personal")
|
||||
:desc "Hermes Agent" "h" #'gortium/hermes-vterm))
|
||||
#+end_src
|
||||
|
||||
** Ultra-scroll
|
||||
@@ -156,7 +158,6 @@ My current workflow consist in having the 3-5 files I work on open in vertical s
|
||||
#+end_src
|
||||
|
||||
* Org Mode
|
||||
|
||||
If you use ~org~ and don't want your org files in the default location below,
|
||||
change ~org-directory~. It must be set before org loads!
|
||||
|
||||
@@ -164,12 +165,11 @@ change ~org-directory~. It must be set before org loads!
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq
|
||||
|
||||
org-directory "~/ExoKortex/"
|
||||
+org-capture-todo-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-notes-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-journal-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-emails-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-todo-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
+org-capture-notes-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
+org-capture-journal-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
+org-capture-emails-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
;; +org-capture-central-project-todo-file '"refile.org"
|
||||
;; +org-capture-project-todo-file '"refile.org"
|
||||
org-agenda-files (directory-files-recursively "~/ExoKortex/" "\\.org$")
|
||||
@@ -366,15 +366,34 @@ change ~org-directory~. It must be set before org loads!
|
||||
("p" . "Personal commands")
|
||||
("wg" "GTD view"
|
||||
(
|
||||
(agenda "" ((org-agenda-span 'week)))
|
||||
(todo "STRT" ((org-agenda-overriding-header gtd/started-head)))
|
||||
(todo "NEXT" ((org-agenda-overriding-header gtd/next-action-head)))
|
||||
(todo "WAIT" ((org-agenda-overriding-header gtd/waiting-head)))
|
||||
(agenda "" ((org-agenda-span 'week)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "STRT" ((org-agenda-overriding-header gtd/started-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "NEXT" ((org-agenda-overriding-header gtd/next-action-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "WAIT" ((org-agenda-overriding-header gtd/waiting-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
;; (todo "DONE" ((org-agenda-overriding-header gtd/complete-head)))
|
||||
(stuck "" ((org-stuck-projects '("TODO=\"PROJ\"" ("NEXT" "STRT") nil ""))
|
||||
(org-agenda-overriding-header gtd/project-head)))
|
||||
(todo "IDEA" ((org-agenda-overriding-header gtd/someday-head)))
|
||||
(org-agenda-overriding-header gtd/project-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "IDEA" ((org-agenda-overriding-header gtd/someday-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
)
|
||||
|
||||
((org-agenda-tag-filter-preset '("+work")))
|
||||
)
|
||||
("pg" "GTD view"
|
||||
@@ -476,10 +495,23 @@ change ~org-directory~. It must be set before org loads!
|
||||
)))
|
||||
|
||||
((org-agenda-tag-filter-preset '("+BA_ON_SITE")))
|
||||
)
|
||||
("wA" "Projet Airbus Vision"
|
||||
((agenda ""
|
||||
((org-agenda-span 150)
|
||||
(org-agenda-start-day "2026-05-01")
|
||||
(org-agenda-overriding-header "📅 Projet Airbus Vision")
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
(org-agenda-tags-column -100) ;; right-align tags
|
||||
(org-agenda-time-grid nil)
|
||||
)))
|
||||
|
||||
((org-agenda-tag-filter-preset '("+airbus")))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Rust
|
||||
@@ -492,20 +524,64 @@ change ~org-directory~. It must be set before org loads!
|
||||
#+end_src
|
||||
|
||||
** Latex
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
(setq
|
||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 2.0))
|
||||
|
||||
;; LaTeX math preview
|
||||
org-format-latex-options '(:foreground default :background default :scale 2 :html-foreground "Black"
|
||||
:html-background "Transparent" :html-scale 1.0
|
||||
:matchers ("begin" "$1" "$" "$$" "\\(" "\\["))
|
||||
)
|
||||
;; 1. Use XeLaTeX to generate the intermediate file for dvisvgm
|
||||
;; This handles UTF-8 (like long dashes) which standard 'latex' crashes on.
|
||||
(setq org-preview-latex-process-alist
|
||||
'((dvisvgm
|
||||
:programs ("xelatex" "dvisvgm")
|
||||
:description "xdv to svg"
|
||||
:message "rendering %f via xelatex..."
|
||||
:image-input-type "xdv"
|
||||
:image-output-type "svg"
|
||||
:image-size-adjust (1.0 . 1.0)
|
||||
:latex-compiler ("xelatex -interaction nonstopmode -no-pdf -output-directory %o %f")
|
||||
:image-converter ("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O"))))
|
||||
|
||||
(setq org-preview-latex-default-process 'dvisvgm)
|
||||
|
||||
(defun gortium/org-latex-preview-all ()
|
||||
"Render all LaTeX fragments in the buffer."
|
||||
(interactive)
|
||||
(when (derived-mode-p 'org-mode)
|
||||
(org-latex-preview '(16))))
|
||||
|
||||
;; 1.5s delay to ensure Doom font-colors load first
|
||||
;; (add-hook 'org-mode-hook
|
||||
;; (lambda ()
|
||||
;; (run-with-idle-timer 1.5 nil #'gortium/org-latex-preview-all)))
|
||||
)
|
||||
|
||||
(after! ox-latex
|
||||
(setq org-latex-compiler "xelatex"))
|
||||
(setq org-latex-src-block-backend 'listings)
|
||||
(add-to-list 'org-latex-packages-alist '("" "listings") t)
|
||||
(add-to-list 'org-latex-packages-alist '("" "xcolor") t)
|
||||
(add-to-list 'org-latex-listings-langs '(text ""))
|
||||
(setq org-latex-listings-options
|
||||
'(("breaklines" "true")
|
||||
("basicstyle" "\\small\\ttfamily")
|
||||
("frame" "single")
|
||||
("backgroundcolor" "\\color{gray!10}"))))
|
||||
#+end_src
|
||||
|
||||
** Fragtog
|
||||
#+begin_src emacs-lisp
|
||||
(use-package! org-fragtog
|
||||
:hook (org-mode . org-fragtog-mode))
|
||||
|
||||
(defun gortium/org-latex-refresh-on-zoom (&rest _)
|
||||
(when (derived-mode-p 'org-mode)
|
||||
(let ((new-scale (+ 2 (* 0.5 (if (boundp 'text-scale-mode-amount) text-scale-mode-amount 0)))))
|
||||
(setq org-format-latex-options
|
||||
(plist-put org-format-latex-options :scale new-scale))
|
||||
(org-clear-latex-preview)
|
||||
(gortium/org-latex-preview-all))))
|
||||
|
||||
(advice-add 'text-scale-increase :after #'gortium/org-latex-refresh-on-zoom)
|
||||
(advice-add 'text-scale-decrease :after #'gortium/org-latex-refresh-on-zoom)
|
||||
#+end_src
|
||||
|
||||
** Org Capture
|
||||
@@ -555,6 +631,7 @@ org-modern instead
|
||||
#+end_src
|
||||
|
||||
* Markdown
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! grip-mode
|
||||
(setq grip-binary-path "/home/tpouplier/.local/bin/grip")
|
||||
@@ -599,6 +676,7 @@ org-modern instead
|
||||
#+end_src
|
||||
|
||||
* PlantUML
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Enable plantuml-mode for PlantUML files
|
||||
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
|
||||
@@ -623,6 +701,7 @@ fc --> UC3
|
||||
[[/tmp/babel-pg1Nry/plantuml-SHtP1g.png][/tmp/babel-pg1Nry/plantuml-SHtP1g.png]]
|
||||
|
||||
* Elgantt
|
||||
|
||||
Broken for now..
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
(require 'cl-lib)
|
||||
@@ -842,12 +921,11 @@ Broken for now..
|
||||
: elgantt-open-current-org-file
|
||||
|
||||
* Org Roam
|
||||
|
||||
** Static Path
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-roam-directory (file-truename "~/ExoKortex/")
|
||||
org-roam-db-location (file-truename "~/ExoKortex/2-Areas/IT/Roam/org-roam.db")
|
||||
org-roam-db-location (file-truename "~/ExoKortex/1-Soma/2-Areas/IT/Roam/org-roam.db")
|
||||
org-attach-id-dir "assets/"
|
||||
org-roam-dailies-directory "~/ExoKortex/2-Areas/Meta-Planning/Org/Journal/Daily")
|
||||
#+end_src
|
||||
@@ -1056,7 +1134,6 @@ Handles org-clock and context link capture for tasks."
|
||||
#+end_src
|
||||
|
||||
* IDE
|
||||
|
||||
** Dap Mode
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
@@ -1179,14 +1256,14 @@ Now I can write x) (spellchecking)
|
||||
(after! ispell
|
||||
(setq ispell-program-name "hunspell"
|
||||
ispell-dictionary "en_CA,fr_CA"
|
||||
ispell-personal-dictionary "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries/perso.dic")
|
||||
ispell-personal-dictionary "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries/perso.dic")
|
||||
|
||||
;; Set the dictionary path environment variable
|
||||
(setenv "DICPATH" "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries")
|
||||
(setenv "DICPATH" "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries")
|
||||
|
||||
(setq ispell-hunspell-dict-paths-alist
|
||||
'(("fr_CA" "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries/fr_CA.aff")
|
||||
("en_CA" "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries/en_CA.aff")))
|
||||
'(("fr_CA" "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries/fr_CA.aff")
|
||||
("en_CA" "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries/en_CA.aff")))
|
||||
|
||||
(setq ispell-hunspell-dictionary-alist
|
||||
'(("fr_CA" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "fr_CA") nil utf-8)
|
||||
@@ -1348,33 +1425,6 @@ I'm a formatting nazi now xD
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Fragtog
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Hook fragtog to org-mode to have editable latex preview
|
||||
(use-package! org-fragtog
|
||||
:hook (org-mode . org-fragtog-mode))
|
||||
|
||||
;; Rescale latex preview when changing font size
|
||||
(defun gortium/org-latex-refresh-on-zoom (&rest _)
|
||||
"Dynamically rescale and refresh all LaTeX previews after text zoom."
|
||||
(when (derived-mode-p 'org-mode)
|
||||
;; Dynamically update scale relative to zoom level
|
||||
(setq org-format-latex-options
|
||||
(plist-put org-format-latex-options
|
||||
:scale (+ 2 (* 0.5 text-scale-mode-amount))
|
||||
))
|
||||
;; Clear all previews
|
||||
(org-clear-latex-preview)
|
||||
;; Re-render all previews
|
||||
(org-latex-preview '(16))
|
||||
))
|
||||
|
||||
(advice-add 'text-scale-increase :after #'gortium/org-latex-refresh-on-zoom)
|
||||
(advice-add 'text-scale-decrease :after #'gortium/org-latex-refresh-on-zoom)
|
||||
(advice-add 'text-scale-set :after #'gortium/org-latex-refresh-on-zoom)
|
||||
#+end_src
|
||||
|
||||
** Age
|
||||
Allow me to edit encryted age file directly in emacs buffer.
|
||||
|
||||
@@ -1449,11 +1499,11 @@ Allow retrieval of password from age file formatted like passwordstore
|
||||
;; rebind function value for pass to passage
|
||||
(fset #'pass (lambda () (interactive) (passage)))
|
||||
(setq age-program "rage")
|
||||
(setq auth-source-passage-filename (expand-file-name "~/ExoKortex/2-Areas/IT/dotfiles/secrets"))
|
||||
(setq auth-source-passage-filename (expand-file-name "~/ExoKortex/4-Automata/dotfiles/secrets"))
|
||||
(setenv "PASSAGE_IDENTITIES_FILE" (expand-file-name age-default-identity))
|
||||
(setenv "PASSAGE_RECIPIENTS_FILE" (expand-file-name age-default-recipient))
|
||||
(setenv "PASSAGE_AGE" "rage")
|
||||
(setenv "PASSAGE_DIR" (expand-file-name "~/ExoKortex/2-Areas/IT/dotfiles/secrets"))
|
||||
(setenv "PASSAGE_DIR" (expand-file-name "~/ExoKortex/4-Automata/dotfiles/secrets"))
|
||||
)
|
||||
#+end_src
|
||||
** Diff HL Mode
|
||||
@@ -1464,7 +1514,6 @@ Show git changes in the sidebar
|
||||
#+end_src
|
||||
|
||||
* Terminal
|
||||
|
||||
** +EEE+
|
||||
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
@@ -1519,7 +1568,8 @@ The best LLM integration I found. Works with MCP server for more functionnalitie
|
||||
deepseek/deepseek-chat-v3-0324:free
|
||||
meta-llama/llama-4-maverick:free
|
||||
mistralai/devstral-2512:free
|
||||
qwen/qwen3-coder:free))
|
||||
qwen/qwen3-coder:free
|
||||
nvidia/nemotron-3-nano-30b-a3b:free))
|
||||
(gptel-make-gemini "Gemini"
|
||||
:key (auth-source-passage-get 'secret "gemini")
|
||||
:stream t
|
||||
@@ -1795,6 +1845,25 @@ Org-AI
|
||||
(org-ai-install-yasnippets)) ; if you are using yasnippet and want `ai` snippets
|
||||
#+end_src
|
||||
|
||||
** +Hermes Agent+
|
||||
Hermes Agent runs on lazyworkhorse server. Launched via SSH in a vterm buffer.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! vterm
|
||||
(defun gortium/hermes-vterm ()
|
||||
"Launch Hermes Agent in vterm via SSH to lazyworkhorse (CLI mode)."
|
||||
(interactive)
|
||||
(let ((buf (get-buffer-create "*hermes*")))
|
||||
(switch-to-buffer buf)
|
||||
(unless (and (eq major-mode 'vterm-mode)
|
||||
(get-buffer-process buf))
|
||||
(vterm-mode)
|
||||
(let ((proc (get-buffer-process buf)))
|
||||
(when proc
|
||||
(process-send-string
|
||||
proc "ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'\n")))))))
|
||||
#+end_src
|
||||
|
||||
* Tramp
|
||||
Remote connection to server inside emacs (with all my config) <3
|
||||
|
||||
@@ -1961,7 +2030,6 @@ Useful for the user, but also when you have someone over your shoulder trying to
|
||||
#+end_src
|
||||
|
||||
* Email
|
||||
|
||||
** Org-Msg
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
@@ -1971,14 +2039,54 @@ Useful for the user, but also when you have someone over your shoulder trying to
|
||||
(setq org-msg-options "html-postamble:nil H:5 num:nil ^:{} toc:nil author:nil email:nil \\n:t"
|
||||
org-msg-startup "hidestars indent inlineimages"
|
||||
org-msg-greeting-fmt "\nBonjour%s,\n\n"
|
||||
;; org-msg-recipient-names '(("jeremy.compostella@gmail.com" . "Jérémy"))
|
||||
org-msg-greeting-name-limit 1
|
||||
org-msg-default-alternatives '((new . (text html))
|
||||
(reply-to-html . (text html))
|
||||
(reply-to-text . (text)))
|
||||
org-msg-convert-citation t
|
||||
org-msg-signature "
|
||||
org-msg-convert-citation t)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Mu4e
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! mu4e
|
||||
(setq mu4e-maildir-shortcuts mu4e-maildir-list mu4e-maildir-initial-input mu4e-maildir-info-delimiter)
|
||||
|
||||
(setq mu4e-contexts
|
||||
(list
|
||||
;; --- CONTEXT: TDNDE ---
|
||||
(make-mu4e-context
|
||||
:name "TDNDE"
|
||||
:match-func (lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p "/TDNDE/" (mu4e-message-field msg :maildir))))
|
||||
:vars
|
||||
'((user-mail-address . "tpouplier@tdnde.com")
|
||||
(user-full-name . "Thierry Pouplier")
|
||||
|
||||
;; Folders
|
||||
(mu4e-sent-folder . "/TDNDE/Sent")
|
||||
(mu4e-drafts-folder . "/TDNDE/Drafts")
|
||||
(mu4e-trash-folder . "/TDNDE/Trash")
|
||||
(mu4e-refile-folder . "/TDNDE/Archive")
|
||||
|
||||
;; Shortcuts
|
||||
(mu4e-maildir-shortcuts . (("/TDNDE/Inbox" . ?i)
|
||||
("/TDNDE/Sent" . ?s)
|
||||
("/TDNDE/Drafts" . ?d)
|
||||
("/TDNDE/Trash" . ?t)
|
||||
("/TDNDE/Archive" . ?a)))
|
||||
|
||||
;; SMTP
|
||||
(smtpmail-smtp-user . "tpouplier@tdnde.com")
|
||||
(smtpmail-stream-type . ssl)
|
||||
(smtpmail-smtp-server . "smtp.hostinger.com")
|
||||
(smtpmail-smtp-service . 465)
|
||||
(mu4e-sent-messages-behavior . sent)
|
||||
|
||||
;; Context-specific signature
|
||||
(org-msg-signature . "
|
||||
Cdlt,
|
||||
|
||||
,#+begin_signature
|
||||
@@ -1992,97 +2100,66 @@ Tél. : +1 (450) 667-1884 \\\\
|
||||
Cell. : +1 (514) 887-1674 \\\\
|
||||
tpouplier@tdnde.com \\\\
|
||||
www.tdnde.com \\\\
|
||||
,#+end_signature")
|
||||
)
|
||||
#+end_src
|
||||
,#+end_signature")))
|
||||
|
||||
** Mu4e
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! mu4e
|
||||
(setq mu4e-maildir-shortcuts mu4e-maildir-list mu4e-maildir-initial-input mu4e-maildir-info-delimiter)
|
||||
(setq mu4e-contexts
|
||||
(list
|
||||
;; --- CONTEXT: Perso ---
|
||||
(make-mu4e-context
|
||||
:name "TDNDE"
|
||||
:match-func
|
||||
(lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p
|
||||
"/TDNDE/"
|
||||
(mu4e-message-field msg :maildir))))
|
||||
:vars
|
||||
'((user-mail-address . "tpouplier@tdnde.com")
|
||||
(user-full-name . "Thierry Pouplier")
|
||||
:name "Perso"
|
||||
:match-func (lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p "/Perso/" (mu4e-message-field msg :maildir))))
|
||||
:vars `((user-mail-address . "thierrypouplier@gmail.com")
|
||||
(user-full-name . "Thierry Pouplier")
|
||||
(mu4e-sent-folder . "/Perso/Sent")
|
||||
(mu4e-drafts-folder . "/Perso/Drafts")
|
||||
(mu4e-trash-folder . "/Perso/Trash")
|
||||
(mu4e-refile-folder . "/Perso/Archive")
|
||||
|
||||
(mu4e-maildir-shortcuts . (("/Perso/Inbox" . ?i)
|
||||
("/Perso/Sent" . ?s)
|
||||
("/Perso/Trash" . ?t)
|
||||
("/Perso/Drafts" . ?d)
|
||||
("/Perso/Archive" . ?a)))
|
||||
|
||||
(smtpmail-smtp-user . "thierrypouplier@gmail.com")
|
||||
(smtpmail-smtp-server . "smtp.gmail.com")
|
||||
(smtpmail-smtp-service . 587)
|
||||
(smtpmail-stream-type . starttls)
|
||||
(mu4e-sent-messages-behavior . sent)
|
||||
(org-msg-signature . "
|
||||
Cordialement,
|
||||
|
||||
;; Folders
|
||||
(mu4e-sent-folder . "/TDNDE/Sent")
|
||||
(mu4e-drafts-folder . "/TDNDE/Drafts")
|
||||
(mu4e-trash-folder . "/TDNDE/Trash")
|
||||
(mu4e-refile-folder . "/TDNDE/Archive")
|
||||
|
||||
;; Shortcuts
|
||||
(mu4e-maildir-shortcuts
|
||||
.
|
||||
(("/TDNDE/Inbox" . ?i)
|
||||
("/TDNDE/Sent" . ?s)
|
||||
("/TDNDE/Drafts" . ?d)
|
||||
("/TDNDE/Trash" . ?t)
|
||||
("/TDNDE/Archive" . ?a)))
|
||||
|
||||
;; Bookmarks
|
||||
(mu4e-bookmarks
|
||||
.
|
||||
((:name "Airbus-6825"
|
||||
:query "maildir:/TDNDE/* AND label:proj:6825 AND label:client:airbus"
|
||||
:key ?A)
|
||||
(:name "Bombardier-3154"
|
||||
:query "maildir:/TDNDE/* AND label:proj:3154 AND label:client:bombardier"
|
||||
:key ?B)
|
||||
(:name "Daher-5304"
|
||||
:query "maildir:/TDNDE/* AND label:proj:5304 AND label:client:daher"
|
||||
:key ?D)
|
||||
(:name "TDNDE"
|
||||
:query "maildir:/TDNDE/* AND label:tdnde"
|
||||
:key ?T)))
|
||||
|
||||
;; SMTP
|
||||
(smtpmail-smtp-user . "tpouplier@tdnde.com")
|
||||
(smtpmail-stream-type . ssl)
|
||||
(smtpmail-smtp-server . "smtp.hostinger.com")
|
||||
(smtpmail-smtp-service . 465)))
|
||||
;; Other context here
|
||||
;; (make-mu4e-context ...)
|
||||
)
|
||||
)
|
||||
,#+begin_signature
|
||||
--
|
||||
,*Thierry Pouplier* \\
|
||||
(514) 887-1674 | thierrypouplier@gmail.com
|
||||
,#+end_signature"))))) ;; End of mu4e-contexts list
|
||||
|
||||
(setq mu4e-context-policy 'pick-first
|
||||
mu4e-compose-context-policy 'ask)
|
||||
|
||||
(require 'mu4e-icalendar)
|
||||
(mu4e-icalendar-setup)
|
||||
|
||||
(setq mu4e-icalendar-diary-file nil)
|
||||
|
||||
(setq gnus-icalendar-org-capture-file +org-capture-journal-file
|
||||
gnus-icalendar-org-capture-headline '("Journal"))
|
||||
|
||||
(gnus-icalendar-org-setup)
|
||||
)
|
||||
|
||||
;; Separate after! blocks for clarity
|
||||
(after! mu4e
|
||||
(setq mu4e-modeline-support nil))
|
||||
|
||||
(after! mu4e
|
||||
;; restore label key
|
||||
(evil-define-key 'normal mu4e-headers-mode-map"l" #'mu4e-headers-mark-for-label)
|
||||
(evil-define-key 'normal mu4e-headers-mode-map "l" #'mu4e-headers-mark-for-label)
|
||||
(evil-define-key 'visual mu4e-headers-mode-map "l" #'mu4e-headers-mark-for-label)
|
||||
(evil-define-key 'emacs mu4e-headers-mode-map "l" #'mu4e-headers-mark-for-label)
|
||||
|
||||
(evil-define-key 'normal mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)
|
||||
(evil-define-key 'visual mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)
|
||||
(evil-define-key 'emacs mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)
|
||||
)
|
||||
(evil-define-key 'emacs mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)))
|
||||
#+end_src
|
||||
|
||||
* IRC
|
||||
@@ -2248,7 +2325,7 @@ If FILE is nil, refile in the current file."
|
||||
(add-hook 'ediff-prepare-buffer-hook 'org-ediff-prepare-buffer)
|
||||
#+end_src
|
||||
|
||||
* Custom function for reschedulling
|
||||
* Custom function for scheduling
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;;; ============================================================
|
||||
@@ -2697,6 +2774,143 @@ and ensure the standard property drawer exists without overwriting existing data
|
||||
|
||||
#+RESULTS:
|
||||
: gortium/add-ids-to-subtree
|
||||
* Custom function for maintenance
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
;; ---------------------------------------------------------
|
||||
;; 1. THE REUSABLE ENGINE (Domain Agnostic)
|
||||
;; ---------------------------------------------------------
|
||||
(defun my/org-metric-sync-engine (&key prop-name value-current prop-last-done prop-interval target-tag log-label)
|
||||
"Core logic to sync parent metrics to sub-tasks and log changes.
|
||||
PROP-NAME: The property triggering the change (e.g., LAST_KM).
|
||||
VALUE-CURRENT: The new value being set.
|
||||
PROP-LAST-DONE: Sub-task property for 'baseline' (e.g., LAST_DONE_KM).
|
||||
PROP-INTERVAL: Sub-task property for 'frequency' (e.g., INTERVAL_KM).
|
||||
TARGET-TAG: Filter for specific sub-tasks (e.g., SERVICE).
|
||||
LOG-LABEL: The prefix used in the Logbook entry."
|
||||
(save-excursion
|
||||
;; A. Log the update to the Logbook with a timestamp
|
||||
(when log-label
|
||||
(org-add-log-setup 'note (format "%s: %s" log-label value-current) nil 'findpos))
|
||||
|
||||
;; B. Narrow scope to current header and scan sub-tasks
|
||||
(org-narrow-to-subtree)
|
||||
(org-map-entries
|
||||
(lambda ()
|
||||
(let* ((last-done (string-to-number (or (org-entry-get nil prop-last-done) "0")))
|
||||
(interval (string-to-number (or (org-entry-get nil prop-interval) "0")))
|
||||
(current (string-to-number value-current)))
|
||||
;; Only process tasks that have an interval set
|
||||
(when (> interval 0)
|
||||
(if (>= current (+ last-done interval))
|
||||
(org-todo "TODO")
|
||||
(org-todo "HOLD")))))
|
||||
target-tag)
|
||||
(widen)))
|
||||
|
||||
(defun my/org-metric-prompt-engine (&key state tag prop-parent-metric prop-task-done label-prompt)
|
||||
"Core logic to prompt for values when a task is marked DONE.
|
||||
STATE: The new TODO state (e.g., DONE).
|
||||
TAG: The tag identifying relevant tasks.
|
||||
PROP-PARENT-METRIC: The property on the parent to update (e.g., LAST_KM).
|
||||
PROP-TASK-DONE: The property on the task to update (e.g., LAST_DONE_KM).
|
||||
LABEL-PROMPT: The text shown in the minibuffer."
|
||||
(when (string= state "DONE")
|
||||
(let ((tags (org-get-tags)))
|
||||
(when (member tag tags)
|
||||
(save-excursion
|
||||
;; Inherit parent metric as the default value for the prompt
|
||||
(let* ((current-val (org-entry-get nil prop-parent-metric t))
|
||||
(input-val (read-string (format "%s (default %s): " label-prompt (or current-val "0"))
|
||||
nil nil current-val)))
|
||||
;; 1. Update the task property
|
||||
(org-set-property prop-task-done input-val)
|
||||
;; 2. Update the parent property (triggers the sync engine)
|
||||
(save-excursion
|
||||
(when (org-up-heading-safe)
|
||||
(org-set-property prop-parent-metric input-val)))
|
||||
(message "Synchronized %s to %s" label-prompt input-val)))))))
|
||||
|
||||
;; ---------------------------------------------------------
|
||||
;; 2. THE DISPATCHERS (The Switchboard)
|
||||
;; ---------------------------------------------------------
|
||||
(defun my/org-property-change-handler (prop value)
|
||||
"Routes property changes to the correct sync parameters."
|
||||
(cond
|
||||
;; Case: F-150 Odometer
|
||||
((string= prop "LAST_KM")
|
||||
(my/org-metric-sync-engine
|
||||
:prop-name prop :value-current value :prop-last-done "LAST_DONE_KM"
|
||||
:prop-interval "INTERVAL_KM" :target-tag "SERVICE" :log-label "Odometer Update"))))
|
||||
|
||||
;; Case: Equipment/Industrial Hours
|
||||
;; ((string= prop "LAST_HOURS")
|
||||
;; (my/org-metric-sync-engine
|
||||
;; :prop-name prop :value-current value :prop-last-done "LAST_DONE_HOURS"
|
||||
;; :prop-interval "INTERVAL_HOURS" :target-tag "MAINTENANCE" :log-label "Usage Hours Logged"))))
|
||||
|
||||
(defun my/org-todo-state-handler ()
|
||||
"Safely routes DONE completions, catching any argument errors."
|
||||
(interactive)
|
||||
(condition-case err
|
||||
(when (string= org-state "DONE")
|
||||
(my/org-metric-prompt-engine
|
||||
:state "DONE"
|
||||
:tag "SERVICE"
|
||||
:prop-parent-metric "LAST_KM"
|
||||
:prop-task-done "LAST_DONE_KM"
|
||||
:label-prompt "Current Odometer"))
|
||||
(error (message "Handler suppressed error: %s" (error-message-string err)))))
|
||||
)
|
||||
;; (my/org-metric-prompt-engine
|
||||
;; :state org-state :tag "MAINTENANCE" :prop-parent-metric "LAST_HOURS"
|
||||
;; :prop-task-done "LAST_DONE_HOURS" :label-prompt "Equipment Hours"))
|
||||
|
||||
;; ---------------------------------------------------------
|
||||
;; 3. THE HOOKS
|
||||
;; ---------------------------------------------------------
|
||||
(add-hook 'org-after-prop-change-hook #'my/org-property-change-handler)
|
||||
(add-hook 'org-after-todo-state-change-hook #'my/org-todo-state-handler)
|
||||
#+end_src
|
||||
|
||||
* Custom for rescheduling task later
|
||||
#+begin_src emacs-lisp
|
||||
(defun my/org-smart-advance-date ()
|
||||
"Jump to next repeater occurrence or add 1 day.
|
||||
Suppresses all logging, notes, and custom odometer hooks."
|
||||
(interactive)
|
||||
(let ((org-log-done nil)
|
||||
(org-log-repeat nil)
|
||||
(org-todo-repeat-to-state "LOOP")
|
||||
(org-after-todo-state-change-hook nil)
|
||||
(org-treat-insert-todo-log-note nil)
|
||||
(inhibit-modification-hooks t))
|
||||
(let ((is-agenda (derived-mode-p 'org-agenda-mode)))
|
||||
(cond
|
||||
;; Case 1: Task has a repeater (teleport to next date)
|
||||
((if is-agenda
|
||||
(org-agenda-with-point-at-orig-entry nil (org-get-repeat))
|
||||
(org-get-repeat))
|
||||
|
||||
;; This surgical strike prevents the Logbook entry entirely
|
||||
(cl-letf (((symbol-function 'org-add-log-setup) (lambda (&rest _args) nil)))
|
||||
(if is-agenda (org-agenda-todo "DONE") (org-todo "DONE")))
|
||||
|
||||
(message "Silently jumped to next occurrence."))
|
||||
|
||||
;; Case 2: No repeater, fallback to standard +1 day shift
|
||||
(t
|
||||
(if is-agenda
|
||||
(org-agenda-date-later 1)
|
||||
(org-timestamp-change 1 'day))
|
||||
(message "No repeater found: Added 1 day."))))))
|
||||
|
||||
(map! :after org
|
||||
(:map org-mode-map
|
||||
:localleader "L" #'my/org-smart-advance-date)
|
||||
(:map org-agenda-mode-map
|
||||
:localleader "L" #'my/org-smart-advance-date))
|
||||
#+end_src
|
||||
|
||||
* Custom function Open link in other frame
|
||||
|
||||
@@ -3022,4 +3236,3 @@ Need chrome... :(
|
||||
:localleader
|
||||
:desc "Edit Edna rules" "E" #'org-edna-edit))
|
||||
#+end_src
|
||||
|
||||
|
||||
@@ -18,7 +18,9 @@
|
||||
|
||||
(map! :leader
|
||||
(:prefix ("w" . "window")
|
||||
:desc "Minimize window" "O" #'minimize-window))
|
||||
:desc "Minimize window" "O" #'minimize-window)
|
||||
(:prefix ("z" . "Personal")
|
||||
:desc "Hermes Agent" "h" #'gortium/hermes-vterm))
|
||||
|
||||
(use-package! ultra-scroll
|
||||
:init
|
||||
@@ -50,12 +52,11 @@
|
||||
(defalias 'getf #'cl-getf))
|
||||
|
||||
(setq
|
||||
|
||||
org-directory "~/ExoKortex/"
|
||||
+org-capture-todo-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-notes-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-journal-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-emails-file "~/ExoKortex/2-Areas/Meta-Planning/Org/Core/master_list.org"
|
||||
+org-capture-todo-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
+org-capture-notes-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
+org-capture-journal-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
+org-capture-emails-file "~/ExoKortex/3-Telos/5-Kernel/inbox.org"
|
||||
;; +org-capture-central-project-todo-file '"refile.org"
|
||||
;; +org-capture-project-todo-file '"refile.org"
|
||||
org-agenda-files (directory-files-recursively "~/ExoKortex/" "\\.org$")
|
||||
@@ -236,15 +237,34 @@
|
||||
("p" . "Personal commands")
|
||||
("wg" "GTD view"
|
||||
(
|
||||
(agenda "" ((org-agenda-span 'week)))
|
||||
(todo "STRT" ((org-agenda-overriding-header gtd/started-head)))
|
||||
(todo "NEXT" ((org-agenda-overriding-header gtd/next-action-head)))
|
||||
(todo "WAIT" ((org-agenda-overriding-header gtd/waiting-head)))
|
||||
(agenda "" ((org-agenda-span 'week)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "STRT" ((org-agenda-overriding-header gtd/started-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "NEXT" ((org-agenda-overriding-header gtd/next-action-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "WAIT" ((org-agenda-overriding-header gtd/waiting-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
;; (todo "DONE" ((org-agenda-overriding-header gtd/complete-head)))
|
||||
(stuck "" ((org-stuck-projects '("TODO=\"PROJ\"" ("NEXT" "STRT") nil ""))
|
||||
(org-agenda-overriding-header gtd/project-head)))
|
||||
(todo "IDEA" ((org-agenda-overriding-header gtd/someday-head)))
|
||||
(org-agenda-overriding-header gtd/project-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
(todo "IDEA" ((org-agenda-overriding-header gtd/someday-head)
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
))
|
||||
)
|
||||
|
||||
((org-agenda-tag-filter-preset '("+work")))
|
||||
)
|
||||
("pg" "GTD view"
|
||||
@@ -346,10 +366,23 @@
|
||||
)))
|
||||
|
||||
((org-agenda-tag-filter-preset '("+BA_ON_SITE")))
|
||||
)
|
||||
("wA" "Projet Airbus Vision"
|
||||
((agenda ""
|
||||
((org-agenda-span 150)
|
||||
(org-agenda-start-day "2026-05-01")
|
||||
(org-agenda-overriding-header "📅 Projet Airbus Vision")
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
(org-agenda-todo-keyword-format " %-5s") ;; fixed-width TODO
|
||||
(org-agenda-tags-column -100) ;; right-align tags
|
||||
(org-agenda-time-grid nil)
|
||||
)))
|
||||
|
||||
((org-agenda-tag-filter-preset '("+airbus")))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(after! org
|
||||
;; Rust code block setting
|
||||
@@ -357,17 +390,59 @@
|
||||
)
|
||||
|
||||
(after! org
|
||||
(setq
|
||||
(setq org-format-latex-options (plist-put org-format-latex-options :scale 2.0))
|
||||
|
||||
;; LaTeX math preview
|
||||
org-format-latex-options '(:foreground default :background default :scale 2 :html-foreground "Black"
|
||||
:html-background "Transparent" :html-scale 1.0
|
||||
:matchers ("begin" "$1" "$" "$$" "\\(" "\\["))
|
||||
)
|
||||
;; 1. Use XeLaTeX to generate the intermediate file for dvisvgm
|
||||
;; This handles UTF-8 (like long dashes) which standard 'latex' crashes on.
|
||||
(setq org-preview-latex-process-alist
|
||||
'((dvisvgm
|
||||
:programs ("xelatex" "dvisvgm")
|
||||
:description "xdv to svg"
|
||||
:message "rendering %f via xelatex..."
|
||||
:image-input-type "xdv"
|
||||
:image-output-type "svg"
|
||||
:image-size-adjust (1.0 . 1.0)
|
||||
:latex-compiler ("xelatex -interaction nonstopmode -no-pdf -output-directory %o %f")
|
||||
:image-converter ("dvisvgm %f --no-fonts --exact-bbox --scale=%S --output=%O"))))
|
||||
|
||||
(setq org-preview-latex-default-process 'dvisvgm)
|
||||
|
||||
(defun gortium/org-latex-preview-all ()
|
||||
"Render all LaTeX fragments in the buffer."
|
||||
(interactive)
|
||||
(when (derived-mode-p 'org-mode)
|
||||
(org-latex-preview '(16))))
|
||||
|
||||
;; 1.5s delay to ensure Doom font-colors load first
|
||||
;; (add-hook 'org-mode-hook
|
||||
;; (lambda ()
|
||||
;; (run-with-idle-timer 1.5 nil #'gortium/org-latex-preview-all)))
|
||||
)
|
||||
|
||||
(after! ox-latex
|
||||
(setq org-latex-compiler "xelatex"))
|
||||
(setq org-latex-src-block-backend 'listings)
|
||||
(add-to-list 'org-latex-packages-alist '("" "listings") t)
|
||||
(add-to-list 'org-latex-packages-alist '("" "xcolor") t)
|
||||
(add-to-list 'org-latex-listings-langs '(text ""))
|
||||
(setq org-latex-listings-options
|
||||
'(("breaklines" "true")
|
||||
("basicstyle" "\\small\\ttfamily")
|
||||
("frame" "single")
|
||||
("backgroundcolor" "\\color{gray!10}"))))
|
||||
|
||||
(use-package! org-fragtog
|
||||
:hook (org-mode . org-fragtog-mode))
|
||||
|
||||
(defun gortium/org-latex-refresh-on-zoom (&rest _)
|
||||
(when (derived-mode-p 'org-mode)
|
||||
(let ((new-scale (+ 2 (* 0.5 (if (boundp 'text-scale-mode-amount) text-scale-mode-amount 0)))))
|
||||
(setq org-format-latex-options
|
||||
(plist-put org-format-latex-options :scale new-scale))
|
||||
(org-clear-latex-preview)
|
||||
(gortium/org-latex-preview-all))))
|
||||
|
||||
(advice-add 'text-scale-increase :after #'gortium/org-latex-refresh-on-zoom)
|
||||
(advice-add 'text-scale-decrease :after #'gortium/org-latex-refresh-on-zoom)
|
||||
|
||||
(after! org
|
||||
(setq
|
||||
@@ -446,7 +521,7 @@
|
||||
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
|
||||
|
||||
(setq org-roam-directory (file-truename "~/ExoKortex/")
|
||||
org-roam-db-location (file-truename "~/ExoKortex/2-Areas/IT/Roam/org-roam.db")
|
||||
org-roam-db-location (file-truename "~/ExoKortex/1-Soma/2-Areas/IT/Roam/org-roam.db")
|
||||
org-attach-id-dir "assets/"
|
||||
org-roam-dailies-directory "~/ExoKortex/2-Areas/Meta-Planning/Org/Journal/Daily")
|
||||
|
||||
@@ -675,14 +750,14 @@ Handles org-clock and context link capture for tasks."
|
||||
(after! ispell
|
||||
(setq ispell-program-name "hunspell"
|
||||
ispell-dictionary "en_CA,fr_CA"
|
||||
ispell-personal-dictionary "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries/perso.dic")
|
||||
ispell-personal-dictionary "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries/perso.dic")
|
||||
|
||||
;; Set the dictionary path environment variable
|
||||
(setenv "DICPATH" "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries")
|
||||
(setenv "DICPATH" "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries")
|
||||
|
||||
(setq ispell-hunspell-dict-paths-alist
|
||||
'(("fr_CA" "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries/fr_CA.aff")
|
||||
("en_CA" "/home/tpouplier/ExoKortex/2-Areas/IT/Dictionaries/en_CA.aff")))
|
||||
'(("fr_CA" "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries/fr_CA.aff")
|
||||
("en_CA" "/home/tpouplier/ExoKortex/1-Soma/2-Areas/IT/Dictionaries/en_CA.aff")))
|
||||
|
||||
(setq ispell-hunspell-dictionary-alist
|
||||
'(("fr_CA" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil ("-d" "fr_CA") nil utf-8)
|
||||
@@ -805,29 +880,6 @@ Handles org-clock and context link capture for tasks."
|
||||
(add-to-list 'auto-mode-alist '("\\.hledger\\'" . hledger-mode))
|
||||
)
|
||||
|
||||
;; Hook fragtog to org-mode to have editable latex preview
|
||||
(use-package! org-fragtog
|
||||
:hook (org-mode . org-fragtog-mode))
|
||||
|
||||
;; Rescale latex preview when changing font size
|
||||
(defun gortium/org-latex-refresh-on-zoom (&rest _)
|
||||
"Dynamically rescale and refresh all LaTeX previews after text zoom."
|
||||
(when (derived-mode-p 'org-mode)
|
||||
;; Dynamically update scale relative to zoom level
|
||||
(setq org-format-latex-options
|
||||
(plist-put org-format-latex-options
|
||||
:scale (+ 2 (* 0.5 text-scale-mode-amount))
|
||||
))
|
||||
;; Clear all previews
|
||||
(org-clear-latex-preview)
|
||||
;; Re-render all previews
|
||||
(org-latex-preview '(16))
|
||||
))
|
||||
|
||||
(advice-add 'text-scale-increase :after #'gortium/org-latex-refresh-on-zoom)
|
||||
(advice-add 'text-scale-decrease :after #'gortium/org-latex-refresh-on-zoom)
|
||||
(advice-add 'text-scale-set :after #'gortium/org-latex-refresh-on-zoom)
|
||||
|
||||
(use-package! age
|
||||
:demand t
|
||||
:config
|
||||
@@ -891,11 +943,11 @@ Handles org-clock and context link capture for tasks."
|
||||
;; rebind function value for pass to passage
|
||||
(fset #'pass (lambda () (interactive) (passage)))
|
||||
(setq age-program "rage")
|
||||
(setq auth-source-passage-filename (expand-file-name "~/ExoKortex/2-Areas/IT/dotfiles/secrets"))
|
||||
(setq auth-source-passage-filename (expand-file-name "~/ExoKortex/4-Automata/dotfiles/secrets"))
|
||||
(setenv "PASSAGE_IDENTITIES_FILE" (expand-file-name age-default-identity))
|
||||
(setenv "PASSAGE_RECIPIENTS_FILE" (expand-file-name age-default-recipient))
|
||||
(setenv "PASSAGE_AGE" "rage")
|
||||
(setenv "PASSAGE_DIR" (expand-file-name "~/ExoKortex/2-Areas/IT/dotfiles/secrets"))
|
||||
(setenv "PASSAGE_DIR" (expand-file-name "~/ExoKortex/4-Automata/dotfiles/secrets"))
|
||||
)
|
||||
|
||||
(diff-hl-mode +1)
|
||||
@@ -934,7 +986,8 @@ Handles org-clock and context link capture for tasks."
|
||||
deepseek/deepseek-chat-v3-0324:free
|
||||
meta-llama/llama-4-maverick:free
|
||||
mistralai/devstral-2512:free
|
||||
qwen/qwen3-coder:free))
|
||||
qwen/qwen3-coder:free
|
||||
nvidia/nemotron-3-nano-30b-a3b:free))
|
||||
(gptel-make-gemini "Gemini"
|
||||
:key (auth-source-passage-get 'secret "gemini")
|
||||
:stream t
|
||||
@@ -1015,6 +1068,20 @@ DIFF:
|
||||
:desc "GPT generate commit"
|
||||
"g" #'gortium/magit-gptel-generate-commit)
|
||||
|
||||
(after! vterm
|
||||
(defun gortium/hermes-vterm ()
|
||||
"Launch Hermes Agent in vterm via SSH to lazyworkhorse (CLI mode)."
|
||||
(interactive)
|
||||
(let ((buf (get-buffer-create "*hermes*")))
|
||||
(switch-to-buffer buf)
|
||||
(unless (and (eq major-mode 'vterm-mode)
|
||||
(get-buffer-process buf))
|
||||
(vterm-mode)
|
||||
(let ((proc (get-buffer-process buf)))
|
||||
(when proc
|
||||
(process-send-string
|
||||
proc "ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'\n")))))))
|
||||
|
||||
;; set `tramp-direct-async-process' locally in all ssh connections
|
||||
(connection-local-set-profile-variables
|
||||
'remote-direct-async-process
|
||||
@@ -1150,14 +1217,50 @@ DIFF:
|
||||
(setq org-msg-options "html-postamble:nil H:5 num:nil ^:{} toc:nil author:nil email:nil \\n:t"
|
||||
org-msg-startup "hidestars indent inlineimages"
|
||||
org-msg-greeting-fmt "\nBonjour%s,\n\n"
|
||||
;; org-msg-recipient-names '(("jeremy.compostella@gmail.com" . "Jérémy"))
|
||||
org-msg-greeting-name-limit 1
|
||||
org-msg-default-alternatives '((new . (text html))
|
||||
(reply-to-html . (text html))
|
||||
(reply-to-text . (text)))
|
||||
org-msg-convert-citation t
|
||||
org-msg-signature "
|
||||
org-msg-convert-citation t)
|
||||
)
|
||||
|
||||
(after! mu4e
|
||||
(setq mu4e-maildir-shortcuts mu4e-maildir-list mu4e-maildir-initial-input mu4e-maildir-info-delimiter)
|
||||
|
||||
(setq mu4e-contexts
|
||||
(list
|
||||
;; --- CONTEXT: TDNDE ---
|
||||
(make-mu4e-context
|
||||
:name "TDNDE"
|
||||
:match-func (lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p "/TDNDE/" (mu4e-message-field msg :maildir))))
|
||||
:vars
|
||||
'((user-mail-address . "tpouplier@tdnde.com")
|
||||
(user-full-name . "Thierry Pouplier")
|
||||
|
||||
;; Folders
|
||||
(mu4e-sent-folder . "/TDNDE/Sent")
|
||||
(mu4e-drafts-folder . "/TDNDE/Drafts")
|
||||
(mu4e-trash-folder . "/TDNDE/Trash")
|
||||
(mu4e-refile-folder . "/TDNDE/Archive")
|
||||
|
||||
;; Shortcuts
|
||||
(mu4e-maildir-shortcuts . (("/TDNDE/Inbox" . ?i)
|
||||
("/TDNDE/Sent" . ?s)
|
||||
("/TDNDE/Drafts" . ?d)
|
||||
("/TDNDE/Trash" . ?t)
|
||||
("/TDNDE/Archive" . ?a)))
|
||||
|
||||
;; SMTP
|
||||
(smtpmail-smtp-user . "tpouplier@tdnde.com")
|
||||
(smtpmail-stream-type . ssl)
|
||||
(smtpmail-smtp-server . "smtp.hostinger.com")
|
||||
(smtpmail-smtp-service . 465)
|
||||
(mu4e-sent-messages-behavior . sent)
|
||||
|
||||
;; Context-specific signature
|
||||
(org-msg-signature . "
|
||||
Cdlt,
|
||||
|
||||
#+begin_signature
|
||||
@@ -1171,93 +1274,66 @@ Tél. : +1 (450) 667-1884 \\\\
|
||||
Cell. : +1 (514) 887-1674 \\\\
|
||||
tpouplier@tdnde.com \\\\
|
||||
www.tdnde.com \\\\
|
||||
#+end_signature")
|
||||
)
|
||||
#+end_signature")))
|
||||
|
||||
(after! mu4e
|
||||
(setq mu4e-maildir-shortcuts mu4e-maildir-list mu4e-maildir-initial-input mu4e-maildir-info-delimiter)
|
||||
(setq mu4e-contexts
|
||||
(list
|
||||
;; --- CONTEXT: Perso ---
|
||||
(make-mu4e-context
|
||||
:name "TDNDE"
|
||||
:match-func
|
||||
(lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p
|
||||
"/TDNDE/"
|
||||
(mu4e-message-field msg :maildir))))
|
||||
:vars
|
||||
'((user-mail-address . "tpouplier@tdnde.com")
|
||||
(user-full-name . "Thierry Pouplier")
|
||||
:name "Perso"
|
||||
:match-func (lambda (msg)
|
||||
(when msg
|
||||
(string-prefix-p "/Perso/" (mu4e-message-field msg :maildir))))
|
||||
:vars `((user-mail-address . "thierrypouplier@gmail.com")
|
||||
(user-full-name . "Thierry Pouplier")
|
||||
(mu4e-sent-folder . "/Perso/Sent")
|
||||
(mu4e-drafts-folder . "/Perso/Drafts")
|
||||
(mu4e-trash-folder . "/Perso/Trash")
|
||||
(mu4e-refile-folder . "/Perso/Archive")
|
||||
|
||||
(mu4e-maildir-shortcuts . (("/Perso/Inbox" . ?i)
|
||||
("/Perso/Sent" . ?s)
|
||||
("/Perso/Trash" . ?t)
|
||||
("/Perso/Drafts" . ?d)
|
||||
("/Perso/Archive" . ?a)))
|
||||
|
||||
(smtpmail-smtp-user . "thierrypouplier@gmail.com")
|
||||
(smtpmail-smtp-server . "smtp.gmail.com")
|
||||
(smtpmail-smtp-service . 587)
|
||||
(smtpmail-stream-type . starttls)
|
||||
(mu4e-sent-messages-behavior . sent)
|
||||
(org-msg-signature . "
|
||||
Cordialement,
|
||||
|
||||
;; Folders
|
||||
(mu4e-sent-folder . "/TDNDE/Sent")
|
||||
(mu4e-drafts-folder . "/TDNDE/Drafts")
|
||||
(mu4e-trash-folder . "/TDNDE/Trash")
|
||||
(mu4e-refile-folder . "/TDNDE/Archive")
|
||||
|
||||
;; Shortcuts
|
||||
(mu4e-maildir-shortcuts
|
||||
.
|
||||
(("/TDNDE/Inbox" . ?i)
|
||||
("/TDNDE/Sent" . ?s)
|
||||
("/TDNDE/Drafts" . ?d)
|
||||
("/TDNDE/Trash" . ?t)
|
||||
("/TDNDE/Archive" . ?a)))
|
||||
|
||||
;; Bookmarks
|
||||
(mu4e-bookmarks
|
||||
.
|
||||
((:name "Airbus-6825"
|
||||
:query "maildir:/TDNDE/* AND label:proj:6825 AND label:client:airbus"
|
||||
:key ?A)
|
||||
(:name "Bombardier-3154"
|
||||
:query "maildir:/TDNDE/* AND label:proj:3154 AND label:client:bombardier"
|
||||
:key ?B)
|
||||
(:name "Daher-5304"
|
||||
:query "maildir:/TDNDE/* AND label:proj:5304 AND label:client:daher"
|
||||
:key ?D)
|
||||
(:name "TDNDE"
|
||||
:query "maildir:/TDNDE/* AND label:tdnde"
|
||||
:key ?T)))
|
||||
|
||||
;; SMTP
|
||||
(smtpmail-smtp-user . "tpouplier@tdnde.com")
|
||||
(smtpmail-stream-type . ssl)
|
||||
(smtpmail-smtp-server . "smtp.hostinger.com")
|
||||
(smtpmail-smtp-service . 465)))
|
||||
;; Other context here
|
||||
;; (make-mu4e-context ...)
|
||||
)
|
||||
)
|
||||
#+begin_signature
|
||||
--
|
||||
*Thierry Pouplier* \\
|
||||
(514) 887-1674 | thierrypouplier@gmail.com
|
||||
#+end_signature"))))) ;; End of mu4e-contexts list
|
||||
|
||||
(setq mu4e-context-policy 'pick-first
|
||||
mu4e-compose-context-policy 'ask)
|
||||
|
||||
(require 'mu4e-icalendar)
|
||||
(mu4e-icalendar-setup)
|
||||
|
||||
(setq mu4e-icalendar-diary-file nil)
|
||||
|
||||
(setq gnus-icalendar-org-capture-file +org-capture-journal-file
|
||||
gnus-icalendar-org-capture-headline '("Journal"))
|
||||
|
||||
(gnus-icalendar-org-setup)
|
||||
)
|
||||
|
||||
;; Separate after! blocks for clarity
|
||||
(after! mu4e
|
||||
(setq mu4e-modeline-support nil))
|
||||
|
||||
(after! mu4e
|
||||
;; restore label key
|
||||
(evil-define-key 'normal mu4e-headers-mode-map"l" #'mu4e-headers-mark-for-label)
|
||||
(evil-define-key 'normal mu4e-headers-mode-map "l" #'mu4e-headers-mark-for-label)
|
||||
(evil-define-key 'visual mu4e-headers-mode-map "l" #'mu4e-headers-mark-for-label)
|
||||
(evil-define-key 'emacs mu4e-headers-mode-map "l" #'mu4e-headers-mark-for-label)
|
||||
|
||||
(evil-define-key 'normal mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)
|
||||
(evil-define-key 'visual mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)
|
||||
(evil-define-key 'emacs mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)
|
||||
)
|
||||
(evil-define-key 'emacs mu4e-view-mode-map "l" #'mu4e-view-mark-for-label)))
|
||||
|
||||
(defun gortium-circe-nickserv-password (server)
|
||||
(auth-source-passage-get 'secret "irc"))
|
||||
@@ -1821,6 +1897,138 @@ and ensure the standard property drawer exists without overwriting existing data
|
||||
(lambda () (org-id-get-create))
|
||||
nil 'tree)))
|
||||
|
||||
(after! org
|
||||
;; ---------------------------------------------------------
|
||||
;; 1. THE REUSABLE ENGINE (Domain Agnostic)
|
||||
;; ---------------------------------------------------------
|
||||
(defun my/org-metric-sync-engine (&key prop-name value-current prop-last-done prop-interval target-tag log-label)
|
||||
"Core logic to sync parent metrics to sub-tasks and log changes.
|
||||
PROP-NAME: The property triggering the change (e.g., LAST_KM).
|
||||
VALUE-CURRENT: The new value being set.
|
||||
PROP-LAST-DONE: Sub-task property for 'baseline' (e.g., LAST_DONE_KM).
|
||||
PROP-INTERVAL: Sub-task property for 'frequency' (e.g., INTERVAL_KM).
|
||||
TARGET-TAG: Filter for specific sub-tasks (e.g., SERVICE).
|
||||
LOG-LABEL: The prefix used in the Logbook entry."
|
||||
(save-excursion
|
||||
;; A. Log the update to the Logbook with a timestamp
|
||||
(when log-label
|
||||
(org-add-log-setup 'note (format "%s: %s" log-label value-current) nil 'findpos))
|
||||
|
||||
;; B. Narrow scope to current header and scan sub-tasks
|
||||
(org-narrow-to-subtree)
|
||||
(org-map-entries
|
||||
(lambda ()
|
||||
(let* ((last-done (string-to-number (or (org-entry-get nil prop-last-done) "0")))
|
||||
(interval (string-to-number (or (org-entry-get nil prop-interval) "0")))
|
||||
(current (string-to-number value-current)))
|
||||
;; Only process tasks that have an interval set
|
||||
(when (> interval 0)
|
||||
(if (>= current (+ last-done interval))
|
||||
(org-todo "TODO")
|
||||
(org-todo "HOLD")))))
|
||||
target-tag)
|
||||
(widen)))
|
||||
|
||||
(defun my/org-metric-prompt-engine (&key state tag prop-parent-metric prop-task-done label-prompt)
|
||||
"Core logic to prompt for values when a task is marked DONE.
|
||||
STATE: The new TODO state (e.g., DONE).
|
||||
TAG: The tag identifying relevant tasks.
|
||||
PROP-PARENT-METRIC: The property on the parent to update (e.g., LAST_KM).
|
||||
PROP-TASK-DONE: The property on the task to update (e.g., LAST_DONE_KM).
|
||||
LABEL-PROMPT: The text shown in the minibuffer."
|
||||
(when (string= state "DONE")
|
||||
(let ((tags (org-get-tags)))
|
||||
(when (member tag tags)
|
||||
(save-excursion
|
||||
;; Inherit parent metric as the default value for the prompt
|
||||
(let* ((current-val (org-entry-get nil prop-parent-metric t))
|
||||
(input-val (read-string (format "%s (default %s): " label-prompt (or current-val "0"))
|
||||
nil nil current-val)))
|
||||
;; 1. Update the task property
|
||||
(org-set-property prop-task-done input-val)
|
||||
;; 2. Update the parent property (triggers the sync engine)
|
||||
(save-excursion
|
||||
(when (org-up-heading-safe)
|
||||
(org-set-property prop-parent-metric input-val)))
|
||||
(message "Synchronized %s to %s" label-prompt input-val)))))))
|
||||
|
||||
;; ---------------------------------------------------------
|
||||
;; 2. THE DISPATCHERS (The Switchboard)
|
||||
;; ---------------------------------------------------------
|
||||
(defun my/org-property-change-handler (prop value)
|
||||
"Routes property changes to the correct sync parameters."
|
||||
(cond
|
||||
;; Case: F-150 Odometer
|
||||
((string= prop "LAST_KM")
|
||||
(my/org-metric-sync-engine
|
||||
:prop-name prop :value-current value :prop-last-done "LAST_DONE_KM"
|
||||
:prop-interval "INTERVAL_KM" :target-tag "SERVICE" :log-label "Odometer Update"))))
|
||||
|
||||
;; Case: Equipment/Industrial Hours
|
||||
;; ((string= prop "LAST_HOURS")
|
||||
;; (my/org-metric-sync-engine
|
||||
;; :prop-name prop :value-current value :prop-last-done "LAST_DONE_HOURS"
|
||||
;; :prop-interval "INTERVAL_HOURS" :target-tag "MAINTENANCE" :log-label "Usage Hours Logged"))))
|
||||
|
||||
(defun my/org-todo-state-handler ()
|
||||
"Safely routes DONE completions, catching any argument errors."
|
||||
(interactive)
|
||||
(condition-case err
|
||||
(when (string= org-state "DONE")
|
||||
(my/org-metric-prompt-engine
|
||||
:state "DONE"
|
||||
:tag "SERVICE"
|
||||
:prop-parent-metric "LAST_KM"
|
||||
:prop-task-done "LAST_DONE_KM"
|
||||
:label-prompt "Current Odometer"))
|
||||
(error (message "Handler suppressed error: %s" (error-message-string err)))))
|
||||
)
|
||||
;; (my/org-metric-prompt-engine
|
||||
;; :state org-state :tag "MAINTENANCE" :prop-parent-metric "LAST_HOURS"
|
||||
;; :prop-task-done "LAST_DONE_HOURS" :label-prompt "Equipment Hours"))
|
||||
|
||||
;; ---------------------------------------------------------
|
||||
;; 3. THE HOOKS
|
||||
;; ---------------------------------------------------------
|
||||
(add-hook 'org-after-prop-change-hook #'my/org-property-change-handler)
|
||||
(add-hook 'org-after-todo-state-change-hook #'my/org-todo-state-handler)
|
||||
|
||||
(defun my/org-smart-advance-date ()
|
||||
"Jump to next repeater occurrence or add 1 day.
|
||||
Suppresses all logging, notes, and custom odometer hooks."
|
||||
(interactive)
|
||||
(let ((org-log-done nil)
|
||||
(org-log-repeat nil)
|
||||
(org-todo-repeat-to-state "LOOP")
|
||||
(org-after-todo-state-change-hook nil)
|
||||
(org-treat-insert-todo-log-note nil)
|
||||
(inhibit-modification-hooks t))
|
||||
(let ((is-agenda (derived-mode-p 'org-agenda-mode)))
|
||||
(cond
|
||||
;; Case 1: Task has a repeater (teleport to next date)
|
||||
((if is-agenda
|
||||
(org-agenda-with-point-at-orig-entry nil (org-get-repeat))
|
||||
(org-get-repeat))
|
||||
|
||||
;; This surgical strike prevents the Logbook entry entirely
|
||||
(cl-letf (((symbol-function 'org-add-log-setup) (lambda (&rest _args) nil)))
|
||||
(if is-agenda (org-agenda-todo "DONE") (org-todo "DONE")))
|
||||
|
||||
(message "Silently jumped to next occurrence."))
|
||||
|
||||
;; Case 2: No repeater, fallback to standard +1 day shift
|
||||
(t
|
||||
(if is-agenda
|
||||
(org-agenda-date-later 1)
|
||||
(org-timestamp-change 1 'day))
|
||||
(message "No repeater found: Added 1 day."))))))
|
||||
|
||||
(map! :after org
|
||||
(:map org-mode-map
|
||||
:localleader "L" #'my/org-smart-advance-date)
|
||||
(:map org-agenda-mode-map
|
||||
:localleader "L" #'my/org-smart-advance-date))
|
||||
|
||||
;; Open link in another frame
|
||||
(defun gortium/org-open-link-in-other-frame ()
|
||||
"Open the Org link at point in another frame."
|
||||
|
||||
55
hypr/.config/hypr/hosts/laptop.conf
Normal file
55
hypr/.config/hypr/hosts/laptop.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
# Laptop (Ingenuity/Valkyrie) — NVIDIA + external monitors
|
||||
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
$LAPTOP=eDP-1
|
||||
$EXTERNAL_L1=DP-4
|
||||
$EXTERNAL_R1=DP-5
|
||||
$EXTERNAL_L2=DP-6
|
||||
$EXTERNAL_R2=DP-7
|
||||
|
||||
monitor=$LAPTOP, 1920x1080, 0x0, 1
|
||||
monitor=DP-3, 1920x1080, 1920x0, 1
|
||||
|
||||
monitor=$EXTERNAL_L1, 1920x1080, 0x-1080, 1, transform, 0
|
||||
monitor=$EXTERNAL_L2, 1920x1080,0x-1080,1,transform,0
|
||||
monitor=$EXTERNAL_R1, 1920x1080, 1920x-1480, 1, transform, 1
|
||||
monitor=$EXTERNAL_R2, 1920x1080,1920x-1480,1,transform,1
|
||||
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSOR,1
|
||||
env = GBM_BACKEND,nvidia-drm
|
||||
env = WLR_RENDERER_ALLOW_SOFTWARE,1
|
||||
|
||||
####################
|
||||
### WORKSPACES ###
|
||||
####################
|
||||
|
||||
workspace = 1, name:short-1, monitor:DP-4
|
||||
workspace = 2, name:short-2, monitor:DP-4
|
||||
workspace = 3, name:long-1, monitor:DP-5
|
||||
workspace = 4, name:long-2, monitor:DP-5
|
||||
workspace = 5, name:smoll, monitor:eDP-1
|
||||
workspace = special:tools, layout:dwindle, gapsin:0
|
||||
|
||||
### WALLPAPER ###
|
||||
|
||||
exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs $LAPTOP
|
||||
exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs $EXTERNAL_L1
|
||||
exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs $EXTERNAL_L2
|
||||
exec-once = swww img ~/.config/wallpapers/buck_head.jpg --outputs $EXTERNAL_R1
|
||||
exec-once = swww img ~/.config/wallpapers/buck_head.jpg --outputs $EXTERNAL_R2
|
||||
|
||||
####################
|
||||
### MODIFIER ###
|
||||
####################
|
||||
|
||||
$mainMod = SUPER
|
||||
|
||||
46
hypr/.config/hypr/hosts/uconsole.conf
Normal file
46
hypr/.config/hypr/hosts/uconsole.conf
Normal file
@@ -0,0 +1,46 @@
|
||||
# uConsole CM5 — DSI display
|
||||
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
monitor=DSI-2, 720x1280, 0x0, 1, transform, 3
|
||||
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
env = WLR_NO_HARDWARE_CURSOR,1
|
||||
|
||||
####################
|
||||
### KEYBOARD ###
|
||||
####################
|
||||
|
||||
# The key with the house icon (between Fn and left Alt) IS Super_L.
|
||||
# On uConsole: that bottom-row key left of spacebar = SUPER.
|
||||
# If it doesn't work, use ALT instead:
|
||||
# $mainMod = ALT (affects ALL binds below)
|
||||
#
|
||||
# Additional ALT bindings for convenience (work alongside SUPER):
|
||||
# Note: SUPER+KEY and ALT+KEY both trigger the same action
|
||||
|
||||
####################
|
||||
### WORKSPACES ###
|
||||
####################
|
||||
|
||||
workspace = 1, name:short-1, monitor:DSI-2
|
||||
workspace = 2, name:short-2, monitor:DSI-2
|
||||
workspace = 3, name:long-1, monitor:DSI-2
|
||||
|
||||
####################
|
||||
### AUTOSTART ###
|
||||
####################
|
||||
|
||||
exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs DSI-2
|
||||
|
||||
####################
|
||||
### MODIFIER ###
|
||||
####################
|
||||
|
||||
$mainMod = CTRL ALT
|
||||
|
||||
195
hypr/.config/hypr/hyprland.conf
Normal file → Executable file
195
hypr/.config/hypr/hyprland.conf
Normal file → Executable file
@@ -1,52 +1,14 @@
|
||||
# This is an example Hyprland config file.
|
||||
# Refer to the wiki for more information.
|
||||
# https://wiki.hyprland.org/Configuring/Configuring-Hyprland/
|
||||
# Common Hyprland configuration — shared across all hosts
|
||||
# Host-specific settings (monitors, env, workspaces) in host/monitors.conf
|
||||
|
||||
# Please note not all available settings / options are set here.
|
||||
# For a full list, see the wiki
|
||||
|
||||
# You can split this configuration into multiple files
|
||||
# Create your files separately and then link them to this file like this:
|
||||
# source = ~/.config/hypr/myColors.conf
|
||||
source = ~/.cache/wal/colors-hyprland.conf
|
||||
|
||||
################
|
||||
### MONITORS ###
|
||||
################
|
||||
|
||||
$LAPTOP=eDP-1
|
||||
$EXTERNAL_L1=DP-4
|
||||
$EXTERNAL_R1=DP-5
|
||||
$EXTERNAL_L2=DP-6
|
||||
$EXTERNAL_R2=DP-7
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Monitors/
|
||||
# Useful command:
|
||||
# hyprctl monitors all
|
||||
## Valkyrie setup
|
||||
# monitor=eDP-1,highres,auto,2 #3200x1800,0x0,2
|
||||
# monitor=HDMI-A-2,2560x1600,auto,1 #1600x0,1 #x-370,1,transform,1
|
||||
## Ingenuity setup
|
||||
monitor=$LAPTOP, 1920x1080, 0x0, 1
|
||||
monitor=DP-3, 1920x1080, 1920x0, 1 # HDMI screen
|
||||
# Horizontal setup
|
||||
#monitor=DP-4,1920x1080,-960x-1080,1 # Left screen
|
||||
#monitor=DP-6,1920x1080,-960x-1080,1 # Left screen
|
||||
#monitor=DP-5,1920x1080,960x-1080,1 # Right screen
|
||||
#monitor=DP-7,1920x1080,960x-1080,1 # Right screen
|
||||
# Vertical setup
|
||||
monitor=$EXTERNAL_L1, 1920x1080, 0x-1080, 1, transform, 0 # Left screen
|
||||
monitor=$EXTERNAL_L2, 1920x1080,0x-1080,1,transform,0 # Left screen
|
||||
monitor=$EXTERNAL_R1, 1920x1080, 1920x-1480, 1, transform, 1 # Right screen
|
||||
monitor=$EXTERNAL_R2, 1920x1080,1920x-1480,1,transform,1 # Right screen
|
||||
source = mocha.conf
|
||||
# source = ~/.cache/wal/colors-hyprland.conf (disabled — no pywal on uConsole)
|
||||
source = hosts/monitors.conf
|
||||
|
||||
###################
|
||||
### MY PROGRAMS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
|
||||
# Set programs that you use
|
||||
$terminal = kitty
|
||||
$editor = emacsclient -c -a emacs
|
||||
$menu = wofi --show drun
|
||||
@@ -58,84 +20,48 @@ $monitoring = kitty btop
|
||||
### AUTOSTART ###
|
||||
#################
|
||||
|
||||
# Autostart necessary processes (like notifications daemons, status bars, etc.)
|
||||
# Or execute your favorite apps at launch like this:
|
||||
|
||||
# exec-once = $terminal
|
||||
# exec-once = nm-applet &
|
||||
exec = hyprshade auto
|
||||
exec-once = udiskie
|
||||
exec-once = waybar
|
||||
exec-once = swww-daemon
|
||||
exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs $LAPTOP
|
||||
exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs $EXTERNAL_L1
|
||||
exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs $EXTERNAL_L2
|
||||
exec-once = swww img ~/.config/wallpapers/buck_head.jpg --outputs $EXTERNAL_R1
|
||||
exec-once = swww img ~/.config/wallpapers/buck_head.jpg --outputs $EXTERNAL_R2
|
||||
exec-once = swaync
|
||||
exec-once = hypridle
|
||||
exec-once = hyprlock
|
||||
exec-once = /usr/bin/emacs --daemon
|
||||
exec-once = emacs --daemon
|
||||
exec-once = dbus-update-activation-environment --systemd HYPRLAND_INSTANCE_SIGNATURE
|
||||
|
||||
#############################
|
||||
### ENVIRONMENT VARIABLES ###
|
||||
#############################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Environment-variables/
|
||||
|
||||
env = XCURSOR_SIZE,24
|
||||
env = HYPRCURSOR_SIZE,24
|
||||
env = LIBVA_DRIVER_NAME,nvidia
|
||||
env = __GLX_VENDOR_LIBRARY_NAME,nvidia
|
||||
env = WLR_NO_HARDWARE_CURSOR,1
|
||||
env = XDG_SESSION_TYPE,wayland
|
||||
env = GBM_BACKEND,nvidia-drm
|
||||
env = WLR_RENDERER_ALLOW_SOFTWARE,1
|
||||
|
||||
#####################
|
||||
### LOOK AND FEEL ###
|
||||
#####################
|
||||
|
||||
# Refer to https://wiki.hyprland.org/Configuring/Variables/
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||
general {
|
||||
gaps_in = 7.5
|
||||
gaps_out = 15
|
||||
|
||||
border_size = 2
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
|
||||
col.active_border = $color1 $color1 $color2 45deg
|
||||
col.inactive_border = $background
|
||||
|
||||
# Set to true enable resizing windows by clicking and dragging on borders and gaps
|
||||
resize_on_border = false
|
||||
|
||||
# Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
|
||||
allow_tearing = false
|
||||
|
||||
layout = dwindle
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#decoration
|
||||
decoration {
|
||||
rounding = 4
|
||||
|
||||
# Change transparency of focused and unfocused windows
|
||||
active_opacity = 0.9
|
||||
inactive_opacity = 0.75
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#animations
|
||||
animations {
|
||||
enabled = true
|
||||
|
||||
# Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
|
||||
|
||||
bezier = myBezier, 0.05, 0.9, 0.1, 1.05
|
||||
|
||||
animation = windows, 1, 1.6, myBezier
|
||||
animation = windowsOut, 1, 1.6, default, popin 80%
|
||||
animation = border, 1, 1.6, default
|
||||
@@ -145,58 +71,37 @@ animations {
|
||||
animation = specialWorkspace, 1, 1.6, myBezier, slidefadevert -10%
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
|
||||
dwindle {
|
||||
pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
|
||||
|
||||
# This prevents the layout from collapsing if you close one window
|
||||
preserve_split = true # You probably want this
|
||||
|
||||
# 0 -> follow mouse, 1 -> always left/top, 2 -> always right/bottom
|
||||
preserve_split = true
|
||||
force_split = 2
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
master {
|
||||
new_status = master
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#misc
|
||||
misc {
|
||||
force_default_wallpaper = 0 # Set to 0 or 1 to disable the anime mascot wallpapers
|
||||
disable_hyprland_logo = true # If true disables the random hyprland logo / anime girl background. :(
|
||||
force_default_wallpaper = 0
|
||||
disable_hyprland_logo = true
|
||||
}
|
||||
|
||||
|
||||
#############
|
||||
### INPUT ###
|
||||
#############
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#input
|
||||
input {
|
||||
kb_layout = us,ca #,halmak
|
||||
kb_layout = us,ca
|
||||
kb_options = grp:win_space_toggle, ctrl:nocaps
|
||||
# kb_variant =
|
||||
# kb_model =
|
||||
# kb_rules =
|
||||
|
||||
follow_mouse = 1
|
||||
|
||||
sensitivity = 0.5 # -1.0 - 1.0, 0 means no modification.
|
||||
|
||||
sensitivity = 0.5
|
||||
touchpad {
|
||||
natural_scroll = true
|
||||
disable_while_typing = true
|
||||
}
|
||||
}
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#gestures
|
||||
gestures {
|
||||
# workspace_swipe = false
|
||||
}
|
||||
gestures {}
|
||||
|
||||
# Example per-device config
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
|
||||
device {
|
||||
name = epic-mouse-v1
|
||||
sensitivity = -0.5
|
||||
@@ -206,68 +111,54 @@ device {
|
||||
### KEYBINDINGS ###
|
||||
###################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Keywords/
|
||||
$mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
$mainMod = CTRL ALT
|
||||
|
||||
# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
|
||||
bind = $mainMod, T, exec, $terminal
|
||||
bind = $mainMod, D, killactive,
|
||||
bind = $mainMod SHIFT, Q, exit,
|
||||
bind = $mainMod, U, exec, ~/ExoKortex/2-Areas/IT/dotfiles/scripts/make_all.sh
|
||||
bind = $mainMod, U, exec, ~/ExoKortex/4-Automata/dotfiles/scripts/make_all.sh
|
||||
bind = $mainMod, M, exec, $monitoring
|
||||
bind = $mainMod, E, exec, $editor
|
||||
bind = $mainMod, V, togglefloating,
|
||||
bind = $mainMod, R, exec, $menu
|
||||
bind = $mainMod, Z, exec, $zen
|
||||
#bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, P, togglesplit, # dwindle
|
||||
bind = $mainMod, P, pseudo,
|
||||
bind = $mainMod, N, movecurrentworkspacetomonitor, -1
|
||||
bind = $mainMod SHIFT, N, movecurrentworkspacetomonitor, +1
|
||||
bind = $mainMod, X, swapwindow
|
||||
bind = $mainMod, B, exec, python /home/tpouplier/ExoKortex/1-Projects/Perso/recordntrans/record_transcribe.py
|
||||
# bind = $mainMod, G, exec, nerd-dictation end
|
||||
bind = $mainMod, B, exec, python /home/tpouplier/ExoKortex/4-Automata/recordntrans/record_transcribe.py
|
||||
bind = $mainMod, A, exec, $music
|
||||
bind = $mainMod, C, exec, emacsclient -n -c -e '(gortium/hermes-vterm)'
|
||||
|
||||
# Full screen
|
||||
bind = SUPER, F, fullscreen
|
||||
|
||||
# Screenshot
|
||||
bind = SUPER, F, fullscreen
|
||||
bind = , PRINT, exec, hyprshot -m output
|
||||
bind = $mainMod, PRINT, exec, hyprshot -m window
|
||||
bind = shift, PRINT, exec, hyprshot -m region
|
||||
|
||||
# hyprlock
|
||||
bind = $mainMod, o, exec, hyprlock
|
||||
|
||||
# Move focus with mainMod + arrow keys
|
||||
bind = $mainMod, h, movefocus, l
|
||||
bind = $mainMod, j, movefocus, d
|
||||
bind = $mainMod, k, movefocus, u
|
||||
bind = $mainMod, l, movefocus, r
|
||||
|
||||
# Forward and reverse cycle (to focus floating)
|
||||
bind = $mainMod, Tab, cyclenext
|
||||
bind = $mainMod SHIFT, Tab, cyclenext, prev
|
||||
|
||||
# Resize windows
|
||||
bind = $mainMod CTRL, l, resizeactive, 20 0
|
||||
bind = $mainMod CTRL, h, resizeactive, -20 0
|
||||
bind = $mainMod CTRL, k, resizeactive, 0 -20
|
||||
bind = $mainMod CTRL, j, resizeactive, 0 20
|
||||
|
||||
# Swap window position
|
||||
bind = $mainMod SHIFT, h, swapwindow, l
|
||||
bind = $mainMod SHIFT, j, swapwindow, d
|
||||
bind = $mainMod SHIFT, k, swapwindow, u
|
||||
bind = $mainMod SHIFT, l, swapwindow, r
|
||||
|
||||
# Move floating window
|
||||
bind = $mainMod SHIFT, l, moveactive, 100 0
|
||||
bind = $mainMod SHIFT, h, moveactive, -100 0
|
||||
bind = $mainMod SHIFT, k, moveactive, 0 -100
|
||||
bind = $mainMod SHIFT, j, moveactive, 0 100
|
||||
|
||||
# Switch workspaces with mainMod + [0-9]
|
||||
bind = $mainMod, 1, workspace, 1
|
||||
bind = $mainMod, 2, workspace, 2
|
||||
bind = $mainMod, 3, workspace, 3
|
||||
@@ -279,7 +170,6 @@ bind = $mainMod, 8, workspace, 8
|
||||
bind = $mainMod, 9, workspace, 9
|
||||
bind = $mainMod, 0, workspace, 10
|
||||
|
||||
# Move active window to a workspace with mainMod + SHIFT + [0-9]
|
||||
bind = $mainMod SHIFT, 1, movetoworkspace, 1
|
||||
bind = $mainMod SHIFT, 2, movetoworkspace, 2
|
||||
bind = $mainMod SHIFT, 3, movetoworkspace, 3
|
||||
@@ -291,19 +181,15 @@ bind = $mainMod SHIFT, 8, movetoworkspace, 8
|
||||
bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, tools
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:tools
|
||||
|
||||
# Scroll through existing workspaces with mainMod + scroll
|
||||
bind = $mainMod, mouse_down, workspace, e+1
|
||||
bind = $mainMod, mouse_up, workspace, e-1
|
||||
|
||||
# Move/resize windows with mainMod + LMB/RMB and dragging
|
||||
bindm = $mainMod, mouse:272, movewindow
|
||||
bindm = $mainMod, mouse:273, resizewindow
|
||||
|
||||
# Laptop multimedia keys for volume and LCD brightness
|
||||
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
|
||||
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
|
||||
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
|
||||
@@ -311,13 +197,11 @@ bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
|
||||
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
|
||||
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-
|
||||
|
||||
# Requires playerctl
|
||||
bindl = , XF86AudioNext, exec, playerctl next
|
||||
bindl = , XF86AudioPause, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPlay, exec, playerctl play-pause
|
||||
bindl = , XF86AudioPrev, exec, playerctl previous
|
||||
|
||||
# Emacs-everywhere
|
||||
bind = $mainMod, W, exec, emacsclient --eval '(thanos/type)'
|
||||
windowrule {
|
||||
name = float-emacs
|
||||
@@ -325,45 +209,16 @@ windowrule {
|
||||
float = true
|
||||
}
|
||||
|
||||
# Play/Pause
|
||||
# bind = $mainMod, P, exec, playerctl play-pause
|
||||
|
||||
# Next Track
|
||||
# bind = $mainmod SHIFT, L, exec, playerctl next
|
||||
|
||||
# Previous Track
|
||||
# bind = $mainmod SHIFT, H, exec, playerctl previous
|
||||
|
||||
# Volume Up (player volume)
|
||||
# bind = $mainmod , U, exec, playerctl volume 0.05+
|
||||
|
||||
# Volume Down (player volume)
|
||||
# bind = $mainmod, D, exec, playerctl volume 0.05-
|
||||
|
||||
# Stop Playback
|
||||
# bind = $mainmod, S, exec, playerctl stop
|
||||
|
||||
##############################
|
||||
### WINDOWS AND WORKSPACES ###
|
||||
##############################
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
|
||||
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules
|
||||
|
||||
# Example windowrule v1
|
||||
# windowrule = float, ^(kitty)$
|
||||
|
||||
# Example windowrule v2
|
||||
# windowrule = float,class:^(kitty)$,title:^(kitty)$
|
||||
|
||||
# Ignore maximize requests from apps. You'll probably like this.
|
||||
windowrule {
|
||||
name = suppress-maximize-events
|
||||
match:class = .*
|
||||
suppress_event = maximize
|
||||
}
|
||||
|
||||
# Fix some dragging issues with XWayland
|
||||
windowrule {
|
||||
name = nofocus-xwayland-float
|
||||
match:class = ^$
|
||||
@@ -375,15 +230,7 @@ windowrule {
|
||||
no_focus = true
|
||||
}
|
||||
|
||||
workspace = 1, name:short-1, monitor:DP-4 # Left screen
|
||||
workspace = 2, name:short-2, monitor:DP-4 # Left screen
|
||||
workspace = 3, name:long-1, monitor:DP-5 # Right screen
|
||||
workspace = 4, name:long-2, monitor:DP-5 # Right screen
|
||||
workspace = 5, name:smoll, monitor:eDP-1 # Laptop screen
|
||||
#workspace = 4, name:windows, monitor:DP-4, on-created-empty:VBoxManage startvm "Windows 11"
|
||||
workspace = special:tools, layout:dwindle, gapsin:0
|
||||
|
||||
# Top Left: btop
|
||||
# Dashboard windows for special workspace
|
||||
windowrule {
|
||||
name = dashboard-btop
|
||||
match:class = ^(btop)$
|
||||
@@ -391,7 +238,6 @@ windowrule {
|
||||
workspace = special:tools
|
||||
}
|
||||
|
||||
# Top Right: ncspot
|
||||
windowrule {
|
||||
name = dashboard-ncspot
|
||||
match:class = ^(ncspot)$
|
||||
@@ -399,7 +245,6 @@ windowrule {
|
||||
workspace = special:tools
|
||||
}
|
||||
|
||||
# Bottom Left: ncpamixer
|
||||
windowrule {
|
||||
name = dashboard-ncpamixer
|
||||
match:class = ^(ncpamixer)$
|
||||
@@ -407,7 +252,6 @@ windowrule {
|
||||
workspace = special:tools
|
||||
}
|
||||
|
||||
# Bottom Right: bluetuith
|
||||
windowrule {
|
||||
name = dashboard-bluetuith
|
||||
match:class = ^(bluetuith)$
|
||||
@@ -415,7 +259,6 @@ windowrule {
|
||||
workspace = special:tools
|
||||
}
|
||||
|
||||
# Bind to launch the suite (Run this once)
|
||||
bind = $mainMod, grave, exec, kitty --class btop btop
|
||||
bind = $mainMod, grave, exec, kitty --class ncspot ncspot
|
||||
bind = $mainMod, grave, exec, kitty --class ncpamixer ncpamixer
|
||||
|
||||
8
hypr/.config/hypr/mocha.conf
Normal file → Executable file
8
hypr/.config/hypr/mocha.conf
Normal file → Executable file
@@ -76,3 +76,11 @@ $mantleAlpha = 181825
|
||||
|
||||
$crust = rgb(11111b)
|
||||
$crustAlpha = 11111b
|
||||
|
||||
# Fallback colors for when pywal hasn't generated colors-hyprland.conf
|
||||
# (sourced by hyprland.conf — $color1/$color2 for active border gradients,
|
||||
# $background for inactive border and general bg usage)
|
||||
$color1 = rgb(cba6f7)
|
||||
$color2 = rgb(f5c2e7)
|
||||
$color3 = rgb(89b4fa)
|
||||
$background = rgb(1e1e2e)
|
||||
|
||||
8
local/.local/share/applications/qet-xephyr.desktop
Normal file
8
local/.local/share/applications/qet-xephyr.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Name=QET (Xephyr)
|
||||
Comment=QElectroTech in nested X server for Wayland compatibility
|
||||
Exec=/home/tpouplier/ExoKortex/4-Automata/dotfiles/scripts/qet-xephyr.sh
|
||||
Icon=qelectrotech
|
||||
Type=Application
|
||||
Categories=Graphics;Engineering;
|
||||
Terminal=false
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
cd ~/ExoKortex/2-Areas/IT/dotfiles/
|
||||
cd ~/ExoKortex/4-Automata/dotfiles/
|
||||
make all
|
||||
if [ $? -eq 0 ]; then
|
||||
notify-send "Dotfiles" "Configuration reloaded successfully!"
|
||||
|
||||
21
scripts/qet-xephyr.sh
Executable file
21
scripts/qet-xephyr.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
# Launch QElectroTech in a nested Xephyr X server with Openbox
|
||||
# Works around Wayland drag-and-drop issue in QET
|
||||
|
||||
XEPHYR_PID=""
|
||||
|
||||
cleanup() {
|
||||
kill $XEPHYR_PID 2>/dev/null
|
||||
exit 0
|
||||
}
|
||||
trap cleanup SIGINT SIGTERM
|
||||
|
||||
Xephyr -screen 1920x1080 :1 -title QET -br &
|
||||
XEPHYR_PID=$!
|
||||
|
||||
sleep 1
|
||||
DISPLAY=:1 openbox &
|
||||
sleep 0.5
|
||||
DISPLAY=:1 qelectrotech &
|
||||
|
||||
wait $XEPHYR_PID
|
||||
@@ -33,7 +33,7 @@ if systemctl --user is-active --quiet rclone_ftp_mount.service; then
|
||||
echo "Rclone service is already running."
|
||||
else
|
||||
echo "Starting the rclone service."
|
||||
systemctl start rclone_ftp_mount.service || { echo "Failed to start the service"; exit 1; }
|
||||
systemctl --user start rclone_ftp_mount.service || { echo "Failed to start the service"; exit 1; }
|
||||
fi
|
||||
|
||||
echo "Post-installation steps for rclone completed successfully."
|
||||
|
||||
16
scripts/scrot-ocr.sh
Executable file
16
scripts/scrot-ocr.sh
Executable file
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
scrot-ocr: Select screen region → OCR → clipboard
|
||||
Deps: grim, slurp, tesseract, wl-clipboard, libnotify
|
||||
set -euo pipefail
|
||||
|
||||
LANG="${1:-eng}"
|
||||
IMG="/tmp/scrot-ocr-$(date +%s).png"
|
||||
|
||||
grim -g "$(slurp -d)" "$IMG"
|
||||
TEXT=$(tesseract "$IMG" stdout -l "$LANG" 2>/dev/null | sed '/^[[:space:]]*$/d')
|
||||
|
||||
echo -n "$TEXT" | wl-copy --paste-once
|
||||
echo "$TEXT"
|
||||
|
||||
notify-send "scrot-ocr" "$(echo "$TEXT" | wc -l) lines copied to clipboard" -t 3000
|
||||
rm -f "$IMG"
|
||||
9
secrets/perso-mail.age
Normal file
9
secrets/perso-mail.age
Normal file
@@ -0,0 +1,9 @@
|
||||
-----BEGIN AGE ENCRYPTED FILE-----
|
||||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IEdoTUQ4QSBSTnZa
|
||||
REtrM2FwSngxY2FRWkdsWWNUU0JETW81eWYwUE9Ndy9TT096UFRnClRzbTJnWEhG
|
||||
WlAvVlhicjA0Um45TFZNL3VQaDBSMHNaWG1TOEthN1RrVlkKLT4gUXFLVUQ9Xnwt
|
||||
Z3JlYXNlIDIiIDdnPmZfQCBEClVpYVcxSEMvbnp0VFptdWtENmdQZUtYK05uUVFO
|
||||
ZWRtCi0tLSBIcGNFcXVKOWhjS3lGZUdNaDd3N2dMN21KT2JhUzIrWHc0UHFOcFlq
|
||||
TWRzClWaMFgCPM9T0pLoh/HyXVwAALd3fPUKll/VFjHa4eJIGjGa36g5lxU7BxTa
|
||||
39fa8FNrSHU=
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
@@ -1,6 +1,5 @@
|
||||
# A TOML linter such as https://taplo.tamasfe.dev/ can use this schema to validate your config.
|
||||
# If you encounter any issues, please make an issue at https://github.com/yazi-rs/schemas.
|
||||
"$schema" = "https://yazi-rs.github.io/schemas/yazi.json"
|
||||
|
||||
[mgr]
|
||||
ratio = [ 1, 4, 3 ]
|
||||
|
||||
37
zsh/.zshrc
37
zsh/.zshrc
@@ -19,6 +19,43 @@ alias emacs="emacsclient -c -a emacs"
|
||||
# Opencode
|
||||
alias oc="opencode"
|
||||
|
||||
# Hermes Agent - SSH directly to remote server
|
||||
hermes() {
|
||||
if [[ -n "$1" ]]; then
|
||||
ssh -t lazyworkhorse \
|
||||
"docker exec -e HERMES_HONCHO_PEER_NAME=$1 -it hermes \
|
||||
/opt/hermes/.venv/bin/hermes --profile $1"
|
||||
else
|
||||
ssh -t lazyworkhorse \
|
||||
"docker exec -e HERMES_HONCHO_PEER_NAME=thierry -it hermes \
|
||||
/opt/hermes/.venv/bin/hermes"
|
||||
fi
|
||||
}
|
||||
|
||||
hermes-cp() {
|
||||
if [ $# -eq 0 ]; then
|
||||
echo "Usage: hermes-cp <file_or_directory> [...]"
|
||||
echo ""
|
||||
echo "Copies files/directories from your Arch laptop into the Hermes"
|
||||
echo "agent container at /opt/data/home/ preserving directory structure."
|
||||
echo ""
|
||||
echo "Examples:"
|
||||
echo " hermes-cp document.pdf # single file"
|
||||
echo " hermes-cp *.pdf # multiple files (glob)"
|
||||
echo " hermes-cp manuals/ # whole directory"
|
||||
echo " hermes-cp manuals/ keyence-docs/ # multiple items"
|
||||
echo ""
|
||||
echo "To copy to a different destination inside the container:"
|
||||
echo " tar -czf - . | ssh gortium@lazyworkhorse \\"
|
||||
echo " \"docker exec -i hermes sh -c 'cd /opt/data/projects && tar -xzf -'\""
|
||||
return 1
|
||||
fi
|
||||
# tar everything into a single SSH pipe, extract inside container
|
||||
# Supports: single files, directories, glob patterns, mixed args
|
||||
tar -czf - "$@" | ssh gortium@lazyworkhorse \
|
||||
"docker exec -i hermes sh -c 'cd /opt/data/home && tar -xzf -'"
|
||||
}
|
||||
|
||||
# Yazi
|
||||
alias y="yazi"
|
||||
function yy() {
|
||||
|
||||
Reference in New Issue
Block a user