- This implies you're running xserver with nvidia graphics card (mostly laptops)
- Make sure you have https://github.com/Askannz/optimus-manager
- Put these files in /etc/optimus-manager
Last active
November 28, 2021 14:24
-
-
Save pxseu/8112a89d79b289fbcdce45ea4390372e to your computer and use it in GitHub Desktop.
Set resolution in x for my stupid monitor
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/sh | |
# Everything you write here will be executed by the display manager when setting up the login screen in "integrated" mode. | |
xrandr --newmode "2560x1080_75.00" 294.00 2560 2744 3016 3472 1080 1083 1093 1130 -hsync +vsync | |
xrandr --addmode HDMI2 "2560x1080_75.00" | |
# xrandr --output HDMI2 --mode "2560x1080_75.00" |
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/sh | |
# Everything you write here will be executed by the display manager when setting up the login screen in "nvidia" mode. | |
# (but before optimus-manager sets up PRIME with xrandr commands). | |
xrandr --newmode "2560x1080_75.00" 294.00 2560 2744 3016 3472 1080 1083 1093 1130 -hsync +vsync | |
xrandr --addmode HDMI-1-2 "2560x1080_75.00" | |
if [$DESKTOP_SESSION == "plasma-i3"] | |
then | |
feh --bg-scale ~/Backgrounds/desktop-also.jpg | |
pkill "latte-dock" | |
fi | |
# xrandr --output HDMI-1-2 --mode "2560x1080_75.00" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment