Open BKer opened 5 years ago
cc @Ma27
Hmm yeah, I vaguely remember that there were some kind of issues like this, unfortunately I don't use yabar
anymore on my laptop.
My suggestion is to allow multiple types (e.g. types.either types.str types.int
) for the extra
values and add the quotes if the type is a string. The only thing I'm not so sure about is how to deal with the hex codes for colors as Nix doesn't support hex numbers on a language-level, but we can probably try to use builtins.match
to detect a hex number.
Do you want to give this a try? The relevant file is in ./nixos/modules/programs/yabar.nix
and you could use nixos-build-vms
to test the change. Feel free to ping me if you need further assistance. If you encounter some unexpected issues then, I can also give this a try next week :)
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Issue description
The
nixpkgs/nixos/modules/programs/yabar.nix
file allows for adding extra parameters using the .extra parameter. The extra parameters are a key-value pair. This is perfect, however it turns the values into strings and for example the background-color-rgb does not take a String value type. There are several more non String options, see: https://github.com/geommer/yabar/wiki/Bar-specific-optionsSteps to reproduce
Edit
configuration.nix
and add:Of course also run a rebuild Effect, the bar does not change to the desired color.
Technical details
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the results."x86_64-linux"
Linux 4.19.33-hardened, NixOS, 19.09pre174415.d956f2279b8 (Loris)
yes
yes
nix-env (Nix) 2.2
"nixos-19.09pre174415.d956f2279b8"
/nix/var/nix/profiles/per-user/root/channels/nixos
PS. This is all to the best of my current knowledge, as I'm pretty new to NixOS.