[stijn@hermes ~]$ cat .config/openbox/scripts/openbox-mount.sh
#!/bin/sh
# Usage: <menu id="ssh-to" label="$menuname" execute="~/.config/openbox/scripts/openbox-mount.sh $device" />
# Small script to mount/unmount removable devices with a single click
# Prone to errors; eager for testing
# Fstab entries should match the device names or their symlinks used
# (for convenience, if not, you have to adapt the script for each device)
grep $1 /etc/mtab &> /dev/null && umount /media/$1 || mount /media/$1