Last active
September 29, 2022 10:35
-
-
Save imneonizer/946867deeec026b7e5b19f71de10ac73 to your computer and use it in GitHub Desktop.
Update Monitor refresh rates from terminal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function set_refresh_rate(){ | |
xrandr -d :1 --output $1 --mode $2 --rate $3 | |
} | |
# update refresh rate for main monitor | |
set_refresh_rate DP-0 2560x1440 60.00 | |
sleep 0.5 | |
set_refresh_rate DP-0 2560x1440 164.96 | |
# update refresh rate for secondary monitor | |
set_refresh_rate HDMI-0 1680x1050 60.00 | |
sleep 0.5 | |
set_refresh_rate HDMI-0 1680x1050 74.89 | |
# update refresh rate for primary monitor | |
set_refresh_rate eDP-1-1 1920x1080 60.00 | |
sleep 0.5 | |
set_refresh_rate eDP-1-1 1920x1080 144.00 | |
# start imwheel daemon | |
# to make cursor smooth and | |
# increase scrolling speed | |
if ! pgrep imwheel >> /dev/null;then | |
imwheel >> /dev/null | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To control brightness