810 B
810 B
Custom modules
To add a custom module you need to create them in ~/.config/bdwmb/modules directory.
Proper way of creating a module:
We will create a module called "test" in this semi tutorial with a type of shellscript
- go into your
~/.config/bdwmb/modules
directory:
cd ~/.config/bdwmb/modules
- make a new module:
vim test
- add a shbang to the file:
#!/bin/sh
- write the main function:
btest() {
}
- in the function, let's greet the user:
printf 'welcome, %s' "$USER"
- add the module to our modules in our
~/.config/bdwmb/config.sh
:
export MODULES=('test')
- done, here's our final source code:
~/.config/bdwmb/modules/test
#!/bin/sh
btest() {
printf 'welcome, %s' "$USER"
}