Pouvez-vous basculer entre les windows d'une application dans Openbox?

Est-il possible de configurer une binding dans Openbox pour basculer entre les windows ouvertes dans une application? Tout comme vous pouvez dans gnome 3 avec alt + [touche au-dessus de l'onglet].

J'ai implémenté cette fonction en utilisant wmctrl.

La partie pertinente dans rc.xml d'openbox:

<keybind key="A-space"> <action name="execute"> <execute>wmctrl-switch-by-application</execute> </action> </keybind> 

dessous est le code dans wmctrl-switch-by-application:

 # taken from: http://www.st0ne.at/?q=node/58 # get id of the focused window active_win_id=$(xprop -root | grep '^_NET_ACTIVE_W' | awk -F'# 0x' '{print $2}') # get window manager class of current window win_class=$(wmctrl -x -l | grep $active_win_id | awk '{print $2 " " $3}' ) # get list of all windows matching with the class above win_list=$(wmctrl -x -l | grep "$win_class" | awk '{print $1}' ) # get next window to focus on switch_to=$(echo $win_list | sed s/.*$active_win_id// | awk '{print $1}') # if the current window is the last in the list ... take the first one if [ -z "$switch_to" ];then switch_to=$(echo $win_list | awk '{print $1}') fi # switch to window wmctrl -i -a $switch_to 

Vous pouvez basculer entre les windows de tous les bureaux, ou même inclure le bureau lui-même et les panneaux, comme décrit dans la page Actions d'Openbox , mais il ne semble pas possible de basculer entre les windows d'une même application.

Vous pouvez basculer entre n'importe quelle window ou application ouverte en appuyant sur Alt et Tab. Même s'il y a deux windows ouvertes du même programme.