Skip to content

Instantly share code, notes, and snippets.

@matheusfaustino
Created June 1, 2020 18:39
Show Gist options
  • Save matheusfaustino/47296f057da07e38bc54c7d0b4fa5da9 to your computer and use it in GitHub Desktop.
Save matheusfaustino/47296f057da07e38bc54c7d0b4fa5da9 to your computer and use it in GitHub Desktop.
pre/post script with some tweaks for running better overwatch on linux using lutris (ubuntu 20.04 - gnome)
#overwatch-pre-script.sh
#!/bin/bash
xrandr --output HDMI-1 --primary --left-of eDP-1 # change primary display to monitor, instead of the notebook's display
gsettings set org.gnome.desktop.peripherals.mouse accel-profile 'flat' # remove mouse acceleration from gnome to respect mouse DPI
sleep 3 #just to give "time" for the things
##### Other script/file
#overwatch-post-script.sh
#!/bin/bash
xrandr --output eDP-1 --primary --right-of HDMI-1 #reorder default display
gsettings set org.gnome.desktop.peripherals.mouse accel-profile 'default' # return mouse acceleration
##### mouse tweak (set right DPI for you mouse. Mine is a steelseries rival 100)
# install https://github.com/flozz/rivalcfg and set the dpi of your will
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment