feat: new separate display script
This commit is contained in:
parent
b767eec20a
commit
2a1ddedc7a
2 changed files with 11 additions and 14 deletions
9
display.sh
Normal file
9
display.sh
Normal file
|
@ -0,0 +1,9 @@
|
|||
# laptop display management
|
||||
|
||||
if [ "$1" = "1920" ] || [ "$1" = "1200" ]; then
|
||||
xrandr --output eDP-1 --mode 1920x1200
|
||||
elif [ "$1" = "1280" ] || [ "$1" = "800" ]; then
|
||||
xrandr --output eDP-1 --mode 1280x800
|
||||
else
|
||||
xrandr --output eDP-1 --mode 1680x1050
|
||||
fi
|
16
up.sh
16
up.sh
|
@ -8,17 +8,5 @@
|
|||
|
||||
#command=$1
|
||||
|
||||
set_display_resolution() {
|
||||
if [ "$1" = "1920" ] || [ "$1" = "1200" ]; then
|
||||
xrandr --output eDP-1 --mode 1920x1200
|
||||
else
|
||||
xrandr --output eDP-1 --mode 1680x1050
|
||||
fi
|
||||
}
|
||||
|
||||
if [ $1 = "display" ] || [ $1 = "d" ]; then
|
||||
set_display_resolution $2
|
||||
else
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
flatpak update -y
|
||||
fi
|
||||
sudo apt update && sudo apt upgrade -y
|
||||
flatpak update -y
|
||||
|
|
Loading…
Reference in a new issue