Created
November 25, 2022 00:30
-
-
Save timschneeb/caff2fef40358a79d6e4af7cf8f31074 to your computer and use it in GitHub Desktop.
rotate-screen.sh (keyboard hotkey for MSI Modern 15)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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