1) ~/.config/openbox/autostart.sh
오박의 시작 프로그램 스크립트. 플럭스박스의 것을 조금 손보면 그대로 쓸 수 있음.
xmodmap ~/.Xmodmap
stalonetray --dockapp-mode simple &
# (sleep 1 && xfce4-panel) &
nabi &
# wicd-client &
2) ~/.config/openbox/rc.xml
설정 파일 겸 단축키 설정 파일
메뉴 편집과 오박 설정은 obmenu와 obconf에서.
몇 가지 단축키 :
W : 윈도즈키(Meta4)
A : 알트키
C : 콘트롤
S : 시프트
볼륨 설정
<action name="Execute">
<execute>amixer -q set PCM 2%-</execute>
</action>
</keybind>
<keybind key="W-F12">
<action name="Execute">
<execute>amixer -q set PCM 2%+</execute>
</action>
</keybind>
다른 작업공간으로 창 보내기
<action name="SendToDesktopLeft">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
<keybind key="S-A-Right">
<action name="SendToDesktopRight">
<dialog>no</dialog>
<wrap>no</wrap>
</action>
</keybind>
1 ~ 4번 작업공간
<action name="Desktop">
<desktop>1</desktop>
</action>
</keybind>
<keybind key="C-F2">
<action name="Desktop">
<desktop>2</desktop>
</action>
</keybind>
<keybind key="C-F3">
<action name="Desktop">
<desktop>3</desktop>
</action>
</keybind>
<keybind key="C-F4">
<action name="Desktop">
<desktop>4</desktop>
</action>
</keybind>
바탕화면 보기, 창 닫기
<action name="ToggleShowDesktop"/>
</keybind>
<!-- Keybindings for windows -->
<keybind key="A-F4">
<action name="Close"/>
</keybind>
루트 메뉴, 창 메뉴, 창목록 메뉴
<action name="ShowMenu">
<menu>client-list-combined-menu</menu>
</action>
</keybind>
<keybind key="C-Escape">
<action name="ShowMenu">
<menu>root-menu</menu>
</action>
</keybind>
<keybind key="A-Escape">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>
thunar, gmrun, firefox 실행
<action name="Execute">
<execute>thunar</execute>
</action>
</keybind>
<keybind key="A-F2">
<action name="Execute">
<execute>gmrun</execute>
</action>
</keybind>
<keybind key="A-F3">
<action name="Execute">
<execute>iceweasel</execute>
</action>
</keybind>
창 전환, 작업 공간 전환. (bracket 키 - "[" 와 "]")
<action name="NextWindow"/>
</keybind>
<keybind key="W-Tab">
<action name="DesktopNext"/>
</keybind>
<keybind key="A-bracketleft">
<action name="DesktopPrevious"/>
</keybind>
<keybind key="A-bracketright">
<action name="DesktopNext"/>
</keybind>
최대화, 창 이동, 창 크기 변경
<action name="ToggleMaximizeFull"/>
</keybind>
<keybind key="W-w">
<action name="Move"/>
</keybind>
<keybind key="W-e">
<action name="Resize"/>
</keybind>
윈도즈 7처럼 화면 좌우로 절반 정도 최대화하기.
Resize 명령은 토글이 아니어서 원상복귀는 되지 않는다.
<action name="ToggleMaximizeVert"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>500</width>
</action>
</keybind>
<keybind key="W-Right">
<action name="TogglemaximizeVert"/>
<action name="MoveResizeTo">
<x>-0</x>
<y>0</y>
<width>500</width>
</action>
</keybind>
마우스 버튼 기본 설정은 조금 어색.
창을 활성화하면 무조건 Shade가 풀리도록 되어 있는 식.
어려운 건 없으므로 차근히 읽어보고 고칠 것.