From 884cb9c68c3d28542e581be762b13dcc380a8135 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 11 Nov 2024 16:09:47 -0600 Subject: [PATCH] update hwylterm --- config.nims | 3 --- flake.nix | 2 +- hyprman.nimble | 2 +- nimble.lock | 4 ++-- src/hyprman.nim | 11 +++++------ 5 files changed, 9 insertions(+), 13 deletions(-) diff --git a/config.nims b/config.nims index 1394a24..8e96cb3 100644 --- a/config.nims +++ b/config.nims @@ -6,9 +6,6 @@ task update, "update deps": exec "nimble lock -l" exec "nimble setup -l" -task build, "build": - selfExec "c --outdir:bin src/hyprman.nim" - # begin Nimble config (version 2) --noNimblePath when withDir(thisDir(), system.fileExists("nimble.paths")): diff --git a/flake.nix b/flake.nix index cdf9be3..40c56a8 100644 --- a/flake.nix +++ b/flake.nix @@ -48,7 +48,7 @@ pname = "hyprman"; version = "unstable"; src = cleanSource ./.; - nimbleDepsHash = "sha256-hZ7aDy8mqfWxZqdCxB+z7OTc38u14fQaEwMqERSYqV0="; + nimbleDepsHash = "sha256-OqyB91B9bjyZXavb4Ikv2wMpH8UPsTGn2dmqiX8IFT0="; }; }); formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style); diff --git a/hyprman.nimble b/hyprman.nimble index 831ade2..1ad017e 100644 --- a/hyprman.nimble +++ b/hyprman.nimble @@ -13,4 +13,4 @@ bin = @["hyprman"] requires "nim >= 2.0.8" requires "yaml" requires "jsony" -requires "https://github.com/daylinmorgan/hwylterm#b6202f4f" +requires "https://github.com/daylinmorgan/hwylterm#65a952e" diff --git a/nimble.lock b/nimble.lock index 286e74a..6ba2716 100644 --- a/nimble.lock +++ b/nimble.lock @@ -3,12 +3,12 @@ "packages": { "hwylterm": { "version": "0.1.0", - "vcsRevision": "b6202f4f51edadd041d2b5f2aed1d75abcd4ee51", + "vcsRevision": "65a952e9f0d75659d39f8a3b146753e291ee0a66", "url": "https://github.com/daylinmorgan/hwylterm", "downloadMethod": "git", "dependencies": [], "checksums": { - "sha1": "eb38b434419ec70f080f79b7826c3c3989a2c74a" + "sha1": "10894d492bbe1d0ea32ee9bb0686abfcd3b0b0fe" } }, "jsony": { diff --git a/src/hyprman.nim b/src/hyprman.nim index 14d45c4..bc9f38f 100644 --- a/src/hyprman.nim +++ b/src/hyprman.nim @@ -11,7 +11,8 @@ import ./[ hwylCli: name "hyprman" subcommands: - --- mako + + [mako] ... "interact with mako" flags: count: @@ -20,11 +21,9 @@ hwylCli: * 10 - c json: - T bool ? "output as json" - j reverse: - T bool ? "swap notification order" - r run: @@ -34,7 +33,7 @@ hwylCli: for n in history.notifications: echo $bb(n) - --- start + [start] ... "launch eww" run: notify("starting eww") @@ -43,10 +42,10 @@ hwylCli: if code != 0: notify(fmt"failed to open eww bar{i}") - --- watch + [watch] ... "handle monitor changes on hyprland" run: watchHyprland() - --- eww + [eww] ... "watch hyprland events for eww class changes" run: streamEwwClasses()