xrandr outputs and dashes
uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!
Start file
xrandr \ --output VIRTUAL1 --off \ --output DP3 --off \ --output eDP1 --off \ --output DP1 --off \ --output DP2 --off \ --output HDMI3 --off \ --output HDMI2 --off \ --output HDMI1 --off \ --output DP3-1 --off \ --output DP3-3 --off \ --output DP3-2 --off \ --output eDP1 --primary --mode 1920x1080
End file
xrandr \ --output VIRTUAL-1 --off \ --output DP-3 --off \ --output eDP-1 --off \ --output DP-1 --off \ --output DP-2 --off \ --output HDMI-3 --off \ --output HDMI-2 --off \ --output HDMI-1 --off \ --output DP-3-1 --off \ --output DP-3-3 --off \ --output DP-3-2 --off \ --output eDP-1 --primary --mode 1920x1080
View Diff
2,13c2,13 < --output VIRTUAL1 --off \ < --output DP3 --off \ < --output eDP1 --off \ < --output DP1 --off \ < --output DP2 --off \ < --output HDMI3 --off \ < --output HDMI2 --off \ < --output HDMI1 --off \ < --output DP3-1 --off \ < --output DP3-3 --off \ < --output DP3-2 --off \ < --output eDP1 --primary --mode 1920x1080 --- > --output VIRTUAL-1 --off \ > --output DP-3 --off \ > --output eDP-1 --off \ > --output DP-1 --off \ > --output DP-2 --off \ > --output HDMI-3 --off \ > --output HDMI-2 --off \ > --output HDMI-1 --off \ > --output DP-3-1 --off \ > --output DP-3-3 --off \ > --output DP-3-2 --off \ > --output eDP-1 --primary --mode 1920x1080
Solutions
The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!
Check out these helpful resources to improve your Vim skills... Game on.
Unlock 220 remaining solutions by signing in and submitting your own entry
#221 Kenny Nguyen / @KennyNg72375669 - Score: 56 - 08/05/20 @ 19:09
:%s/VIRTUAL/VIRTUAL-/g<CR>:%s/DP/DP-/g<CR>:%s/HDMI/HDMI-<CR>:wq!<CR>
0 comments