feat(display): switch between graphics modes

This commit is contained in:
Ayo Ayco 2025-10-02 12:31:44 +02:00
parent 9be15a2c00
commit 83bc543f8b

View file

@ -13,6 +13,14 @@ command=$2
function main() { function main() {
case $command in case $command in
"hybrid")
sudo system76-power graphics hybrid
sudo reboot
;;
"nvidia")
sudo system76-power graphics nvidia
sudo reboot
;;
"big") "big")
echo "Setting display to big mode (1920x1200)" echo "Setting display to big mode (1920x1200)"
xrandr --output "$intern" --mode 1920x1200 xrandr --output "$intern" --mode 1920x1200