Skip to content

Instantly share code, notes, and snippets.

@SofianeHamlaoui
Created June 4, 2021 10:06
Show Gist options
  • Select an option

  • Save SofianeHamlaoui/1db13f796033761db4acb101cc0646ae to your computer and use it in GitHub Desktop.

Select an option

Save SofianeHamlaoui/1db13f796033761db4acb101cc0646ae to your computer and use it in GitHub Desktop.
Sofiane Screen Res
#!/bin/bash
if [[ $(xrandr | grep "eDP" | awk '{print $1;}') == "eDP-1" ]]
then
xrandr --output eDP-1 --scale 1.3x1.3
elif [[ $(xrandr | grep "eDP" | awk '{print $1;}') == "eDP-1-1" ]]
then
xrandr --newmode "2496x1404_144.00" 767.25 2496 2720 2992 3488 1404 1407 1412 1529 -hsync +vsync
xrandr --addmode eDP-1-1 "2496x1404_144.00"
xrandr --output eDP-1-1 --mode "2496x1404_144.00"
else
echo "Wrong output a weldi, check again"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment