Software to complement window manager

Tools

by ross at 07:23:40 on October 28, 2011

x11/xdotool

This utility allows to you send keystrokes to windows from scripts.

# cd /usr/ports/x11/xdotool
# make install clean

For example, to send Win+Shift+s:

xdotool key super+shift+s

x11/automation

This is another tool to send keystrokes

# cd /usr/ports/x11/xautomation
# make install clean

For example, to send Win+Shift+s:

xte 'keydown Super_L' && xte 'keydown Shift_L' && xte 'key s' && xte 'keyup Shift_L' && xte 'keyup Super_L'

x11/xbindkeys

# cd /usr/ports/x11/xbindkeys
# make install clean
# cd
# xbindkeys --defaults > .xbindkeysrc

Usage (this example is good to use before launching MythTV):

#space_bar_from_left_click
"xte 'keydown space' 'keyup space'"
b:1
#escape_from_right_click
"xte 'keydown Escape' 'keyup Escape'"
b:3

Just kill running xbindkeys to disable its hotkeys.

x11-wm/devilspie

Utility to modify window properties as they are launched.

To make xterm semitransparent — ~/.devilspie/xterm.ds (requires x11-wm/transset-df):

( if
( contains ( application_name ) "xterm" )
( begin
( spawn_async (str "transset-df -i " (window_xid) " 0.65") )
)
)

Maximize and undecorate windows of VirtualBox virtual machines (but not control or utility windows) — ~/.devilspie/virtualbox.ds:

( if
( contains ( window_name ) "- Oracle VM VirtualBox" )
( begin
( undecorate )
( maximize )
)
)

 

Comments