Add bitcoin script

This commit is contained in:
ItsDrike 2024-06-21 14:58:31 +02:00
parent 41cd22ea33
commit 42155645b0
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
7 changed files with 45 additions and 2 deletions

View file

@ -1,6 +1,6 @@
(defwidget bitcoin_module []
(eventbox
:onclick "~/.local/bin/scripts/cli/bitcoin | xargs -I_ ${EWW_CMD} update bitcoin=_"
:onclick "bitcoin | xargs -I_ ${EWW_CMD} update bitcoin=_"
:class "module bitcoin"
(box

View file

@ -37,7 +37,7 @@
(defpoll bitcoin
:interval "5m"
:initial "$N/A"
`~/.local/bin/scripts/cli/bitcoin`)
`bitcoin`)
; TODO: Figure out how to store this one-time
(defpoll kernel

View file

@ -6,6 +6,8 @@
}: let
inherit (lib) mkIf;
scriptPkgs = (import ../../../../packages/cli/scripts/packages {inherit pkgs;});
cfg = osConfig.myOptions.home-manager.programs.bars.eww;
in {
config = mkIf cfg.enable {
@ -36,6 +38,7 @@ in {
wireplumber
pulseaudio
hyprland
scriptPkgs.bitcoin
];
in {
Unit = {