2011-06-16

By Xyne

openbox_scripts

About

The titles says it all. These are scripts for Openbox. Most if not all will be for pipemenus. Check the projects page for more Openbox applications. They will most likely begin with "Ob", e.g. ObFileBrowser.

Winhere

This was inspired by a script posted by vivitron on the Arch Linux forum. It will move the active window to the mouse location when combined with a keybinding. This is useful when a window is off-screen and can't be easily moved, as may happen if you start up in Twinview mode while only using one screen.

#!/bin/bash

# This script will move the active window to the mouse's location. It can be
# used to retrieve windows that are no longer visible on the screen.
#
# Save it as "winhere" somewhere on your PATH and then add the following lines
# to the "<keyboard>" section of Openbox's rc.xml file:
#
#     <keybind key="W-h">
#       <action name="Execute">
#         <command>winhere</command>
#       </action>
#     </keybind>
#
# Focus a window with alt-tab and then press w-h (Windows/super key + h) to move
# the window to the mouse's location. Change "w-h" if you would prefer another
# binding.
#
# This obviously depends on xdotool, so make sure that you have it installed.
#
# /Xyne


eval $(xdotool getmouselocation --shell)
xdotool getactivewindow windowmove $X $Y

Files

  • ObPacView - a pipemenu to display information about installed pacman packages
  • unnamed script on the forum - a desktop file lister (mostly for Openbox) for manually editing menus
  • ObMenuCleaner - removes obsolete items from the Openbox Menu (menu.xml)

Directory Listing

FileSizeLast Modified
obmenucleaner3.04 KiB2011-06-16 02:59 GMT
obpacview7.91 KiB2010-03-30 02:00 GMT