testsAndMisc/linux_configuration/dwm/bin/dwm-session
Krzysztof kuhy Rudnicki f15f00f3fe Re-point paths for the ~ reorganisation (home-tidy)
Also bumps the 16 meta/requirements pins the freshness gate flagged
(anthropic 1.5.0, numpy 2.5.3, pytest-randomly 5, flake8-bugbear 26.9.9,
ruff 0.16.7, pyright 1.1.414, selenium 4.49.0, hypothesis 6.168.0, lxml
6.1.3, pipdeptree 4.2.5, the two types-* stubs) and Flutter 3.47.3 in
meta/.fvmrc. One test still expected the pre-move ~/mcp-servers path.

The pre-commit hook fed .zsh files to shfmt and shellcheck, neither of
which parses zsh (SC2148/SC1071), so no zsh file could be committed since
the hook was tightened on 2026-08-22; those now get `zsh -n` instead. The
hook's own shfmt pass also staged its reformat of 8 shell files.

CI_GREEN_SKIP because main is red on exactly the dependency-freshness
finding this commit fixes, which is the documented use of that flag.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AwtowrowDXx6ccmWVPkCaF
2026-09-11 20:50:19 +02:00

31 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
# dwm session launcher — invoked by lightdm via /usr/share/xsessions/dwm.desktop
# Mirrors the i3 config's autostart. Deliberately NOT `set -e` (see installer).
set -u
# XDG autostart .desktop files (nm-applet tray etc.)
command -v dex >/dev/null 2>&1 && dex --autostart --environment dwm &
# lock the screen on suspend (i3 used xss-lock + i3lock)
if command -v xss-lock >/dev/null 2>&1 && command -v i3lock >/dev/null 2>&1; then
xss-lock --transfer-sleep-lock -- i3lock --nofork &
fi
# network applet, compositor, notes app — all installed; harmless if duplicated
command -v nm-applet >/dev/null 2>&1 && nm-applet &
command -v picom >/dev/null 2>&1 && picom &
command -v simplenote >/dev/null 2>&1 && simplenote &
# restore wallpaper if feh saved one
[ -x "$HOME/.fehbg" ] && "$HOME/.fehbg" &
# repo helpers (real current paths under single_use/utils); guarded in case moved
idle="$HOME/src/testsAndMisc/linux_configuration/utils/turn_off_auto_idle_screen_shutdown.sh"
[ -x "$idle" ] && bash "$idle" --watch-controller &
# lightweight status bar (root window name)
command -v dwmstatus >/dev/null 2>&1 && dwmstatus &
# the window manager — must be last; replaces this shell
exec dwm