Skip to content
On this page

SlowQuitApps

SlowQuitApps

SlowQuitApps Banner

개요

맥에서 +q는 윈도에서 alt+f4와 같은, 앱을 종료하는 단축키이다.

다만 맥에서는 q키의 절묘한 위치로 인해 탭을 닫으려다(+w) 앱을 통째로 종료하는 일이 가끔 생기곤 한다.

이 SlowQuitApps는 이 +q에 딜레이를 줘서 실수로 앱을 닫는 것을 막아주는 역할을 한다.

설치

홈페이지에서 다운로드하여 설치하거나, brew cask로 설치한다.

brew tap dteoh/sqa
brea cask install slowquitapps

앱 실행 후 System Preferences - Security & Privacy - Privacy - Accessibility에서 SlowQuitApps.app을 체크 해 줘야한다.

앱 설정

앱에서 건드릴 수 있는 설정은 단 세개밖에 없다.

  • Remove from Dock 독에서 앱 아이콘을 없앤다.
  • Open at Login 로그인 할 때 마다 앱을 실행한다.
  • Show in Finder 앱 위치를 파인더에서 연다.

커맨드라인 설정

필수사항

모든 설정은 앱을 재시작해야 적용된다.

종료 딜레이 확인

defaults read com.dteoh.SlowQuitApps

종료 딜레이 변경

5초로 변경하려면 다음과 같이 터미널에 입력한다.

defaults write com.dteoh.SlowQuitApps delay -int 5000

화이트리스트 등록

딜레이 없이 종료할 앱을 등록할 수 있다.

# 앱 패키지 이름 검색
osascript -e 'id of app "Notes"'
# 검색에서 나온 패키지 이름
com.apple.Notes
# 딜레이 변경
defaults write com.dteoh.SlowQuitApps whitelist -array-add com.apple.Notes

화이트 리스트 리셋

defaults delete com.dteoh.SlowQuitApps whitelist

화이트 리스트 확인

defaults read com.dteoh.SlowQuitApps whitelist

블랙리스트 모드

화이트리스트와 달리, 특정 앱만 딜레이를 줘서 종료하는 모드로 변경한다.

defaults write com.dteoh.SlowQuitApps invertList -bool YES

다시 되돌리려면 다음 명령어를 사용한다.

defaults delete com.dteoh.SlowQuitApps invertList

오버레이 숨김

+q를 누를 때 나오는 애니메이션 오버레이를 제거한다.

defaults write com.dteoh.SlowQuitApps displayOverlay -bool NO

링크

깃허브