Compare commits
34 Commits
ddbc923314
...
feat/disk-
| Author | SHA1 | Date | |
|---|---|---|---|
| 18dd99d798 | |||
| 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 | |||
| 3101834051 | |||
| 8ddcf1de22 | |||
| 15e62ed479 | |||
| a8315e32f1 | |||
| 9cb17ede39 | |||
| cd60b775f5 | |||
| da85946d6a | |||
| 24fcd48036 |
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
|
||||
|
||||
@@ -1,18 +1,18 @@
|
||||
#? Config file for btop v. 1.4.4
|
||||
#? Config file for btop v.1.4.6
|
||||
|
||||
#* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes.
|
||||
#* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes"
|
||||
color_theme = "/usr/share/btop/themes/everforest-dark-medium.theme"
|
||||
|
||||
#* If the theme set background should be shown, set to False if you want terminal background transparency.
|
||||
theme_background = False
|
||||
theme_background = false
|
||||
|
||||
#* Sets if 24-bit truecolor should be used, will convert 24-bit colors to 256 color (6x6x6 color cube) if false.
|
||||
truecolor = True
|
||||
truecolor = true
|
||||
|
||||
#* Set to true to force tty mode regardless if a real tty has been detected or not.
|
||||
#* Will force 16-color mode and TTY theme, set all graph symbols to "tty" and swap out other non tty friendly symbols.
|
||||
force_tty = False
|
||||
force_tty = false
|
||||
|
||||
#* Define presets for the layout of the boxes. Preset 0 is always all boxes shown with default settings. Max 9 presets.
|
||||
#* Format: "box_name:P:G,box_name:P:G" P=(0 or 1) for alternate positions, G=graph symbol to use for box.
|
||||
@@ -22,10 +22,13 @@ presets = "cpu:1:default,proc:0:default cpu:0:default,mem:0:default,net:0:defaul
|
||||
|
||||
#* Set to True to enable "h,j,k,l,g,G" keys for directional control in lists.
|
||||
#* Conflicting keys for h:"help" and k:"kill" is accessible while holding shift.
|
||||
vim_keys = True
|
||||
vim_keys = true
|
||||
|
||||
#* Rounded corners on boxes, is ignored if TTY mode is ON.
|
||||
rounded_corners = True
|
||||
rounded_corners = true
|
||||
|
||||
#* Use terminal synchronized output sequences to reduce flickering on supported terminals.
|
||||
terminal_sync = true
|
||||
|
||||
#* Default symbols to use for graph creation, "braille", "block" or "tty".
|
||||
#* "braille" offers the highest resolution but might not be included in all fonts.
|
||||
@@ -60,37 +63,40 @@ update_ms = 2000
|
||||
proc_sorting = "cpu lazy"
|
||||
|
||||
#* Reverse sorting order, True or False.
|
||||
proc_reversed = False
|
||||
proc_reversed = false
|
||||
|
||||
#* Show processes as a tree.
|
||||
proc_tree = True
|
||||
proc_tree = true
|
||||
|
||||
#* Use the cpu graph colors in the process list.
|
||||
proc_colors = True
|
||||
proc_colors = true
|
||||
|
||||
#* Use a darkening gradient in the process list.
|
||||
proc_gradient = True
|
||||
proc_gradient = true
|
||||
|
||||
#* If process cpu usage should be of the core it's running on or usage of the total available cpu power.
|
||||
proc_per_core = True
|
||||
proc_per_core = true
|
||||
|
||||
#* Show process memory as bytes instead of percent.
|
||||
proc_mem_bytes = True
|
||||
proc_mem_bytes = true
|
||||
|
||||
#* Show cpu graph for each process.
|
||||
proc_cpu_graphs = True
|
||||
proc_cpu_graphs = true
|
||||
|
||||
#* Use /proc/[pid]/smaps for memory information in the process info box (very slow but more accurate)
|
||||
proc_info_smaps = False
|
||||
proc_info_smaps = false
|
||||
|
||||
#* Show proc box on left side of screen instead of right.
|
||||
proc_left = False
|
||||
proc_left = false
|
||||
|
||||
#* (Linux) Filter processes tied to the Linux kernel(similar behavior to htop).
|
||||
proc_filter_kernel = False
|
||||
proc_filter_kernel = false
|
||||
|
||||
#* In tree-view, always accumulate child process resources in the parent process.
|
||||
proc_aggregate = True
|
||||
proc_aggregate = true
|
||||
|
||||
#* Should cpu and memory usage display be preserved for dead processes when paused.
|
||||
keep_dead_proc_usage = false
|
||||
|
||||
#* Sets the CPU stat shown in upper half of the CPU graph, "total" is always available.
|
||||
#* Select from a list of detected attributes from the options menu.
|
||||
@@ -104,25 +110,28 @@ cpu_graph_lower = "Auto"
|
||||
show_gpu_info = "Auto"
|
||||
|
||||
#* Toggles if the lower CPU graph should be inverted.
|
||||
cpu_invert_lower = True
|
||||
cpu_invert_lower = true
|
||||
|
||||
#* Set to True to completely disable the lower CPU graph.
|
||||
cpu_single_graph = False
|
||||
cpu_single_graph = false
|
||||
|
||||
#* Show cpu box at bottom of screen instead of top.
|
||||
cpu_bottom = False
|
||||
cpu_bottom = false
|
||||
|
||||
#* Shows the system uptime in the CPU box.
|
||||
show_uptime = True
|
||||
show_uptime = true
|
||||
|
||||
#* Shows the CPU package current power consumption in watts. Requires running `make setcap` or `make setuid` or running with sudo.
|
||||
show_cpu_watts = true
|
||||
|
||||
#* Show cpu temperature.
|
||||
check_temp = True
|
||||
check_temp = true
|
||||
|
||||
#* Which sensor to use for cpu temperature, use options menu to select from list of available sensors.
|
||||
cpu_sensor = "Auto"
|
||||
|
||||
#* Show temperatures for cpu cores also if check_temp is True and sensors has been found.
|
||||
show_coretemp = True
|
||||
show_coretemp = true
|
||||
|
||||
#* Set a custom mapping between core and coretemp, can be needed on certain cpus to get correct temperature for correct core.
|
||||
#* Use lm-sensors or similar to see which cores are reporting temperatures on your machine.
|
||||
@@ -134,17 +143,20 @@ cpu_core_map = ""
|
||||
temp_scale = "celsius"
|
||||
|
||||
#* Use base 10 for bits/bytes sizes, KB = 1000 instead of KiB = 1024.
|
||||
base_10_sizes = False
|
||||
base_10_sizes = false
|
||||
|
||||
#* Show CPU frequency.
|
||||
show_cpu_freq = True
|
||||
show_cpu_freq = true
|
||||
|
||||
#* How to calculate CPU frequency, available values: "first", "range", "lowest", "highest" and "average".
|
||||
freq_mode = "first"
|
||||
|
||||
#* Draw a clock at top of screen, formatting according to strftime, empty string to disable.
|
||||
#* Special formatting: /host = hostname | /user = username | /uptime = system uptime
|
||||
clock_format = "%X"
|
||||
|
||||
#* Update main ui in background when menus are showing, set this to false if the menus is flickering too much for comfort.
|
||||
background_update = True
|
||||
background_update = true
|
||||
|
||||
#* Custom cpu model name, empty string to disable.
|
||||
custom_cpu_name = ""
|
||||
@@ -154,43 +166,43 @@ custom_cpu_name = ""
|
||||
disks_filter = ""
|
||||
|
||||
#* Show graphs instead of meters for memory values.
|
||||
mem_graphs = True
|
||||
mem_graphs = true
|
||||
|
||||
#* Show mem box below net box instead of above.
|
||||
mem_below_net = True
|
||||
mem_below_net = true
|
||||
|
||||
#* Count ZFS ARC in cached and available memory.
|
||||
zfs_arc_cached = True
|
||||
zfs_arc_cached = true
|
||||
|
||||
#* If swap memory should be shown in memory box.
|
||||
show_swap = True
|
||||
show_swap = true
|
||||
|
||||
#* Show swap as a disk, ignores show_swap value above, inserts itself after first disk.
|
||||
swap_disk = True
|
||||
swap_disk = true
|
||||
|
||||
#* If mem box should be split to also show disks info.
|
||||
show_disks = True
|
||||
show_disks = true
|
||||
|
||||
#* Filter out non physical disks. Set this to False to include network disks, RAM disks and similar.
|
||||
only_physical = True
|
||||
only_physical = true
|
||||
|
||||
#* Read disks list from /etc/fstab. This also disables only_physical.
|
||||
use_fstab = True
|
||||
use_fstab = true
|
||||
|
||||
#* Setting this to True will hide all datasets, and only show ZFS pools. (IO stats will be calculated per-pool)
|
||||
zfs_hide_datasets = False
|
||||
zfs_hide_datasets = false
|
||||
|
||||
#* Set to true to show available disk space for privileged users.
|
||||
disk_free_priv = False
|
||||
disk_free_priv = false
|
||||
|
||||
#* Toggles if io activity % (disk busy time) should be shown in regular disk usage view.
|
||||
show_io_stat = True
|
||||
show_io_stat = true
|
||||
|
||||
#* Toggles io mode for disks, showing big graphs for disk read/write speeds.
|
||||
io_mode = False
|
||||
io_mode = false
|
||||
|
||||
#* Set to True to show combined read/write io graphs in io mode.
|
||||
io_graph_combined = False
|
||||
io_graph_combined = false
|
||||
|
||||
#* Set the top speed for the io graphs in MiB/s (100 by default), use format "mountpoint:speed" separate disks with whitespace " ".
|
||||
#* Example: "/mnt/media:100 /:20 /boot:1".
|
||||
@@ -202,10 +214,10 @@ net_download = 100
|
||||
net_upload = 100
|
||||
|
||||
#* Use network graphs auto rescaling mode, ignores any values set above and rescales down to 10 Kibibytes at the lowest.
|
||||
net_auto = True
|
||||
net_auto = true
|
||||
|
||||
#* Sync the auto scaling for download and upload to whichever currently has the highest scale.
|
||||
net_sync = True
|
||||
net_sync = true
|
||||
|
||||
#* Starts with the Network Interface specified here.
|
||||
net_iface = ""
|
||||
@@ -214,26 +226,32 @@ net_iface = ""
|
||||
base_10_bitrate = "Auto"
|
||||
|
||||
#* Show battery stats in top right if battery is present.
|
||||
show_battery = True
|
||||
show_battery = true
|
||||
|
||||
#* Which battery to use if multiple are present. "Auto" for auto detection.
|
||||
selected_battery = "Auto"
|
||||
|
||||
#* Show power stats of battery next to charge indicator.
|
||||
show_battery_watts = True
|
||||
show_battery_watts = true
|
||||
|
||||
#* Set loglevel for "~/.config/btop/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||
#* Set loglevel for "~/.local/state/btop.log" levels are: "ERROR" "WARNING" "INFO" "DEBUG".
|
||||
#* The level set includes all lower levels, i.e. "DEBUG" will show all logging info.
|
||||
log_level = "WARNING"
|
||||
|
||||
#* Automatically save current settings to config file on exit.
|
||||
save_config_on_exit = true
|
||||
|
||||
#* Measure PCIe throughput on NVIDIA cards, may impact performance on certain cards.
|
||||
nvml_measure_pcie_speeds = True
|
||||
nvml_measure_pcie_speeds = true
|
||||
|
||||
#* Measure PCIe throughput on AMD cards, may impact performance on certain cards.
|
||||
rsmi_measure_pcie_speeds = True
|
||||
rsmi_measure_pcie_speeds = true
|
||||
|
||||
#* Horizontally mirror the GPU graph.
|
||||
gpu_mirror_graph = True
|
||||
gpu_mirror_graph = true
|
||||
|
||||
#* Set which GPU vendors to show. Available values are "nvidia amd intel"
|
||||
shown_gpus = "nvidia amd intel"
|
||||
|
||||
#* Custom gpu0 model name, empty string to disable.
|
||||
custom_gpu_name0 = ""
|
||||
|
||||
@@ -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"
|
||||
@@ -466,7 +485,7 @@ change ~org-directory~. It must be set before org loads!
|
||||
)
|
||||
("wP" "Installation Bombardier"
|
||||
((agenda ""
|
||||
((org-agenda-span 60)
|
||||
((org-agenda-span 90)
|
||||
(org-agenda-start-day "2026-01-29")
|
||||
(org-agenda-overriding-header "📅 Installation Bombardier")
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
@@ -476,10 +495,10 @@ change ~org-directory~. It must be set before org loads!
|
||||
)))
|
||||
|
||||
((org-agenda-tag-filter-preset '("+BA_ON_SITE")))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
#+end_src
|
||||
|
||||
** Rust
|
||||
@@ -492,20 +511,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
|
||||
@@ -539,6 +602,14 @@ change ~org-directory~. It must be set before org loads!
|
||||
)
|
||||
)
|
||||
#+end_src
|
||||
** Default apps
|
||||
#+begin_src emacs-lisp
|
||||
(after! org
|
||||
;; Ensure exported HTML opens in the system browser, not inside Emacs
|
||||
(setq org-file-apps
|
||||
(append '(("\\.x?html?\\'" . default))
|
||||
(assq-delete-all "\\.x?html?\\'" org-file-apps))))
|
||||
#+end_src
|
||||
** +Org Superstar mode+
|
||||
org-modern instead
|
||||
|
||||
@@ -546,7 +617,53 @@ org-modern instead
|
||||
(add-hook 'org-mode-hook (lambda () (org-superstar-mode 1)))
|
||||
#+end_src
|
||||
|
||||
* Markdown
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! grip-mode
|
||||
(setq grip-binary-path "/home/tpouplier/.local/bin/grip")
|
||||
)
|
||||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(after! markdown-mode
|
||||
(setq markdown-header-scaling t)
|
||||
(custom-set-faces
|
||||
'(markdown-header-face-1 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#fabd2f"
|
||||
:height 1.8
|
||||
:weight extra-bold)))
|
||||
'(markdown-header-face-2 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#fe8019"
|
||||
:height 1.4
|
||||
:weight extra-bold)))
|
||||
'(markdown-header-face-3 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#fb4934"
|
||||
:height 1.2
|
||||
:weight bold)))
|
||||
'(markdown-header-face-4 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#b8bb26"
|
||||
:height 1.1
|
||||
:weight bold)))
|
||||
'(markdown-header-face-5 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#83a598"
|
||||
:height 1.0
|
||||
:weight bold)))
|
||||
'(markdown-header-face-6 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#d3869b"
|
||||
:height 1.0
|
||||
:weight bold))))
|
||||
)
|
||||
#+end_src
|
||||
|
||||
* PlantUML
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Enable plantuml-mode for PlantUML files
|
||||
(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
|
||||
@@ -571,6 +688,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)
|
||||
@@ -790,12 +908,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
|
||||
@@ -1004,7 +1121,6 @@ Handles org-clock and context link capture for tasks."
|
||||
#+end_src
|
||||
|
||||
* IDE
|
||||
|
||||
** Dap Mode
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
@@ -1127,14 +1243,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)
|
||||
@@ -1296,33 +1412,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.
|
||||
|
||||
@@ -1397,11 +1486,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
|
||||
@@ -1412,7 +1501,6 @@ Show git changes in the sidebar
|
||||
#+end_src
|
||||
|
||||
* Terminal
|
||||
|
||||
** +EEE+
|
||||
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
@@ -1467,7 +1555,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
|
||||
@@ -1743,6 +1832,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
|
||||
|
||||
@@ -1772,7 +1880,9 @@ Recently added the quick access entries. Game changer.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; Dirvish config
|
||||
(after! dirvish
|
||||
(after! (dirvish dired)
|
||||
(require 'async)
|
||||
(dired-async-mode 1)
|
||||
;; Display icons, file size, timestamps, etc.
|
||||
(setq dirvish-attributes
|
||||
'(nerd-icons
|
||||
@@ -1805,13 +1915,15 @@ Recently added the quick access entries. Game changer.
|
||||
("d" "~/Downloads/" "Downloads")
|
||||
("u" "/run/media" "Mounted drives")
|
||||
("t" "~/.local/share/Trash/files/" "Trash")
|
||||
)))
|
||||
))
|
||||
(setq dirvish-yank-use-rsync t)
|
||||
(setq dirvish-yank-rsync-args '("-ah" "--info=progress2"))
|
||||
)
|
||||
|
||||
;; Use `p` to open the yank menu
|
||||
(map! :after dirvish-yank
|
||||
:map dirvish-mode-map
|
||||
:n "p" #'dirvish-yank-menu)
|
||||
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
@@ -1905,7 +2017,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
|
||||
@@ -1915,14 +2026,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
|
||||
@@ -1936,97 +2087,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")
|
||||
|
||||
;; Folders
|
||||
(mu4e-sent-folder . "/TDNDE/Sent")
|
||||
(mu4e-drafts-folder . "/TDNDE/Drafts")
|
||||
(mu4e-trash-folder . "/TDNDE/Trash")
|
||||
(mu4e-refile-folder . "/TDNDE/Archive")
|
||||
(mu4e-maildir-shortcuts . (("/Perso/Inbox" . ?i)
|
||||
("/Perso/Sent" . ?s)
|
||||
("/Perso/Trash" . ?t)
|
||||
("/Perso/Drafts" . ?d)
|
||||
("/Perso/Archive" . ?a)))
|
||||
|
||||
;; Shortcuts
|
||||
(mu4e-maildir-shortcuts
|
||||
.
|
||||
(("/TDNDE/Inbox" . ?i)
|
||||
("/TDNDE/Sent" . ?s)
|
||||
("/TDNDE/Drafts" . ?d)
|
||||
("/TDNDE/Trash" . ?t)
|
||||
("/TDNDE/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,
|
||||
|
||||
;; 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
|
||||
@@ -2192,7 +2312,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
|
||||
;;; ============================================================
|
||||
@@ -2342,7 +2462,7 @@ Returns nil if no range found (safe, non-blocking)."
|
||||
(all-resolved t))
|
||||
(when (and (string-match "ids(\\(.*?\\))" clean)
|
||||
(not (string-empty-p (s-trim (match-string 1 clean)))))
|
||||
(dolist (tid (split-string (match-string 1 clean) "[ ,]+" t))
|
||||
(dolist (tid (split-string (match-string 1 clean) "[[:space:],]+" t))
|
||||
(let* ((clean-id (replace-regexp-in-string "[\"']\\|id: " "" tid))
|
||||
(pos (org-id-find clean-id t))
|
||||
(computed-end (gethash clean-id task-end-map))
|
||||
@@ -2364,6 +2484,9 @@ Returns nil if no range found (safe, non-blocking)."
|
||||
;; Priority 2: Use range end if FIXED
|
||||
((string-equal "t" (org-entry-get nil "FIXED"))
|
||||
(gortium/org--get-range-end m))
|
||||
;; Priority 3: Fallback to existing range end if it exists
|
||||
((gortium/org--get-range-end m)
|
||||
(gortium/org--get-range-end m))
|
||||
(t nil))))))
|
||||
(t nil)))
|
||||
|
||||
@@ -2574,10 +2697,27 @@ Returns list of task IDs involved in cycles, or nil if no cycles found."
|
||||
(push task done-this-loop))))))))
|
||||
(setq remaining (cl-set-difference remaining done-this-loop))))
|
||||
|
||||
;; --- DIAGNOSTICS FOR UNSCHEDULED TASKS ---
|
||||
(if remaining
|
||||
(progn
|
||||
(message "!!! WARNING: %d tasks were NOT scheduled !!!" (length remaining))
|
||||
(dolist (task remaining)
|
||||
(pcase-let ((`(,_buf ,pos ,id ,_eff ,blocker ,_fix ,_sch ,_off) task))
|
||||
(let* ((blocker-string (format "%s" blocker))
|
||||
(clean-blocker (if (string-match "ids(\\(.*?\\))" blocker-string)
|
||||
(match-string 1 blocker-string)
|
||||
"None")))
|
||||
(message " -> Task [%s] at pos %s is BLOCKED by: %s"
|
||||
id (marker-position pos) clean-blocker)))))
|
||||
(message "=== All tasks scheduled successfully! ==="))
|
||||
|
||||
;; 3. CLEANUP
|
||||
(setq org-element-use-cache t)
|
||||
(org-element-cache-reset 'all)
|
||||
(message "=== Scheduler completed (%d tasks, %d iterations) ===" (length all-tasks) iter))))
|
||||
(message "=== Scheduler completed (%d tasks, %d iterations) ===" (length all-tasks) iter)
|
||||
;; (gortium/org-rollup-parent-ranges)
|
||||
;; (message "=== All Scheduling and Roll-ups Complete ===")
|
||||
)))
|
||||
|
||||
;; ---------------------------------------------
|
||||
(defun gortium/org-ensure-task-properties ()
|
||||
@@ -2621,6 +2761,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
|
||||
|
||||
@@ -2935,7 +3212,7 @@ Need chrome... :(
|
||||
|
||||
* +Org-Edna+
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
#+begin_src emacs-lisp :tangle no
|
||||
;; Org-edna for advanced task dependencies
|
||||
(use-package! org-edna
|
||||
:after org
|
||||
@@ -2946,4 +3223,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"
|
||||
@@ -336,7 +356,7 @@
|
||||
)
|
||||
("wP" "Installation Bombardier"
|
||||
((agenda ""
|
||||
((org-agenda-span 60)
|
||||
((org-agenda-span 90)
|
||||
(org-agenda-start-day "2026-01-29")
|
||||
(org-agenda-overriding-header "📅 Installation Bombardier")
|
||||
(org-agenda-prefix-format " %12t") ;; reserve time space
|
||||
@@ -346,10 +366,10 @@
|
||||
)))
|
||||
|
||||
((org-agenda-tag-filter-preset '("+BA_ON_SITE")))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(after! org
|
||||
;; Rust code block setting
|
||||
@@ -357,17 +377,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
|
||||
@@ -397,11 +459,56 @@
|
||||
)
|
||||
)
|
||||
|
||||
(after! org
|
||||
;; Ensure exported HTML opens in the system browser, not inside Emacs
|
||||
(setq org-file-apps
|
||||
(append '(("\\.x?html?\\'" . default))
|
||||
(assq-delete-all "\\.x?html?\\'" org-file-apps))))
|
||||
|
||||
(after! grip-mode
|
||||
(setq grip-binary-path "/home/tpouplier/.local/bin/grip")
|
||||
)
|
||||
|
||||
(after! markdown-mode
|
||||
(setq markdown-header-scaling t)
|
||||
(custom-set-faces
|
||||
'(markdown-header-face-1 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#fabd2f"
|
||||
:height 1.8
|
||||
:weight extra-bold)))
|
||||
'(markdown-header-face-2 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#fe8019"
|
||||
:height 1.4
|
||||
:weight extra-bold)))
|
||||
'(markdown-header-face-3 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#fb4934"
|
||||
:height 1.2
|
||||
:weight bold)))
|
||||
'(markdown-header-face-4 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#b8bb26"
|
||||
:height 1.1
|
||||
:weight bold)))
|
||||
'(markdown-header-face-5 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#83a598"
|
||||
:height 1.0
|
||||
:weight bold)))
|
||||
'(markdown-header-face-6 ((t
|
||||
:inherit markdown-header-face
|
||||
:foreground "#d3869b"
|
||||
:height 1.0
|
||||
:weight bold))))
|
||||
)
|
||||
|
||||
;; Enable plantuml-mode for PlantUML files
|
||||
(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")
|
||||
|
||||
@@ -630,14 +737,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)
|
||||
@@ -760,29 +867,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
|
||||
@@ -846,11 +930,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)
|
||||
@@ -889,7 +973,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
|
||||
@@ -970,6 +1055,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
|
||||
@@ -988,7 +1087,9 @@ DIFF:
|
||||
)
|
||||
|
||||
;; Dirvish config
|
||||
(after! dirvish
|
||||
(after! (dirvish dired)
|
||||
(require 'async)
|
||||
(dired-async-mode 1)
|
||||
;; Display icons, file size, timestamps, etc.
|
||||
(setq dirvish-attributes
|
||||
'(nerd-icons
|
||||
@@ -1021,7 +1122,10 @@ DIFF:
|
||||
("d" "~/Downloads/" "Downloads")
|
||||
("u" "/run/media" "Mounted drives")
|
||||
("t" "~/.local/share/Trash/files/" "Trash")
|
||||
)))
|
||||
))
|
||||
(setq dirvish-yank-use-rsync t)
|
||||
(setq dirvish-yank-rsync-args '("-ah" "--info=progress2"))
|
||||
)
|
||||
|
||||
;; Use `p` to open the yank menu
|
||||
(map! :after dirvish-yank
|
||||
@@ -1100,14 +1204,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
|
||||
@@ -1121,93 +1261,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")
|
||||
|
||||
;; Folders
|
||||
(mu4e-sent-folder . "/TDNDE/Sent")
|
||||
(mu4e-drafts-folder . "/TDNDE/Drafts")
|
||||
(mu4e-trash-folder . "/TDNDE/Trash")
|
||||
(mu4e-refile-folder . "/TDNDE/Archive")
|
||||
(mu4e-maildir-shortcuts . (("/Perso/Inbox" . ?i)
|
||||
("/Perso/Sent" . ?s)
|
||||
("/Perso/Trash" . ?t)
|
||||
("/Perso/Drafts" . ?d)
|
||||
("/Perso/Archive" . ?a)))
|
||||
|
||||
;; Shortcuts
|
||||
(mu4e-maildir-shortcuts
|
||||
.
|
||||
(("/TDNDE/Inbox" . ?i)
|
||||
("/TDNDE/Sent" . ?s)
|
||||
("/TDNDE/Drafts" . ?d)
|
||||
("/TDNDE/Trash" . ?t)
|
||||
("/TDNDE/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,
|
||||
|
||||
;; 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"))
|
||||
@@ -1475,7 +1588,7 @@ Returns nil if no range found (safe, non-blocking)."
|
||||
(all-resolved t))
|
||||
(when (and (string-match "ids(\\(.*?\\))" clean)
|
||||
(not (string-empty-p (s-trim (match-string 1 clean)))))
|
||||
(dolist (tid (split-string (match-string 1 clean) "[ ,]+" t))
|
||||
(dolist (tid (split-string (match-string 1 clean) "[[:space:],]+" t))
|
||||
(let* ((clean-id (replace-regexp-in-string "[\"']\\|id: " "" tid))
|
||||
(pos (org-id-find clean-id t))
|
||||
(computed-end (gethash clean-id task-end-map))
|
||||
@@ -1497,6 +1610,9 @@ Returns nil if no range found (safe, non-blocking)."
|
||||
;; Priority 2: Use range end if FIXED
|
||||
((string-equal "t" (org-entry-get nil "FIXED"))
|
||||
(gortium/org--get-range-end m))
|
||||
;; Priority 3: Fallback to existing range end if it exists
|
||||
((gortium/org--get-range-end m)
|
||||
(gortium/org--get-range-end m))
|
||||
(t nil))))))
|
||||
(t nil)))
|
||||
|
||||
@@ -1707,10 +1823,27 @@ Returns list of task IDs involved in cycles, or nil if no cycles found."
|
||||
(push task done-this-loop))))))))
|
||||
(setq remaining (cl-set-difference remaining done-this-loop))))
|
||||
|
||||
;; --- DIAGNOSTICS FOR UNSCHEDULED TASKS ---
|
||||
(if remaining
|
||||
(progn
|
||||
(message "!!! WARNING: %d tasks were NOT scheduled !!!" (length remaining))
|
||||
(dolist (task remaining)
|
||||
(pcase-let ((`(,_buf ,pos ,id ,_eff ,blocker ,_fix ,_sch ,_off) task))
|
||||
(let* ((blocker-string (format "%s" blocker))
|
||||
(clean-blocker (if (string-match "ids(\\(.*?\\))" blocker-string)
|
||||
(match-string 1 blocker-string)
|
||||
"None")))
|
||||
(message " -> Task [%s] at pos %s is BLOCKED by: %s"
|
||||
id (marker-position pos) clean-blocker)))))
|
||||
(message "=== All tasks scheduled successfully! ==="))
|
||||
|
||||
;; 3. CLEANUP
|
||||
(setq org-element-use-cache t)
|
||||
(org-element-cache-reset 'all)
|
||||
(message "=== Scheduler completed (%d tasks, %d iterations) ===" (length all-tasks) iter))))
|
||||
(message "=== Scheduler completed (%d tasks, %d iterations) ===" (length all-tasks) iter)
|
||||
;; (gortium/org-rollup-parent-ranges)
|
||||
;; (message "=== All Scheduling and Roll-ups Complete ===")
|
||||
)))
|
||||
|
||||
;; ---------------------------------------------
|
||||
(defun gortium/org-ensure-task-properties ()
|
||||
@@ -1751,6 +1884,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."
|
||||
@@ -1937,13 +2202,3 @@ fallback to today's daily note. Ensures the daily has an Org-roam ID."
|
||||
(message "Task refiled under '%s' in %s"
|
||||
headline
|
||||
(file-name-nondirectory daily-file)))))
|
||||
|
||||
;; Org-edna for advanced task dependencies
|
||||
(use-package! org-edna
|
||||
:after org
|
||||
:config
|
||||
(setq org-edna-use-inheritance t)
|
||||
(org-edna-mode 1)
|
||||
(map! :map org-mode-map
|
||||
:localleader
|
||||
:desc "Edit Edna rules" "E" #'org-edna-edit))
|
||||
|
||||
@@ -150,7 +150,9 @@
|
||||
;;lean ; for folks with too much to prove
|
||||
ledger ; be audit you can be
|
||||
lua ; one-based indices? one-based indices
|
||||
markdown ; writing docs for people to ignore
|
||||
(markdown ; writing docs for people to ignore
|
||||
+grip
|
||||
+tree-sitter)
|
||||
;;nim ; python + lisp at the speed of c
|
||||
(nix ; I hereby declare "nix geht mehr!"
|
||||
+lsp
|
||||
|
||||
@@ -101,8 +101,8 @@ env = WLR_RENDERER_ALLOW_SOFTWARE,1
|
||||
|
||||
# https://wiki.hyprland.org/Configuring/Variables/#general
|
||||
general {
|
||||
gaps_in = 4.5
|
||||
gaps_out = 9
|
||||
gaps_in = 7.5
|
||||
gaps_out = 15
|
||||
|
||||
border_size = 2
|
||||
|
||||
@@ -147,8 +147,14 @@ animations {
|
||||
|
||||
# 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
|
||||
# Note: pseudotile variable removed in 0.55+. Use `pseudo` dispatcher to toggle per-window.
|
||||
# Bound to $mainMod + P 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
|
||||
force_split = 2
|
||||
}
|
||||
|
||||
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
|
||||
@@ -208,20 +214,21 @@ $mainMod = SUPER # Sets "Windows" key as main modifier
|
||||
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
|
||||
# togglesplit removed as standalone dispatcher in 0.55+; use `layoutmsg togglesplit` instead
|
||||
bind = $mainMod, P, pseudo, # dwindle
|
||||
bind = $mainMod, N, movecurrentworkspacetomonitor, -1
|
||||
bind = $mainMod SHIFT, N, movecurrentworkspacetomonitor, +1
|
||||
bind = $mainMod, X, swapwindow
|
||||
bind = $mainMod, B, exec, nerd-dictation begin
|
||||
bind = $mainMod, G, exec, nerd-dictation end
|
||||
bind = $mainMod, B, exec, python /home/tpouplier/ExoKortex/4-Automata/recordntrans/record_transcribe.py
|
||||
# bind = $mainMod, G, exec, nerd-dictation end
|
||||
bind = $mainMod, A, exec, $music
|
||||
bind = $mainMod, C, exec, emacsclient -n -c -e '(gortium/hermes-vterm)'
|
||||
|
||||
# Full screen
|
||||
bind = SUPER, F, fullscreen
|
||||
@@ -287,8 +294,8 @@ bind = $mainMod SHIFT, 9, movetoworkspace, 9
|
||||
bind = $mainMod SHIFT, 0, movetoworkspace, 10
|
||||
|
||||
# Example special workspace (scratchpad)
|
||||
bind = $mainMod, S, togglespecialworkspace, magic
|
||||
bind = $mainMod SHIFT, S, movetoworkspace, special:magic
|
||||
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
|
||||
@@ -376,4 +383,42 @@ 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:scratchpad, on-created-empty:kitty
|
||||
workspace = special:tools, layout:dwindle, gapsin:0
|
||||
|
||||
# Top Left: btop
|
||||
windowrule {
|
||||
name = dashboard-btop
|
||||
match:class = ^(btop)$
|
||||
tile = true
|
||||
workspace = special:tools
|
||||
}
|
||||
|
||||
# Top Right: ncspot
|
||||
windowrule {
|
||||
name = dashboard-ncspot
|
||||
match:class = ^(ncspot)$
|
||||
tile = true
|
||||
workspace = special:tools
|
||||
}
|
||||
|
||||
# Bottom Left: ncpamixer
|
||||
windowrule {
|
||||
name = dashboard-ncpamixer
|
||||
match:class = ^(ncpamixer)$
|
||||
tile = true
|
||||
workspace = special:tools
|
||||
}
|
||||
|
||||
# Bottom Right: bluetuith
|
||||
windowrule {
|
||||
name = dashboard-bluetuith
|
||||
match:class = ^(bluetuith)$
|
||||
tile = true
|
||||
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
|
||||
bind = $mainMod, grave, exec, kitty --class bluetuith bluetuith
|
||||
|
||||
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."
|
||||
|
||||
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-----
|
||||
@@ -4,11 +4,11 @@
|
||||
|
||||
// general settings
|
||||
"position": "top",
|
||||
"margin-top": 8,
|
||||
"margin-top": 15,
|
||||
"margin-bottom": 0,
|
||||
"layer": "top",
|
||||
"margin-left": 8,
|
||||
"margin-right": 8,
|
||||
"margin-left": 15,
|
||||
"margin-right": 15,
|
||||
"spacing": 10,
|
||||
"fixed-center": true,
|
||||
"exclusive": true,
|
||||
@@ -25,6 +25,7 @@
|
||||
|
||||
"modules-right": [
|
||||
"group/hardware",
|
||||
"custom/disk-monitor",
|
||||
"pulseaudio",
|
||||
"bluetooth",
|
||||
"network",
|
||||
|
||||
@@ -89,6 +89,13 @@
|
||||
"on-click": "kitty btop"
|
||||
},
|
||||
|
||||
// disk monitor (standalone, color-coded)
|
||||
"custom/disk-monitor": {
|
||||
"exec": "$HOME/.config/waybar/scripts/disk-monitor.sh --waybar",
|
||||
"return-type": "json",
|
||||
"interval": 60
|
||||
},
|
||||
|
||||
// memory
|
||||
"memory": {
|
||||
"format": " {}% ",
|
||||
@@ -110,7 +117,7 @@
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
"on-click": "pwvucontrol"
|
||||
"on-click": "kitty ncpamixer"
|
||||
},
|
||||
|
||||
// bluetooth
|
||||
|
||||
29
waybar/.config/waybar/scripts/disk-monitor.sh
Executable file
29
waybar/.config/waybar/scripts/disk-monitor.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# disk-monitor.sh -- Waybar disk usage monitor
|
||||
# Outputs JSON for custom/disk-monitor module
|
||||
# Class: "good" (<80%), "warning" (80-90%), "critical" (>90%)
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
# Target partition (default: root)
|
||||
TARGET="${1:-/}"
|
||||
|
||||
# Get disk usage percentage (strip % sign)
|
||||
USAGE=$(df --output=pcent "$TARGET" | tail -1 | tr -d '% ')
|
||||
|
||||
# Determine icon and CSS class based on usage thresholds
|
||||
if [ "$USAGE" -ge 90 ]; then
|
||||
CLASS="critical"
|
||||
TOOLTIP="Disk $TARGET at ${USAGE}% - CRITICAL"
|
||||
elif [ "$USAGE" -ge 80 ]; then
|
||||
CLASS="warning"
|
||||
TOOLTIP="Disk $TARGET at ${USAGE}% - Warning"
|
||||
else
|
||||
CLASS="good"
|
||||
TOOLTIP="Disk $TARGET at ${USAGE}%"
|
||||
fi
|
||||
|
||||
# Output JSON for waybar
|
||||
printf '{"text": " \uf4be %s%% ", "class": "%s", "alt": "%s", "tooltip": "%s"}\n' \
|
||||
"$USAGE" "$CLASS" "disk-$CLASS" "$TOOLTIP"
|
||||
30
zsh/.zshrc
30
zsh/.zshrc
@@ -19,6 +19,33 @@ alias emacs="emacsclient -c -a emacs"
|
||||
# Opencode
|
||||
alias oc="opencode"
|
||||
|
||||
# Hermes Agent - SSH directly to remote server
|
||||
alias hermes="ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'"
|
||||
|
||||
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() {
|
||||
@@ -125,3 +152,6 @@ export HYPRSHOT_DIR="Images"
|
||||
# Atuin
|
||||
#eval "$(atuin init zsh)"
|
||||
|
||||
|
||||
# Created by `pipx` on 2026-03-03 16:51:31
|
||||
export PATH="$PATH:/home/tpouplier/.local/bin"
|
||||
|
||||
Reference in New Issue
Block a user