feat: improve session switching, fractional DPI/GTK theming, XDG launcher, CPU/RAM status, and power policy

This commit is contained in:
Luxferre committed 2026-11-26 14:46:03 +02:00
1 parent 72b05b650e
commit 07d9134d2d
28 files changed
+2670 -302

No files matched your search

+27 -2
View File
@@ -171,11 +171,36 @@ if [ "$NO_AUTOSTART" != "1" ] && command -v anode-autostart >/dev/null 2>&1; the
fi
if command -v dwm >/dev/null 2>&1; then
_dwm_rc=0
if [ "$REPLACE_WM" = "1" ]; then
dwm --replace
dwm --replace || _dwm_rc=$?
else
dwm
dwm || _dwm_rc=$?
fi
if [ "$_dwm_rc" = "75" ]; then
# Replaced by another ICCCM WM: stop old background daemons and hold the
# session open until the replacement WM exits so display managers stay up.
cleanup_bg
BG_PIDS=""
sleep 0.5
if command -v xprop >/dev/null 2>&1; then
_miss=0
while :; do
_wid="$(xprop -root _NET_SUPPORTING_WM_CHECK 2>/dev/null | awk '
/window id/ { for (i = 1; i <= NF; i++) if ($i ~ /^0x[0-9a-fA-F]+/) { sub(/,$/, "", $i); print $i; exit } }
')"
if [ -n "${_wid:-}" ] && xprop -id "$_wid" _NET_WM_NAME >/dev/null 2>&1; then
_miss=0
else
_miss=$(( _miss + 1 ))
[ "$_miss" -ge 2 ] && break
fi
sleep 1
done
fi
exit 0
fi
exit "$_dwm_rc"
else
printf 'anode-session: dwm executable not found\n' >&2
exit 1