mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
- bin/omarchy-wifi-powersave: shopt -s nullglob. Previously, machines
with no wireless interfaces ran the loop once with the literal glob
('iface=*'), failed iw, and exited 237. With the new always-installed
udev rule that invokes this on every AC transition, the failure
would surface as failed transient omarchy-wifi-powersave-* units on
desktops. Now it cleanly no-ops.
- migrations/1779307845.sh: add 'systemctl daemon-reload' so the
plocate-updatedb.service.d/ac-only.conf drop-in is picked up on
upgrade. Arch's systemd pacman hook only triggers on
/usr/lib/systemd/system/*, not /etc/systemd/system/*.
- install/config/powerprofilesctl-rules.sh and wifi-powersave-rules.sh:
rm -f the pre-rename legacy paths before udevadm reload, so the
cleanup is idempotent outside the one-shot migration (matters for
re-install/downgrade testing).
11 lines
265 B
Bash
Executable File
11 lines
265 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# omarchy:summary=Set Wi-Fi power save mode on wireless interfaces
|
|
# omarchy:args=<on|off>
|
|
|
|
shopt -s nullglob
|
|
for iface in /sys/class/net/*/wireless; do
|
|
iface="$(basename "$(dirname "$iface")")"
|
|
iw dev "$iface" set power_save "$1" 2>/dev/null
|
|
done
|