Skip to content

tot0rokr/dotfiles

Repository files navigation

Integrated Bash Eenvironment

Step

Install fonts

Download Nerd Fonts

Install & Run

sudo apt update \
&& sudo apt install -y git \
&& \rm -f ~/.* \
; git clone https://github.com/tot0rokr/dotfiles.git ~ \
&& bash

셸 / tmux 설정 구조

이식 가능한 공통부와 머신 고유부를 분리한다. .bashrc.tmux.conf가 같은 패턴을 쓴다.

  • .bashrc / .tmux.conf — 진입점(추적됨). clone/install 시 ~/로 배치되는 기본 템플릿이다. 각각 ~/.bashrc.common / ~/.tmux.common.conf를 불러온 뒤, 이 머신 전용 설정을 그 아래에 직접 적어 쓴다.
  • .bashrc.common — 이식 가능한 공통 셸 설정: history/PATH/prompt/git/completion, bootstrap_user_tools·bootstrap_system_tools 등 설치 함수, starship/zoxide init. 시크릿 없음.
  • .tmux.common.conf — 이식 가능한 공통 tmux 설정: 플러그인(TPM)·키바인딩·status·테마·truecolor. bell-bash 같은 도구 연동은 ~/.tmux.conf에 머신 고유로 둔다.

진입점 파일(~/.bashrc·~/.tmux.conf)에 추가한 머신 고유 설정은 repo로 커밋하지 않는다(repo의 진입점은 기본 템플릿 상태 유지). 셸 시크릿은 ~/.config/secrets.env(chmod 600)에 두면 .bashrc.common이 자동 로드한다.

Desktop 사용

Windows Xming from X11 on ssh

  1. ✅ 1. Windows에서 Xming 실행
    Xming을 실행할 때 반드시 XLaunch를 이용해서 다음처럼 설정해야 합니다: Multiple windows Start no client Clipboard: 체크 (optional) No access control ← 이거 꼭 체크하세요 (그래야 외부 접속 허용됨)
    - Xming 바로가기 파일 속성에 -ac 추가
    
  2. SSH 접속 시 -X 또는 -Y 옵션 사용
    ssh -X <id>@<ubuntu-ip>
    ssh -Y <id>@<ubuntu-ip>
    
  3. Server SSH 설정(/etc/ssh/sshd_config)
    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost no
    
    sudo systemctl restart ssh
  4. $DISPLAY 설정(.bashrc에 해놨음)

If Linux Desktop

Keyboard mapping

https://github.com/jtroo/kanata/releases 에서 kanata 설치 -> $HOME/.bin/kanata 로 저장

[Unit]
Description=Kanata keyboard remapper
Documentation=https://github.com/jtroo/kanata

[Service]
Type=simple
ExecStart=/home/{USERNAME}/.local/bin/kanata --cfg /home/{USERNAME}/.config/kanata/tenkeyless.key
Restart=never

[Install]
WantedBy=default.target

.xprofile에 kime 사용 등록

export GTK_IM_MODULE=kime
export QT_IM_MODULE=kime
export XMODIFIERS=@im=kime

그 다음 systemctl daemon-reload / start / enable

Kime (Korean input)

참고: https://osg.kr/archives/3109

  1. 설치

    sudo apt install kime
  2. IM 등록 (im-config로 kime 선택 또는 ~/.xinputrcrun_im kime)

    im-config -n kime

    .xprofile / .profile 환경변수 (dotfiles에 포함):

    export GTK_IM_MODULE=kime
    export QT_IM_MODULE=kime
    export XMODIFIERS=@im=kime
  3. GNOME 입력소스에서 ibus 제거 (안 하면 한/영 토글이 ibus-hangul로 가서 kime 레이아웃이 안 먹음)

    gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us')]"
    pkill -f 'ibus-(daemon|engine|x11|portal|dconf|extension)'
  4. 설정 파일 배치 (dotfiles에 포함되어 있음)

    • ~/.config/kime/config.yaml — 신세벌식 P2 (sebeolsik-3sin-p2), ComposeChoseongSsang + ComposeJongseongSsang (세벌식 한정)
    • 한/영 토글 키: 우측 Alt, Hangul, Muhenkan, Super+Space, Shift+Space
  5. 데몬 기동

    pkill -x kime; pkill -x kime-indicator; pkill -x kime-xim
    nohup kime >/dev/null 2>&1 & disown

Gnome-shell-extensions

sudo apt install gnome-shell-extensions sudo apt install gnome-tweaks https://support.system76.com/articles/pop-keyboard-shortcuts/ https://github.com/pop-os/shell

Audio

sudo apt install pavucontrol # audio manager

Bluetooth

sudo apt install blueman # bluetooth manager

TMUX

# 1. 필요 패키지 설치
sudo apt update
sudo apt install -y git build-essential libevent-dev libncurses-dev bison pkg-config autotools-dev automake

# 2. 최신 tmux 소스 클론
git clone https://github.com/tmux/tmux.git
cd tmux

# 3. 최신 안정 버전으로 체크아웃 (예: 3.3a)
git checkout 3.3a

# 4. 빌드
sh autogen.sh
./configure
make

# 5. 설치 (옵션)
sudo make install

Kitty

~/.config/kitty/kitty.conf

# Truecolor 활성화
enable_true_color yes

# 외부 앱이 kitty 기능 제어 가능하게 허용
allow_remote_control yes

# (선택) 기본 TERM
term xterm-kitty

.tmux.conf

set -ga terminal-overrides ',xterm-kitty:Tc:sitm=\E[3m' # kitty

# 256 color
set -g default-terminal "xterm-kitty" # kitty

# true color
set -as terminal-features ',xterm-kitty:RGB' # kitty

# 터미널 에뮬레이터 고유 기능 사용을 위해 escape sequences tmux가 가로채지 않도록 하는 기능
set -g allow-passthrough on # kitty

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors