great script
suggestion for slim 7x is feature to switch internal display to 60hz on battery using gdctl. e.g. modifying this:
#!/bin/bash
MONITOR="eDP-1"
RES="1920x1080" (change)
# Check if we are currently at 90Hz
CURRENT_STATE=$(gdctl list | grep -A 5 "$MONITOR" | grep "current")
if [[ $CURRENT_STATE == *"90"* ]]; then
echo "Switching to 60Hz..."
gdctl set -L -m $MONITOR -mode ${RES}@60.000
else
echo "Switching to 90Hz..."
gdctl set -L -m $MONITOR -mode ${RES}@90.000
fi
depending on what features gdctl has might be worth creating a slim7x_only script as i think every slim 7x has a 90hz display whereas some other x1e laptops don't. also the new slim 7x 2026 are 120hz/60hz.
great script
suggestion for slim 7x is feature to switch internal display to 60hz on battery using gdctl. e.g. modifying this:
depending on what features gdctl has might be worth creating a slim7x_only script as i think every slim 7x has a 90hz display whereas some other x1e laptops don't. also the new slim 7x 2026 are 120hz/60hz.