Last active
May 20, 2019 13:36
-
-
Save Douile/f807d2155b0bdd8caf1c7b2a855b7815 to your computer and use it in GitHub Desktop.
Fix my DP monitor
This file contains 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 | |
# wget -O - -o /dev/null https://gist.githubusercontent.com/Douile/f807d2155b0bdd8caf1c7b2a855b7815/raw/fix_dp.sh | /bin/sh | |
# Make sure xrandr is installed | |
echo "Installing xrandr..." | |
sudo pacman -S arandr --needed | |
# Turn display off-and-on | |
# This is specific to my setup | |
echo "Toggling DP monitor..." | |
xrandr --output DP-1 --off | |
xrandr --output DP-1 --auto --primary --left-of HDMI-1 | |
# Restart i3 just because | |
echo "Restarting i3..." | |
i3-msg restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment