Skip to content

Instantly share code, notes, and snippets.

@sebva
Created May 10, 2017 07:19
Show Gist options
  • Save sebva/4022e2b7e509fb28f8ba6819f880bf41 to your computer and use it in GitHub Desktop.
Save sebva/4022e2b7e509fb28f8ba6819f880bf41 to your computer and use it in GitHub Desktop.
Switch to DVI monitor on dock with scaling of 1, or to laptop integrated monitor with scaling of 1.6 on GNOME
#!/bin/sh
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <1>}"
gsettings set org.gnome.desktop.interface scaling-factor 1
xrandr --output eDP1 --off --output DP2-2 --auto
#!/bin/sh
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gdk/WindowScalingFactor': <2>}"
gsettings set org.gnome.desktop.interface scaling-factor 2
xrandr --output DP2-2 --off --output eDP1 --auto --scale 1.25x1.25 --panning 3200x1800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment