우분투 (15.10으로 테스트)와 IntelliJ (및 아마도 더 많은 Jetbrains 제품) 사이의 모든 충돌 단축키를 비활성화하는이 스크립트를 만들었습니다. 우분투에서 비활성화합니다.
또한 이전 설정을 복원 할 수 있도록 백업 파일을 생성합니다.
단축키를 비활성화하지 않으려면 KEYS
배열 에서 주석을 주석 처리하십시오 .
#!/bin/bash
set -euo pipefail
# Disables Ubuntu shortcuts that clash with IntelliJ Idea (and probably other
# Jetbrain products).
#
# Creates a backup file to restore the previous settings. To not have some
# shortcuts disabled, comment them out in the `KEYS` array.
#
# Tested on : Ubuntu 15.10
# Author : Jonas Gröger
readonly BACKUP_FILE="undo-fix-shortcuts-$(date +%s%N).sh"
readonly KEYS=(
"/org/gnome/desktop/wm/keybindings/toggle-shaded"
"/org/gnome/settings-daemon/plugins/media-keys/screensaver"
"/org/gnome/settings-daemon/plugins/media-keys/terminal"
"/org/gnome/desktop/wm/keybindings/switch-to-workspace-down"
"/org/gnome/desktop/wm/keybindings/switch-to-workspace-up"
"/org/gnome/desktop/wm/keybindings/switch-to-workspace-left"
"/org/gnome/desktop/wm/keybindings/switch-to-workspace-right"
"/org/gnome/desktop/wm/keybindings/begin-move"
"/org/gnome/desktop/wm/keybindings/begin-resize"
# To disable resetting a value, just comment out the line
)
readonly DISABLED_VALUE="['disabled']"
main() {
# Make backup
printf "#!/bin/bash\n" >> "$BACKUP_FILE"
for key in "${KEYS[@]}"; do
local value
value=$(dconf read "$key")
printf "dconf write \"%s\" \"%s\"\n" "$key" "$value" >> "$BACKUP_FILE"
done
# Disable all Ubuntu shortcuts
for key in "${KEYS[@]}"; do
dconf write "$key" "$DISABLED_VALUE"
done
}
main
여기에서 얻을 수 있습니다 :
wget -O fix-shortcuts.sh https://gist.githubusercontent.com/JonasGroeger/94cfa1071fa12572f465/raw/fix-shortcuts.sh
IntelliJ IDEA
?