Advertisement
onejdc

Some Graphics / resolution Commands

Sep 16th, 2023
1,240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.33 KB | None | 0 0
  1. X=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f1)
  2.  
  3. Y=$(xrandr --current | grep '*' | uniq | awk '{print $1}' | cut -d 'x' -f2)
  4.  
  5.  
  6. echo "$X"x"$Y"
  7.  
  8. xdpyinfo | awk '/dimensions/{print $2}'
  9.  
  10. cat /sys/class/drm/<card>/modes
  11. cvt X Y Refresh
  12. xrandr --newmode "<NAME>" <CVT_COPY_PASTE>
  13.  
  14. pacman -S amdgpu
Tags: computing
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement