update hwylterm

This commit is contained in:
Daylin Morgan 2024-11-11 16:09:47 -06:00
parent a41acd54a3
commit 884cb9c68c
Signed by: daylin
GPG key ID: 950D13E9719334AD
5 changed files with 9 additions and 13 deletions

View file

@ -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")):

View file

@ -48,7 +48,7 @@
pname = "hyprman";
version = "unstable";
src = cleanSource ./.;
nimbleDepsHash = "sha256-hZ7aDy8mqfWxZqdCxB+z7OTc38u14fQaEwMqERSYqV0=";
nimbleDepsHash = "sha256-OqyB91B9bjyZXavb4Ikv2wMpH8UPsTGn2dmqiX8IFT0=";
};
});
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);

View file

@ -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"

View file

@ -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": {

View file

@ -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()