Skip to content

Instantly share code, notes, and snippets.

@timschneeb
Created November 25, 2022 00:30
Show Gist options
  • Save timschneeb/caff2fef40358a79d6e4af7cf8f31074 to your computer and use it in GitHub Desktop.
Save timschneeb/caff2fef40358a79d6e4af7cf8f31074 to your computer and use it in GitHub Desktop.
rotate-screen.sh (keyboard hotkey for MSI Modern 15)
#!/bin/bash
kscreen-doctor -j 1 | grep 'rotation' | grep '4' &> /dev/null
if [ $? == 0 ]; then
kscreen-doctor output.1.rotation.normal
else
kscreen-doctor output.1.rotation.inverted
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment