feat: add display to entry script

This commit is contained in:
Ayo Ayco 2025-06-30 18:14:22 +02:00
parent 2a1ddedc7a
commit 9aaae0f4b5
2 changed files with 11 additions and 0 deletions

3
ayo.sh
View file

@ -66,6 +66,9 @@ case $1 in
## SCRIPTS
d | display)
. ${scripts_dir}/display.sh $2 $3 $4 $5 $6 $7 $8 $9
;;
u | up)
. ${scripts_dir}/up.sh $2 $3 $4 $5 $6 $7 $8 $9
;;

8
display.sh Normal file → Executable file
View file

@ -1,5 +1,13 @@
#! /usr/bin/bash
# laptop display management
# Load config & functions
#. ${HOME}/ayo.conf
#. ${scripts_dir}/functions.sh
#command=$1
if [ "$1" = "1920" ] || [ "$1" = "1200" ]; then
xrandr --output eDP-1 --mode 1920x1200
elif [ "$1" = "1280" ] || [ "$1" = "800" ]; then