문서의 이전 판입니다!
$HOME/.config/openbox/rc.xml$HOME/.config/openbox/lubuntu-rc.xml<keybind key="A-Tab"> <action name="NextWindow"/> </keybind> <keybind key="S-A-Tab"> <action name="PreviousWindow"/> </keybind> <keybind key="C-A-Tab"> <action name="NextWindow"> <panels>yes</panels> <desktop>yes</desktop> </action> </keybind> <keybind key="W-Tab"> <action name="NextWindow"> <finalactions> <action name="Focus"/> <action name="Raise"/> <action name="Unshade"/> <action name="MoveResizeTo"> <!-- center the window which we're focusing --> <x>center</x> <y>center</y> </action> </finalactions> </action> </keybind>
Alt-F2 로 띄우는 실행창 등의 단축키로 띄우는 프로그램들이 전면으로 뜨지 않고 백그라운드로 뜨는 문제가 발생하고 있다. rc.xml 파일에서 단축키로 띄우는 애플리케이션들에 다음 항목을 추가해야 한다. <applications> 요소가 있으면 그 안의 내용만 넣고, 없으면 통째로 복사한다.
<applications> <application name="lxpanel"> <focus>yes</focus> </application> <application name="pcmanfm"> <focus>yes</focus> </application> </applications>
lxpanel run이 실행창을 띄우는 명령이라서 저런 설정을 할 것이다. 자세한 사항은 rc.xml에 함께 들어있는 주석을 참조한다.
기본적으로 마우스 휠을 바탕화면에서 작동시키면 데스크탑을 이전/다음으로 이동할 수 있다. 이 기능이 터치패드를 사용할 때 터치패드를 살짝 건드렸을 때 작동하는 경우가 자주 발생하여 꺼버렸다.
설정파일의 <mouse> 항목 아래에서 다음 부분을 <!– 내용 –> 형태로 주석처리한다. 휠을 통한 데스크탑 이동은 금지되지만 Alt-휠, Ctrl-Alt-휠은 작동한다.
<context name="Desktop"> <!-- <mousebind action="Click" button="Up"> <action name="DesktopPrevious"/> </mousebind> <mousebind action="Click" button="Down"> <action name="DesktopNext"/> </mousebind> --> ... 그 외 내용 </context>
<Super><Shift>방향키를 통해 창을 배치하는 단축키 조합이다.<keybind key="S-W-Up">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-k">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-Down">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>50%</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-j">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>50%</y>
<width>100%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-Left">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key="S-W-h">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key="S-W-Right">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>50%</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key="S-W-l">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>50%</x>
<y>0</y>
<width>50%</width>
<height>100%</height>
</action>
</keybind>
<keybind key="S-W-Home">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-End">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>0</x>
<y>50%</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-Page_Up">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>50%</x>
<y>0</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-Page_Down">
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>50%</x>
<y>50%</y>
<width>50%</width>
<height>50%</height>
</action>
</keybind>
<keybind key="S-W-M">
<action name="ToggleMaximizeFull"/>
</keybind>
gmrun 명령어 실행기. Alt-F2로 등록terminator 터미널을 사용한다고 가정 했을 때.sudo apt-get install terminator wmctrl xdotool 먼저 수행.quaketerminal.sh#!/bin/sh
if [ "`wmctrl -l -x | grep -c QuakeTerminator`" = "0" ]
then
terminator -b --classname=QuakeTerminator &
# compton 사용시 투명도 조정
sleep 1
xdotool search QuakeTerminator windowfocus
compton-trans -c 80
# OpenBox가 아닐 경우에는 아래 필요할 수도. Window Manager의 설정 기능에 따라 달라짐.
#sleep 1
#wmctrl -x -r QuakeTerminator -e 0,0,0,-1,-1
#wmctrl -x -r QuakeTerminator -b add,maximized_horz
#wmctrl -x -r QuakeTerminator -b add,above
else
echo "running else.."
wmctrl -x -r QuakeTerminator -b toggle,hidden
xdotool search QuakeTerminator windowfocus
fi
~/.config/openbox/rc.xml<applications> <application name="QuakeTerminator"> <position force="yes"> <x>0</x> <y>0</y> </position> <size> <!-- 원하는 대로 크기 조정 --> <width>100%</width> <height>50%</height> </size> <focus>yes</focus> <layer>above</layer> <shade>no</shade> <decor>no</decor> <skip_pager>yes</skip_pager> <skip_taskbar>yes</skip_taskbar> </application> </applications> <!-- 단축키 바인딩 추가 : Super + ~ --> <keyboard> <keybind key="W-grave"> <action name="Execute"> <command>quaketerminal.sh</command> </action> <action name="Focus"/> </keybind> </keyboard>
openbox --reconfigure 명령으로 설정 변경 적용application > name은 obxprop 명령으로 Terminator 윈도우를 찍었을 때 출력되는 _OB_APP_NAME 값.--layout이나 --profile 등의 옵션과의 조합도 가능하므로 다양하게 활용가능.