UtkarshVerma / dwmblocks-async

An efficient, lean, and asynchronous status feed generator for dwm.
GNU General Public License v2.0
224 stars 87 forks source link

command not found #37

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hello,

I installed the blocks but I think I miss something, if I run the command for a test in the terminal I get this.

Operating System: Arch Linux Kernel: Linux 6.0.2-arch1-1 dwm 6.4 zsh shell

dwmblocks                                                                                                                                                                                                                                                                                                                           0
sh: line 1: sb-disk: command not found
sh: line 1: sb-music: command not found
sh: line 1: sb-record: command not found
sh: line 1: sb-loadavg: command not found
sh: line 1: sb-date: command not found
UtkarshVerma commented 1 year ago

The scripts should be in your PATH or simply use the script full path as the command for the block.

If you want to use my scripts, they can be found here: https://github.com/UtkarshVerma/dotfiles/tree/main/.local/bin/statusbar

ghost commented 1 year ago

Thank you for you help I got this in the path:

echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl

And I got a folder named "statusbar" with your scripts in '/usr/local/bin/' and just in case I copied the folder to the source folder but the issue persists.

UtkarshVerma commented 1 year ago

/usr/local/bin/statusbar should also be in PATH.

ghost commented 1 year ago

it helped, thank you

errors are gone, but I don't see any changed in the statusbar, I left only the date for a test in the config.

#define CMDLENGTH 45
#define DELIMITER "  "
#define CLICKABLE_BLOCKS

const Block blocks[] = {
    BLOCK("sb-date",    1,    24)
};