Files
RetroDebian/internal/rootfs/opt/retrodebian/fluxbox/watch-menu.sh
2026-03-22 03:01:18 +01:00

13 lines
260 B
Bash

#!/bin/sh
set -eu
SRC="/etc/X11/fluxbox/fluxbox-menu"
UPD_SCRIPT="/opt/retrodebian/fluxbox/update-menu.sh"
# initial generate
"$UPD_SCRIPT"
inotifywait -m -e modify -e move_self -e close_write "$SRC" 2>/dev/null |
while read dummy; do
"$UPD_SCRIPT"
done