Skip to content

Instantly share code, notes, and snippets.

@pxseu
Last active November 28, 2021 14:24
Show Gist options
  • Save pxseu/8112a89d79b289fbcdce45ea4390372e to your computer and use it in GitHub Desktop.
Save pxseu/8112a89d79b289fbcdce45ea4390372e to your computer and use it in GitHub Desktop.
Set resolution in x for my stupid monitor
#!/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"
#!/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