17 Commits

Author SHA1 Message Date
Thierry Pouplier
436d0abf80 feat: disk space monitor with desktop notifications + waybar indicator
Adds a disk monitor script that warns via notify-send (swaync) when disk
usage exceeds 85% (warning) or 92% (critical), and shows a color-coded
indicator in the waybar.

Changes:
- waybar/scripts/disk-monitor.sh — monitoring script with 3 modes:
  * daemon: background check every 5 min, sends desktop notifications
  * waybar: one-shot JSON for waybar custom module
  * check: single check for manual use
- hyprland.conf — exec-once for daemon mode (runs on login)
- config.jsonc — added custom/disk-monitor to modules-right
- modules.json — custom module definition (60s refresh, color-coded)
- style.css — normal/warning/critical styles with blink animation

Usage:
  Normal: shows 💾 / 45% (green)
  Warning: 🟡 / 85% (orange)
  Critical: 🔴 / 92% (red, blinking)
2026-05-06 14:52:10 +00:00
5ee760fbe8 Doom emacs config progress dump 2026-04-30 10:25:25 -04:00
c1fbe2e8d9 Script path fix 2026-04-30 10:25:10 -04:00
1a4cafa098 Added perso mail secret 2026-04-30 10:24:39 -04:00
7e48bf1b87 rclone fix 2026-04-30 10:22:28 -04:00
3101834051 Update generated emacs config 2026-03-07 18:36:36 -05:00
8ddcf1de22 Various emacs config uddates 2026-03-07 18:33:12 -05:00
15e62ed479 Markdown emacs setup 2026-03-07 18:30:35 -05:00
a8315e32f1 UI amelioration 2026-03-07 18:11:50 -05:00
9cb17ede39 New recording app 2026-03-07 18:08:45 -05:00
cd60b775f5 Nicer windows spacing for hyprland 2026-03-07 18:02:01 -05:00
da85946d6a zsh pipx path 2026-03-07 17:59:01 -05:00
24fcd48036 btop config update 2026-03-07 17:58:17 -05:00
ddbc923314 Fixed multi blocker end time. WIP on broken elgantt 2026-02-11 16:46:03 -05:00
dfef1e6dfa Working blocker 2026-02-09 17:22:28 -05:00
6939353f9c Committing before i loose it again! 2026-02-09 14:57:11 -05:00
28abca7572 WIP range for task instead of scheduled + ranges
This is to fix the double entry in the agenda.
One for the scheduled + one for the range.
We want only the range. But right now the code duplicate
Ranges and PROPERTIES drawer.
2026-02-05 10:22:28 -05:00
13 changed files with 2011 additions and 1118 deletions

View File

@@ -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 = ""

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -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

View File

@@ -73,6 +73,7 @@ exec-once = swww img ~/.config/wallpapers/green_yellow_forest.jpg --outputs $EXT
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 = ~/.config/waybar/scripts/disk-monitor.sh daemon
exec-once = hypridle
exec-once = hyprlock
exec-once = /usr/bin/emacs --daemon
@@ -101,8 +102,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
@@ -148,7 +149,12 @@ 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
# 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,7 +214,7 @@ $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,
@@ -219,8 +225,8 @@ bind = $mainMod, P, togglesplit, # 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
# Full screen
@@ -287,8 +293,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 +382,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

View File

@@ -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!"

View File

@@ -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
View File

@@ -0,0 +1,9 @@
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IHNzaC1lZDI1NTE5IEdoTUQ4QSBSTnZa
REtrM2FwSngxY2FRWkdsWWNUU0JETW81eWYwUE9Ndy9TT096UFRnClRzbTJnWEhG
WlAvVlhicjA0Um45TFZNL3VQaDBSMHNaWG1TOEthN1RrVlkKLT4gUXFLVUQ9Xnwt
Z3JlYXNlIDIiIDdnPmZfQCBEClVpYVcxSEMvbnp0VFptdWtENmdQZUtYK05uUVFO
ZWRtCi0tLSBIcGNFcXVKOWhjS3lGZUdNaDd3N2dMN21KT2JhUzIrWHc0UHFOcFlq
TWRzClWaMFgCPM9T0pLoh/HyXVwAALd3fPUKll/VFjHa4eJIGjGa36g5lxU7BxTa
39fa8FNrSHU=
-----END AGE ENCRYPTED FILE-----

View 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",

View File

@@ -110,7 +110,7 @@
"car": "",
"default": ["", "", ""]
},
"on-click": "pwvucontrol"
"on-click": "kitty ncpamixer"
},
// bluetooth
@@ -158,4 +158,12 @@
"on-click": "wlogout -b 2",
"tooltip": false
},
// disk space monitor (background daemon for notifications)
"custom/disk-monitor": {
"exec": "~/.config/waybar/scripts/disk-monitor.sh waybar",
"return-type": "json",
"interval": 60,
"signal": 8
}
}

