I am trying to run a script inside of my waybar config, which I have defined in my home-manager config.
It is looking for a command it can run when I click on it’s button like this:
on-click = "some-command";
In the past, I have written my bash scripts inside the double-quotes, being careful to always use ${pkgs.package}/bin/command
instead of command
, but this is a pain to write/edit/maintain.
I assume I can somehow use writeShellScript
, but when I tried this:
on-click = pkgs.writeShellScript "" ''
some-command
'';
it didn’t work.
Is there a problem with my syntax?