Created
November 23, 2015 21:22
-
-
Save markuskont/7f92c47b906c2c083a66 to your computer and use it in GitHub Desktop.
Fix keyboard mapping for logitech k750 (mac version). Meant to be run in crontab, bat PATH and DISPLAY variables must be set!
This file contains hidden or 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 | |
if [[ $(/usr/bin/xinput | /bin/grep K750) ]] ; then | |
/usr/bin/setxkbmap -option apple:badmap,lv3:rwin_switch,altwin:swap_alt_win | |
else | |
/usr/bin/setxkbmap -option | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment