summaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-03-02 04:13:15 -0600
committerCraig Jennings <c@cjennings.net>2026-03-02 04:13:15 -0600
commit5ff5a82c9d6f106ba272e1773e91e7e032672dfd (patch)
tree2097573a51d1ee9908a790ffda25995a833d0725 /dotfiles
parent53ea56ccb050b4a72f7919e8ee6b9146cc816251 (diff)
feat(hyprland): rebind mod+shift+f to allfloat, add chess setup script
Add workspace allfloat toggle on mod+shift+f (was togglefloating, now on mod+shift+space only). Add scripts/setup-chess.sh for En Croissant, lc0, Maia, and Stockfish setup. Update log-cleanup to use filename dates instead of mtime. Update ssh and calibre configs.
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/common/.config/calibre/viewer-webengine.json17
-rwxr-xr-xdotfiles/common/.local/bin/cron/log-cleanup26
-rw-r--r--dotfiles/common/.ssh/config2
-rw-r--r--dotfiles/hyprland/.config/hypr/hyprland.conf2
4 files changed, 32 insertions, 15 deletions
diff --git a/dotfiles/common/.config/calibre/viewer-webengine.json b/dotfiles/common/.config/calibre/viewer-webengine.json
index c06652f..de97884 100644
--- a/dotfiles/common/.config/calibre/viewer-webengine.json
+++ b/dotfiles/common/.config/calibre/viewer-webengine.json
@@ -66,7 +66,7 @@
},
"main_window_state": {
"__class__": "bytearray",
- "__value__": "AAAA/wAAAAH9AAAAAgAAAAAAAAAAAAAAAPwCAAAAAvsAAAAQAHQAbwBjAC0AZABvAGMAawAAAAAA/////wAAAIUA////+wAAABYAcwBlAGEAcgBjAGgALQBkAG8AYwBrAAAAAAD/////AAAAkwD///8AAAABAAABeAAAA9X8AgAAAAT7AAAAFgBsAG8AbwBrAHUAcAAtAGQAbwBjAGsAAAAAAAAAA9UAAAB6AP////sAAAAcAGIAbwBvAGsAbQBhAHIAawBzAC0AZABvAGMAawAAAAAAAAAD1QAAAOUA////+wAAABwAaQBuAHMAcABlAGMAdABvAHIALQBkAG8AYwBrAAAAAAD/////AAAAEQD////7AAAAHgBoAGkAZwBoAGwAaQBnAGgAdABzAC0AZABvAGMAawAAAAAA/////wAAAM4A////AAAHJAAABSIAAAAEAAAABAAAAAgAAAAI/AAAAAEAAAAAAAAAAQAAAB4AYQBjAHQAaQBvAG4AcwBfAHQAbwBvAGwAYgBhAHICAAAAAP////8AAAAAAAAAAA=="
+ "__value__": "AAAA/wAAAAH9AAAAAgAAAAAAAAAAAAAAAPwCAAAAAvsAAAAQAHQAbwBjAC0AZABvAGMAawAAAAAA/////wAAAIoA////+wAAABYAcwBlAGEAcgBjAGgALQBkAG8AYwBrAAAAAAD/////AAAAmgD///8AAAABAAABeAAAA9X8AgAAAAT7AAAAFgBsAG8AbwBrAHUAcAAtAGQAbwBjAGsAAAAAAAAAA9UAAACDAP////sAAAAcAGIAbwBvAGsAbQBhAHIAawBzAC0AZABvAGMAawAAAAAAAAAD1QAAAPIA////+wAAABwAaQBuAHMAcABlAGMAdABvAHIALQBkAG8AYwBrAAAAAAD/////AAAAFAD////7AAAAHgBoAGkAZwBoAGwAaQBnAGgAdABzAC0AZABvAGMAawAAAAAA/////wAAANcA////AAAHJAAABSIAAAAEAAAABAAAAAgAAAAI/AAAAAEAAAAAAAAAAQAAAB4AYQBjAHQAaQBvAG4AcwBfAHQAbwBvAGwAYgBhAHICAAAAAP////8AAAAAAAAAAA=="
},
"old_prefs_migrated": true,
"session_data": {
@@ -107,6 +107,12 @@
},
"standalone_recently_opened": [
{
+ "key": "/home/cjennings/projects/career/2026-02-27-socom-scope-planning-summary.docx",
+ "pathtoebook": "/home/cjennings/projects/career/2026-02-27-socom-scope-planning-summary.docx",
+ "timestamp": "2026-02-28T07:06:07.816Z",
+ "title": "U.S. Special Operations Command (SOCOM) Technical Experimentation TE26-2"
+ },
+ {
"authors": [
"Admin"
],
@@ -312,15 +318,6 @@
"pathtoebook": "/home/cjennings/Library/Dieter Lohmar/Founding Psychoanalysis Phenomenologically_ Phenomenological Theory of Subjectivity and the Ps (17064)/Founding Psychoanalysis Phenomenologically - Dieter Lohmar.pdf",
"timestamp": "2022-01-01T22:55:44.420Z",
"title": "Founding Psychoanalysis Phenomenologically: Phenomenological Theory of Subjectivity and the Psychoanalytic Experience (Phaenomenologica, 199)"
- },
- {
- "authors": [
- "Kevin Passmore"
- ],
- "key": "/home/cjennings/Library/Kevin Passmore/Fascism_ A Very Short Introduction (5508)/Fascism_ A Very Short Introduction - Kevin Passmore.mobi",
- "pathtoebook": "/home/cjennings/Library/Kevin Passmore/Fascism_ A Very Short Introduction (5508)/Fascism_ A Very Short Introduction - Kevin Passmore.mobi",
- "timestamp": "2021-11-01T00:49:09.044Z",
- "title": "Fascism: A Very Short Introduction (Very Short Introductions)"
}
]
}
diff --git a/dotfiles/common/.local/bin/cron/log-cleanup b/dotfiles/common/.local/bin/cron/log-cleanup
index 651982c..e8d6ac4 100755
--- a/dotfiles/common/.local/bin/cron/log-cleanup
+++ b/dotfiles/common/.local/bin/cron/log-cleanup
@@ -4,10 +4,30 @@
# Services (hyprland, waybar, dunst, hypridle, gammastep) create a new
# timestamped log file per session. Without cleanup these accumulate.
#
+# Uses the date embedded in filenames (service-YYYY-MM-DD-HHMMSS.log)
+# rather than mtime, because long-running sessions keep mtime fresh
+# even on old log files.
+#
# Intended to run daily via crontab.
LOG_DIR="$HOME/.local/var/log"
+DAYS=7
+
+[ -d "$LOG_DIR" ] || exit 0
+
+cutoff=$(date -d "$DAYS days ago" +%Y%m%d)
-if [ -d "$LOG_DIR" ]; then
- find "$LOG_DIR" -name "*.log" -mtime +7 -delete
-fi
+for f in "$LOG_DIR"/*.log; do
+ [ -f "$f" ] || continue
+ # Extract YYYY-MM-DD from filename; skip files without a date
+ filedate=$(basename "$f" | grep -oP '\d{4}-\d{2}-\d{2}' | head -1)
+ [ -n "$filedate" ] || continue
+ # Skip files still being written to (modified in the last 24h).
+ # This prevents deleting active logs from long-running sessions.
+ [ -n "$(find "$f" -maxdepth 0 -mtime 0)" ] && continue
+ # Compare as integers: YYYYMMDD
+ filedate_num=$(echo "$filedate" | tr -d '-')
+ if [ "$filedate_num" -lt "$cutoff" ]; then
+ rm -f "$f"
+ fi
+done
diff --git a/dotfiles/common/.ssh/config b/dotfiles/common/.ssh/config
index 06a94e6..464975c 100644
--- a/dotfiles/common/.ssh/config
+++ b/dotfiles/common/.ssh/config
@@ -6,7 +6,7 @@ ServerAliveInterval=5
Host deepsat.ghe.com
HostName deepsat.ghe.com
- User git
+ User deepsat
IdentityFile ~/.ssh/deepsat-github
IdentitiesOnly yes
diff --git a/dotfiles/hyprland/.config/hypr/hyprland.conf b/dotfiles/hyprland/.config/hypr/hyprland.conf
index 0981dfc..e3b198f 100644
--- a/dotfiles/hyprland/.config/hypr/hyprland.conf
+++ b/dotfiles/hyprland/.config/hypr/hyprland.conf
@@ -208,7 +208,7 @@ bind = $mod SHIFT, C, killactive
# Click waybar layout icon to cycle, or use direct keybindings:
bind = $mod SHIFT, T, exec, hyprctl keyword general:layout master && hyprctl keyword master:orientation left
bind = $mod SHIFT, S, exec, hyprctl keyword general:layout scrolling
-bind = $mod SHIFT, F, togglefloating
+bind = $mod SHIFT, F, exec, hyprctl dispatch workspaceopt allfloat
bind = $mod SHIFT, SPACE, togglefloating
# Master layout adjustments