diff --git a/bin/omarchy-powerprofiles-set b/bin/omarchy-powerprofiles-set index a7dd623d..bebd18d2 100755 --- a/bin/omarchy-powerprofiles-set +++ b/bin/omarchy-powerprofiles-set @@ -11,6 +11,11 @@ action="${1-}" # events, and also avoids false negatives from per-port USB-C devices # that are present-but-empty (online=0) while another port supplies power. if [[ -z $action || $action == "autodetect" ]]; then + # On plug/unplug, udev fires the rule before sysfs `online` is updated + # on some laptops (notably Lenovo Yoga Pro 7 with USB-C charging). A + # short settle delay lets the kernel update before we read state. + sleep 0.3 + action=battery for ps in /sys/class/power_supply/*; do [[ -r $ps/online && -r $ps/type ]] || continue diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index b59fc395..d6dca50d 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -101,6 +101,7 @@ power-profiles-daemon python-gobject python-poetry-core python-terminaltexteffects +qemu-user-static-binfmt qt5-wayland quickshell ripgrep diff --git a/migrations/1779171487.sh b/migrations/1779171487.sh new file mode 100644 index 00000000..1618efa5 --- /dev/null +++ b/migrations/1779171487.sh @@ -0,0 +1,3 @@ +echo "Install qemu-user-static-binfmt for multi-arch Docker image building" + +omarchy-pkg-add qemu-user-static-binfmt