Compare commits

...

3 Commits

Author SHA1 Message Date
David Heinemeier Hansson
fc529b368d Match direction from the sessino list 2026-02-11 16:46:05 +01:00
David Heinemeier Hansson
ce01b6e0d6 Improve navigation ease 2026-02-11 14:17:32 +01:00
David Heinemeier Hansson
450d4dd82b No wifi power saving when connected to power 2026-02-11 14:06:52 +01:00
5 changed files with 32 additions and 0 deletions

5
bin/omarchy-wifi-powersave Executable file
View File

@@ -0,0 +1,5 @@
#!/bin/bash
for iface in /sys/class/net/*/wireless; do
iface="$(basename "$(dirname "$iface")")"
iw dev "$iface" set power_save "$1" 2>/dev/null
done

View File

@@ -62,6 +62,20 @@ bind - split-window -v -c "#{pane_current_path}"
# New windows in same directory
bind c new-window -c "#{pane_current_path}"
# Pane navigation
bind -n C-S-Left select-pane -L
bind -n C-S-Right select-pane -R
bind -n C-S-Up select-pane -U
bind -n C-S-Down select-pane -D
# Window navigation
bind -n C-M-Left previous-window
bind -n C-M-Right next-window
# Session navigation
bind -n C-M-Up switch-client -n
bind -n C-M-Down switch-client -p
# Sessions
bind C new-session
bind X kill-session

View File

@@ -20,6 +20,7 @@ run_logged $OMARCHY_INSTALL/config/sudoless-asdcontrol.sh
run_logged $OMARCHY_INSTALL/config/input-group.sh
run_logged $OMARCHY_INSTALL/config/omarchy-ai-skill.sh
run_logged $OMARCHY_INSTALL/config/powerprofilesctl-rules.sh
run_logged $OMARCHY_INSTALL/config/wifi-powersave-rules.sh
run_logged $OMARCHY_INSTALL/config/hibernation.sh
run_logged $OMARCHY_INSTALL/config/hardware/network.sh
run_logged $OMARCHY_INSTALL/config/hardware/set-wireless-regdom.sh

View File

@@ -0,0 +1,9 @@
if omarchy-battery-present; then
cat <<EOF | sudo tee "/etc/udev/rules.d/99-wifi-powersave.rules"
SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="0", RUN+="$HOME/.local/share/omarchy/bin/omarchy-wifi-powersave on"
SUBSYSTEM=="power_supply", ATTR{type}=="Mains", ATTR{online}=="1", RUN+="$HOME/.local/share/omarchy/bin/omarchy-wifi-powersave off"
EOF
sudo udevadm control --reload
sudo udevadm trigger --subsystem-match=power_supply
fi

3
migrations/1770811646.sh Normal file
View File

@@ -0,0 +1,3 @@
echo "Disable WiFi power save on AC power"
source $OMARCHY_PATH/install/config/wifi-powersave-rules.sh