bdwmb/doc/CUSTOM_MODULES.md
Ari Archer df4a3c1dc7
update @ Sat 19 Mar 17:14:52 EET 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-03-19 17:14:52 +02:00

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

  1. go into your ~/.config/bdwmb/modules directory:
cd ~/.config/bdwmb/modules
  1. make a new module:
vim test
  1. add a shbang to the file:
#!/bin/sh
  1. write the main function:
btest() {
}
  1. in the function, let's greet the user:
printf 'welcome, %s' "$USER"
  1. add the module to our modules in our ~/.config/bdwmb/config.sh:
export MODULES=('test')
  1. done, here's our final source code:

~/.config/bdwmb/modules/test

#!/bin/sh

btest() {
    printf 'welcome, %s' "$USER"
}