From 5d83fdc8640d98a437b30060c547e9076348397c Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 23 May 2026 13:05:12 +0000 Subject: [PATCH] fix: redact remaining personal identifiers across hpc, wezterm, sway, and email.service MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - hpc/monitor_job.sh: squeue -u zyyu → squeue -u "$USER" (issue #77) - wezterm/.wezterm.lua: username "zyyu" → "username" in ssh_domains and launch_menu (issue #77); background image path C:/Users/zhiyu/... → wezterm.home_dir .. "/.config/wezterm/background.jpg" (issue #80) - sway/40-sway-background.conf: /home/stanfish/Git/... → ~/.config/sway/wallpaper.jpeg (issue #78, same symlink pattern as PR #47 for i3) - linux/services/email.service: User=stanfish → placeholder comment, ExecStart=/home/stanfish/... → %h/... systemd specifier (issue #78) Wire up sway wallpaper once at deploy time: ln -sf ~/Git/my-configs/img/space.jpeg ~/.config/sway/wallpaper.jpeg Wire up wezterm background once at deploy time: ln -sf ~/Git/my-configs/img/dark-green-forest.jpg ~/.config/wezterm/background.jpg Closes #77 Closes #78 Closes #80 --- hpc/monitor_job.sh | 2 +- linux/services/email.service | 4 ++-- sway/40-sway-background.conf | 2 +- wezterm/.wezterm.lua | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/hpc/monitor_job.sh b/hpc/monitor_job.sh index 1e9e011..2a34009 100755 --- a/hpc/monitor_job.sh +++ b/hpc/monitor_job.sh @@ -32,7 +32,7 @@ while true; do printf "%-10s %-8s %-10s %-8s %-10s %-8s\n" "JOBID" "TIME" "NODE" "MaxMem" "CPUTime" "CPU%" printf "%-10s %-8s %-10s %-8s %-10s %-8s\n" "----------" "--------" "----------" "--------" "----------" "--------" - for jobid in $(squeue -u zyyu -h -o "%i"); do + for jobid in $(squeue -u "$USER" -h -o "%i"); do elapsed=$(squeue -j $jobid -h -o "%M") node=$(squeue -j $jobid -h -o "%N") ncpus=$(squeue -j $jobid -h -o "%C") diff --git a/linux/services/email.service b/linux/services/email.service index d34901e..8ca384e 100644 --- a/linux/services/email.service +++ b/linux/services/email.service @@ -8,8 +8,8 @@ StartLimitIntervalSec=0 Type=simple Restart=always RestartSec=1 -User=stanfish -ExecStart=/home/stanfish/scripts/system/fetch-emails.sh +# User= # set locally: User=your-username +ExecStart=%h/scripts/system/fetch-emails.sh [Install] WantedBy=multi-user.target diff --git a/sway/40-sway-background.conf b/sway/40-sway-background.conf index c339d6e..47b98ae 100644 --- a/sway/40-sway-background.conf +++ b/sway/40-sway-background.conf @@ -1 +1 @@ -output * bg /home/stanfish/Git/my-configs/img/space.jpeg fill +output * bg ~/.config/sway/wallpaper.jpeg fill diff --git a/wezterm/.wezterm.lua b/wezterm/.wezterm.lua index 277c93d..d94f3e5 100644 --- a/wezterm/.wezterm.lua +++ b/wezterm/.wezterm.lua @@ -9,7 +9,7 @@ workspace_switcher.apply_to_config(config) config.window_decorations = "RESIZE" config.background = { - { source = { File = "C:/Users/zhiyu/Desktop/Git/my-configs/img/dark-green-forest.jpg" }, opacity = 0.4 }, + { source = { File = wezterm.home_dir .. "/.config/wezterm/background.jpg" }, opacity = 0.4 }, } -- config.window_decorations = "INTEGRATED_BUTTONS | RESIZE" -- config.integrated_title_button_alignment = "Left" @@ -353,7 +353,7 @@ domains.apply_to_config(config, { config.ssh_domains = { { name = "greatlakes", remote_address = "greatlakes.arc-ts.umich.edu", - username = "zyyu", + username = "username", } } -- wezterm will automatically connect to unix mux server @@ -367,7 +367,7 @@ config.default_gui_startup_args = { "connect", "unix" } config.launch_menu = { { label = "greatlakes", - args = { "ssh", "zyyu@greatlakes.arc-ts.umich.edu" }, + args = { "ssh", "username@greatlakes.arc-ts.umich.edu" }, }, { label = "msvc",