Skip to content

toggletag

bakkeby edited this page Jul 27, 2021 · 4 revisions

Minor patch that lets you use the same keyboard shortcut to toggle to the previous tag if the designated tag is already active.

This allows you to use e.g. MOD+4 to quickly view the 4th tag and use the same keybinding to toggle back to what it was previously. The default behaviour in dwm forces you to use either MOD+tab or MOD+1 to change back to the previous tag.

The toggletag-anytag patch (for the lack of a better name) also toggles to the previous tags if the next tag being activated was previously activated. E.g. if tags 1, 3 and 4 are viewed and the view is changed to tag 7 and then followed by MOD+4 to move to tag 4, then tags 1, 3 and 4 will be viewed instead of tag 4 alone.

Download

Clone this wiki locally