[karabiner] dropped karabiner config

Apple broke Karabiner in macOS Sierra. This can be mostly accomplished
with Alfred aside from targeting the right-hand super key. Since I've
dropped macOS in favor of Linux, I don't see the need in keeping this
stuff around.
This commit is contained in:
Josh Sherman 2017-04-15 11:41:55 -05:00
parent cfb4120fcc
commit ffd398279f
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
2 changed files with 1 additions and 116 deletions

View file

@ -1,100 +0,0 @@
<?xml version="1.0"?>
<root>
<item>
<name>Right Command => Launch Alfred</name>
<identifier>rightCommand</identifier>
<autogen>
__KeyDownUpToKey__
KeyCode::COMMAND_R,
KeyCode::COMMAND_L, KeyCode::SPACE
</autogen>
</item>
<item>
<name>Right Command + H => Scroll Left</name>
<identifier>rightCommandH</identifier>
<autogen>
__KeyDownUpToKey__
KeyCode::H, ModifierFlag::COMMAND_R,
KeyCode::VK_MOUSEKEY_FIXED_DISTANCE_SCROLL_LEFT
</autogen>
</item>
<item>
<name>Right Command + J => Scroll Down</name>
<identifier>rightCommandJ</identifier>
<autogen>
__KeyDownUpToKey__
KeyCode::J, ModifierFlag::COMMAND_R,
KeyCode::VK_MOUSEKEY_FIXED_DISTANCE_SCROLL_DOWN
</autogen>
</item>
<item>
<name>Right Command + K => Scroll Up</name>
<identifier>rightCommandK</identifier>
<autogen>
__KeyDownUpToKey__
KeyCode::K, ModifierFlag::COMMAND_R,
KeyCode::VK_MOUSEKEY_FIXED_DISTANCE_SCROLL_UP
</autogen>
</item>
<item>
<name>Right Command + L => Scroll Right</name>
<identifier>rightCommandL</identifier>
<autogen>
__KeyDownUpToKey__
KeyCode::L, ModifierFlag::COMMAND_R,
KeyCode::VK_MOUSEKEY_FIXED_DISTANCE_SCROLL_RIGHT
</autogen>
</item>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Terminal</name>
<url type="file">/Applications/Utilities/Terminal.app</url>
</vkopenurldef>
<item>
<name>Right Command + 1 => Launch or Focus Terminal</name>
<identifier>rightCommand1</identifier>
<autogen>
--KeyToKey--
KeyCode::1, ModifierFlag::COMMAND_R,
KeyCode::VK_OPEN_URL_APP_Terminal
</autogen>
</item>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Chrome</name>
<url type="file">/Applications/Google Chrome.app</url>
</vkopenurldef>
<item>
<name>Right Command + 2 => Launch or Focus Chrome</name>
<identifier>rightCommand2</identifier>
<autogen>
--KeyToKey--
KeyCode::2, ModifierFlag::COMMAND_R,
KeyCode::VK_OPEN_URL_APP_Chrome
</autogen>
</item>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Franz</name>
<url type="file">/Applications/Franz.app</url>
</vkopenurldef>
<item>
<name>Right Command + 3 => Launch or Focus Franz</name>
<identifier>rightCommand3</identifier>
<autogen>
--KeyToKey--
KeyCode::3, ModifierFlag::COMMAND_R,
KeyCode::VK_OPEN_URL_APP_Franz
</autogen>
</item>
<vkopenurldef>
<name>KeyCode::VK_OPEN_URL_APP_Spotify</name>
<url type="file">/Applications/Spotify.app</url>
</vkopenurldef>
<item>
<name>Right Command + 4 => Launch or Focus Spotify</name>
<identifier>rightCommand5</identifier>
<autogen>
--KeyToKey--
KeyCode::5, ModifierFlag::COMMAND_R,
KeyCode::VK_OPEN_URL_APP_Spotify
</autogen>
</item>
</root>

17
install
View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ -z "$HOME" ]; then echo "Seems you don't have a \$HOME :("; exit 1; fi
if [ -z "$HOME" ]; then echo "Seems you're \$HOMEless :("; exit 1; fi
DOTFILES=$HOME/.dotfiles
@ -27,21 +27,6 @@ ln -s $DOTFILES/vim $HOME/.vim
ln -s $DOTFILES/zshrc $HOME/.zshrc
if [[ `uname` == 'Darwin' ]]; then
rm -rf $HOME/Library/Application\ Support/Karabiner
ln -s $DOTFILES/Karabiner $HOME/Library/Application\ Support/Karabiner
/Applications/Karabiner.app/Contents/Library/bin/karabiner reloadxml
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandH
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandJ
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandK
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommandL
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand1
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand2
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand3
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand4
/Applications/Karabiner.app/Contents/Library/bin/karabiner enable rightCommand5
defaults write com.apple.dock autohide-delay -float 86400; killall Dock
defaults write -g ApplePressAndHoldEnabled -bool false
fi