Simple resolution setter for Linux

  • Thread starter Thread starter Sono
  • Start date Start date
  • Views Views 821
  • Replies Replies 0
  • Likes Likes 1

Sono

cripple piss
Developer
Joined
Oct 16, 2015
Messages
2,997
Solutions
2
Reaction score
11,999
Trophies
3
XP
11,122
Country
Hungary
It's nothing fancy, just a one-liner script to set your resolution :P

Here are some options:
Download resset.sh
function resset { LEL=`cvt $2 $3 $4 | grep "Modeline" | cut -b10- | tr -s " "`;NAEM=`echo $LEL | cut -d'"' -f2`;echo $LEL | xargs xrandr --newmode;xrandr --addmode $1 $NAEM;xrandr --output $1 --mode $NAEM; }

No matter what option you choose, the parameters are the same:
Code:
resset <connector> <width> <height> <refresh>

Example:
Code:
resset VGA-0 1360 768 60
 
Last edited by Sono,
  • Like
Reactions: ihaveahax

Site & Scene News

Popular threads in this forum