mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 18:30:43 +00:00
Add bitcoin script
This commit is contained in:
parent
41cd22ea33
commit
42155645b0
7 changed files with 45 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue