Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Rearrange windows on iconbar in Fluxbox

I don't know C++, so I don't know how to add a patch to Fluxbox to make it easy to drag and rearrange the windows on the iconbar (aka taskbar). But I've dabbled with some higher-level X tools, and here's my dirty solution to rearrange the windows.

1
2
3
4
5
#!/bin/sh
# designed to be used with a keyboard shortcut
# in ~/.fluxbox/keys that could be:
# Control Shift Mod4 X :Exec /home/username/bin/move-to-end-of-taskbar.sh
xdotool getactivewindow windowunmap windowmap

This is original research. Any arbitrary window that is active, can be hidden and then redrawn, to make it show up last in the list, so it is on the end. Do it enough, and the remaining windows will be bumped to the first in the list.

Alternatives

This functionality has been requested in fluxbox itself, but has not been implemented: Fluxbox / Feature Requests / #94 Rearrange toolbar buttons order

Comments