Skip to content

Instantly share code, notes, and snippets.

@Gyubin
Gyubin / inputsource_aurora.lua
Created May 20, 2026 09:55
[hammerspoon] 입력소스에 따라 메뉴막대 색상 변경하기
-- Originated from: https://johngrib.github.io/wiki/hammerspoon-inputsource-aurora/
local ENGLISH_SOURCE_ID = "com.apple.keylayout.ABC"
local BAR_ALPHA = 0.3
local BAR_COLOR = { red = 0.95, green = 0.25, blue = 0.25 }
local canvases = {}
local function clearBars()
for _, c in ipairs(canvases) do c:delete() end
canvases = {}
@Gyubin
Gyubin / mac_input_source_final.md
Last active June 6, 2026 10:17
맥북 입력소스 관련 설정 최종본

macOS 한/영 전환 세팅

요약

  • Right Command → F19: hidutil
  • 입력소스 전환: Hammerspoon
    • 손쉬운 사용 + 입력 모니터링 권한 필요
  • ₩ → backtick(`) 치환: DefaultKeyBinding.dict
  • 시스템 설정의 입력소스 단축키: 해제
@Gyubin
Gyubin / karabiner_control_c_normalizer.json
Last active May 7, 2026 10:17
[karabiner] Map Ctrl+ㅊ to Ctrl+C
{
"description": "Map Ctrl+ㅊ to Ctrl+C",
"manipulators": [
{
"from": {
"key_code": "c",
"modifiers": {
"mandatory": ["control"],
"optional": ["any"]
}
@Gyubin
Gyubin / karabiner_change_input_source_when_tmux_shortcut.json
Last active May 7, 2026 10:16
[karabiner]tmux prefix 입력할 때 한글 입력소스일 때 미작동 케이스 대응
{
"description": "한글 모드에서만 Ctrl+b 입력시 영문으로 전환 후 명령어 전달",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "b",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
@Gyubin
Gyubin / karabiner_normalize_f19.json
Last active May 7, 2026 10:18
[karabiner] f19를 한영 전환으로 쓸 때 각종 미작동 문제 대응
{
"description": "Normalize modified F19 to plain F19 (split rules)",
"manipulators": [
{
"from": {
"key_code": "f19",
"modifiers": {
"mandatory": ["left_shift"],
"optional": ["any"]
}
@Gyubin
Gyubin / karabiner_convert_input_source_to_en_when_press_esc.json
Last active May 7, 2026 10:20
[karabiner] ESC 누르면 한영전환->ESC 형태로 동작
{
"description": "Convert to en when ESC",
"manipulators": [
{
"from": {
"key_code": "escape",
"modifiers": { "optional": ["any"] }
},
"to": [
{
@Gyubin
Gyubin / Install PyQt5 on Ubuntu with python3 .md
Created April 28, 2022 13:09 — forked from r00tdaemon/Install PyQt5 on Ubuntu with python3 .md
Install PyQt5 on Ubuntu with python3. Steps to set up PyQt5 (ubuntu). With python code generation

Installation

pip3 install --user pyqt5  
sudo apt-get install python3-pyqt5  
sudo apt-get install pyqt5-dev-tools
sudo apt-get install qttools5-dev-tools

Configuring to run from terminal