View File

@@ -0,0 +1,119 @@
#!/usr/bin/env bash
# Disk Space Monitor — warns you before you hit the wall.
#
# Two integration points:
# 1. Waybar: add "custom/disk" to modules-right in config.jsonc
# 2. Hyprland: add exec-once = ... disk-monitor.sh daemon
#
# Install:
# cp disk-monitor.sh ~/.config/waybar/scripts/
# chmod +x ~/.config/waybar/scripts/disk-monitor.sh
set -euo pipefail
WARN_PCT=85
CRIT_PCT=92
# ─── helpers ────────────────────────────────────────────────────────────────
_notify() {
local urgency="$1" title="$2" body="$3"
notify-send -u "$urgency" -a "disk-monitor" "$title" "$body"
}
# ─── commands ───────────────────────────────────────────────────────────────
cmd_check() {
local alerts=""
local any_alert=false
while IFS= read -r line; do
# Skip headers and pseudo-filesystems
target=$(echo "$line" | awk '{print $1}')
pct=$(echo "$line" | awk '{print $2}' | tr -d '%')
used=$(echo "$line" | awk '{print $3}')
size=$(echo "$line" | awk '{print $4}')
avail=$(echo "$line" | awk '{print $5}')
case "$target" in
/dev|/sys|/proc|/run|tmpfs|devtmpfs|none|udev|overlay|shm|devpts|mqueue|pts) continue ;;
/boot*) continue ;;
*) ;;
esac
if [ "$pct" -ge "$CRIT_PCT" ]; then
any_alert=true
alerts+="🔴 $target ${pct}% (${avail} free)\n"
elif [ "$pct" -ge "$WARN_PCT" ]; then
any_alert=true
alerts+="🟡 $target ${pct}% (${avail} free)\n"
fi
done < <(df -h --output=target,pcent,used,size,avail | tail -n +2)
if [ -z "$alerts" ]; then
return 0
fi
if echo "$alerts" | grep -q "🔴"; then
_notify critical "🚨 Disk CRITICAL" "$alerts"
else
_notify normal "⚠️ Disk space low" "$alerts"
fi
}
cmd_daemon() {
local interval="${1:-300}"
echo "disk-monitor: checking every ${interval}s, warn@${WARN_PCT}% crit@${CRIT_PCT}%"
cmd_check
while true; do
sleep "$interval"
cmd_check
done
}
cmd_waybar() {
local worst_pct=0
local worst_target="/"
local tooltip=""
while IFS= read -r line; do
target=$(echo "$line" | awk '{print $1}')
pct=$(echo "$line" | awk '{print $2}' | tr -d '%')
used=$(echo "$line" | awk '{print $3}')
size=$(echo "$line" | awk '{print $4}')
avail=$(echo "$line" | awk '{print $5}')
case "$target" in
/dev|/sys|/proc|/run|tmpfs|devtmpfs|none|udev|overlay|shm|devpts|mqueue|pts) continue ;;
/boot*) continue ;;
*) ;;
esac
tooltip+="${target}: ${pct}% (${avail} free)\\n"
[ "$pct" -gt "$worst_pct" ] && { worst_pct=$pct; worst_target=$target; }
done < <(df -h --output=target,pcent,used,size,avail | tail -n +2)
local icon class
if [ "$worst_pct" -ge "$CRIT_PCT" ]; then
icon="🔴"; class="critical"
elif [ "$worst_pct" -ge "$WARN_PCT" ]; then
icon="🟡"; class="warning"
else
icon="💾"; class="normal"
fi
printf '{"text": " %s %s %d%% ", "tooltip": "%s", "class": "%s"}\n' \
"$icon" "$worst_target" "$worst_pct" "$tooltip" "$class"
}
case "${1:-help}" in
daemon) cmd_daemon "${2:-300}" ;;
waybar|w) cmd_waybar ;;
check|notify) cmd_check ;;
*)
echo "Usage: $(basename "$0") {daemon|waybar|check}"
echo " daemon Background check every 5 min, desktop notifications"
echo " waybar One-shot JSON for Waybar custom module"
echo " check Single check, prints to stdout"
exit 1
;;
esac

View File

@@ -213,6 +213,28 @@ tooltip label {
}
/* custom modules */
#custom-disk-monitor {
margin: 0px 0px 0px 5px;
padding: 1px 8px 0px 8px;
font-size: 16px;
color: @text;
border-radius: 5px;
background-color: @set;
}
#custom-disk-monitor.warning {
background-color: #ff9a3c;
color: #FFFFFF;
}
#custom-disk-monitor.critical {
background-color: #dc2f2f;
color: #FFFFFF;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#custom-exit {
margin: 0px 18px 0px 5px;
padding: 0px;

View File

@@ -125,3 +125,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"