This program allows dwm users to create, store, and run macros (templates) in dwm (or any other window manager).
sudo make install
dwmtemplate [-d directory] template
- Each template is a list of xdotool commands, which will be run at once.
- Use the
-dflag to change the directory to look for templates in. - Templates are stored in
~/.local/share/dwmtemplateby default
The following will open the default browser in tag 1 (using Super key as default modifier and default keybindings) and open github.com:
key Super_L+1 # switch to tag 1
exec $BROWSER "https://github.com" # open github.com in default browser
If you find a bug, submit an issue, PR, or email me with a description and/or patch.
Copyright (c) 2025 Ben O'Neill ben@oneill.sh. This work is released under the terms of the MIT License. See LICENSE for the license terms.