Skip to content

Instantly share code, notes, and snippets.

@mausch
Created January 3, 2022 18:27
Show Gist options
  • Save mausch/7c23233c21f4df3d9bccb72d7d15ff95 to your computer and use it in GitHub Desktop.
Save mausch/7c23233c21f4df3d9bccb72d7d15ff95 to your computer and use it in GitHub Desktop.
Pianoteq + rotate screen + music sheets
#!/usr/bin/env nix-shell
#! nix-shell -p xorg.xrandr -p chromium -p pianoteq.stage-6 -i bash
input="Elan Touchpad"
function restore {
xrandr -o normal
xinput set-prop "$input" --type=float "Coordinate Transformation Matrix" 1 0 0 0 1 0 0 0 1
kill $!
}
trap restore EXIT
xrandr -o right
xinput set-prop "$input" --type=float "Coordinate Transformation Matrix" 0 1 0 -1 0 1 0 0 1
cpupower frequency-set -g performance
chromium --new-window file:///home/mauricio/partituras/
Pianoteq\ 6\ STAGE &
read -n1 -s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment