Skip to content

Instantly share code, notes, and snippets.

@bootandy
Last active March 6, 2023 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bootandy/ecbba7241368f0dffa646ee12660345b to your computer and use it in GitHub Desktop.
Save bootandy/ecbba7241368f0dffa646ee12660345b to your computer and use it in GitHub Desktop.
display_plugin
# To be run when plugged into display:
# Reset to normal laptop:
# xrandr --output eDP-1 --scale .5x.5
xrandr --auto
xrandr --output eDP-1-1 --mode 1920x1080 --pos 2560x400 --scale 1x1
xrandr --output DVI-I-2-1 --scale 1x1 --mode 2560x1440 --left-of eDP-1-1
# curve screen:
DISP=$(xrandr | rg ' connected' | tail -n 1 | cut -f 1 -d ' ')
# if this fails swap $DISP with DP-2 or whatever number is assigned
xrandr --output eDP-1 --mode 1920x1080 --pos 3440x576 --rotate normal --output HDMI-1 --off --output $DISP --primary --mode 3440x1440 --pos 0x0 --rotate normal
# The mouse
# xinputset-button-map `xinput list | grep 'Evoluent VerticalMouse 2' | grep -Eo 'id\=[0-9]+' | grep -oE '[0-9]+'` 3 2 1 4 5 6 7 8 1 10 11 12 13
xinput set-button-map `xinput list | grep 'Evoluent VerticalMouse 4' | grep -Eo 'id\=[0-9]+' | grep -oE '[0-9]+'` 3 1 2 4 5 6 2
# natural scrolling on trackpad
#xinput set-prop `xinput list | grep Touchpad | grep -Eo 'id\=[0-9]+' | grep -oE '[0-9]+'` 278 1
setxkbmap -layout gb -option ctrl:nocaps
xmodmap ~/.Xmodmap
xmodmap ~/.Xmodmap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment