feat: add display to entry script
This commit is contained in:
parent
2a1ddedc7a
commit
9aaae0f4b5
2 changed files with 11 additions and 0 deletions
3
ayo.sh
3
ayo.sh
|
@ -66,6 +66,9 @@ case $1 in
|
||||||
|
|
||||||
## SCRIPTS
|
## SCRIPTS
|
||||||
|
|
||||||
|
d | display)
|
||||||
|
. ${scripts_dir}/display.sh $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
|
;;
|
||||||
u | up)
|
u | up)
|
||||||
. ${scripts_dir}/up.sh $2 $3 $4 $5 $6 $7 $8 $9
|
. ${scripts_dir}/up.sh $2 $3 $4 $5 $6 $7 $8 $9
|
||||||
;;
|
;;
|
||||||
|
|
8
display.sh
Normal file → Executable file
8
display.sh
Normal file → Executable file
|
@ -1,5 +1,13 @@
|
||||||
|
#! /usr/bin/bash
|
||||||
|
|
||||||
# laptop display management
|
# laptop display management
|
||||||
|
|
||||||
|
# Load config & functions
|
||||||
|
#. ${HOME}/ayo.conf
|
||||||
|
#. ${scripts_dir}/functions.sh
|
||||||
|
|
||||||
|
#command=$1
|
||||||
|
|
||||||
if [ "$1" = "1920" ] || [ "$1" = "1200" ]; then
|
if [ "$1" = "1920" ] || [ "$1" = "1200" ]; then
|
||||||
xrandr --output eDP-1 --mode 1920x1200
|
xrandr --output eDP-1 --mode 1920x1200
|
||||||
elif [ "$1" = "1280" ] || [ "$1" = "800" ]; then
|
elif [ "$1" = "1280" ] || [ "$1" = "800" ]; then
|
||||||
|
|
Loading…
Reference in a new issue