Simple resolution setter for Linux

Sono

cripple piss
Developer
GBAtemp Patron
Joined
Oct 16, 2015
Messages
2,446
Trophies
0
Location
solitary confinement
XP
5,366
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: ihaveamac

Site & Scene News

General chit-chat
Help Users
  • Adran_Marit @ Adran_Marit:
    Yeah I imagine there will be a short period where prices are low then the next series will come out and low and behold have high prices again
  • kenenthk @ kenenthk:
    Today's games look just fine at 1080 with decent 60fos unless you have disposable income it's not really worth it
  • kenenthk @ kenenthk:
    Probably won't be that long until theirs 4k capable apus around $400
  • PeeJay Bonobo @ PeeJay Bonobo:
    And I'm here stuck with my 3800X (though I need to plan if I want to upgrade to a 5900X) and an RX 5700 (XT BIOS).
  • p1ngpong @ p1ngpong:
    DEAD
  • DinohScene @ DinohScene:
    ALIVE
  • Slluxx @ Slluxx:
    oh wow, chat available from any where, nice
  • AkiraKurusu @ AkiraKurusu:
    Are scalpers still scalping PS5s? If no, might plan on getting one soonish.
  • SG854 @ SG854:
    Glad I got my 3080 at retail price
  • kenenthk @ kenenthk:
    Weird got a reCaptcha check by
    refreshing the page
  • Rob_Boates @ Rob_Boates:
    ill never understand how this chat works
  • SG854 @ SG854:
    Do you even chat bro?
  • tsao @ tsao:
    no
  • Rob_Boates @ Rob_Boates:
    i only chat with certified cool dudes
  • RedoLane @ RedoLane:
    that color is unreadable without highlighting the text
  • RedoLane @ RedoLane:
    it is, however, readable in dark mode :wtf:
  • Rob_Boates @ Rob_Boates:
    it's the colour i use on twitch for my username because it's my favourite colour, the camoflauge is an added benefit :)
  • RedoLane @ RedoLane:
    Is that so
  • RedoLane @ RedoLane:
    hmmm, now that I switched to dark mode, need to come with a easy-to-read shade of red
  • Slluxx @ Slluxx:
    @RedoLane that color is so unbelievably unpleasant for dark mode. holy moly
  • RedoLane @ RedoLane:
    heheh, i know
  • RedoLane @ RedoLane:
    but it's a part of my name's pun
    RedoLane @ RedoLane: but it's a part of my name's pun