update hwylterm
This commit is contained in:
parent
a41acd54a3
commit
884cb9c68c
5 changed files with 9 additions and 13 deletions
|
@ -6,9 +6,6 @@ task update, "update deps":
|
||||||
exec "nimble lock -l"
|
exec "nimble lock -l"
|
||||||
exec "nimble setup -l"
|
exec "nimble setup -l"
|
||||||
|
|
||||||
task build, "build":
|
|
||||||
selfExec "c --outdir:bin src/hyprman.nim"
|
|
||||||
|
|
||||||
# begin Nimble config (version 2)
|
# begin Nimble config (version 2)
|
||||||
--noNimblePath
|
--noNimblePath
|
||||||
when withDir(thisDir(), system.fileExists("nimble.paths")):
|
when withDir(thisDir(), system.fileExists("nimble.paths")):
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
pname = "hyprman";
|
pname = "hyprman";
|
||||||
version = "unstable";
|
version = "unstable";
|
||||||
src = cleanSource ./.;
|
src = cleanSource ./.;
|
||||||
nimbleDepsHash = "sha256-hZ7aDy8mqfWxZqdCxB+z7OTc38u14fQaEwMqERSYqV0=";
|
nimbleDepsHash = "sha256-OqyB91B9bjyZXavb4Ikv2wMpH8UPsTGn2dmqiX8IFT0=";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
||||||
|
|
|
@ -13,4 +13,4 @@ bin = @["hyprman"]
|
||||||
requires "nim >= 2.0.8"
|
requires "nim >= 2.0.8"
|
||||||
requires "yaml"
|
requires "yaml"
|
||||||
requires "jsony"
|
requires "jsony"
|
||||||
requires "https://github.com/daylinmorgan/hwylterm#b6202f4f"
|
requires "https://github.com/daylinmorgan/hwylterm#65a952e"
|
||||||
|
|
|
@ -3,12 +3,12 @@
|
||||||
"packages": {
|
"packages": {
|
||||||
"hwylterm": {
|
"hwylterm": {
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"vcsRevision": "b6202f4f51edadd041d2b5f2aed1d75abcd4ee51",
|
"vcsRevision": "65a952e9f0d75659d39f8a3b146753e291ee0a66",
|
||||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||||
"downloadMethod": "git",
|
"downloadMethod": "git",
|
||||||
"dependencies": [],
|
"dependencies": [],
|
||||||
"checksums": {
|
"checksums": {
|
||||||
"sha1": "eb38b434419ec70f080f79b7826c3c3989a2c74a"
|
"sha1": "10894d492bbe1d0ea32ee9bb0686abfcd3b0b0fe"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"jsony": {
|
"jsony": {
|
||||||
|
|
|
@ -11,7 +11,8 @@ import ./[
|
||||||
hwylCli:
|
hwylCli:
|
||||||
name "hyprman"
|
name "hyprman"
|
||||||
subcommands:
|
subcommands:
|
||||||
--- mako
|
|
||||||
|
[mako]
|
||||||
... "interact with mako"
|
... "interact with mako"
|
||||||
flags:
|
flags:
|
||||||
count:
|
count:
|
||||||
|
@ -20,11 +21,9 @@ hwylCli:
|
||||||
* 10
|
* 10
|
||||||
- c
|
- c
|
||||||
json:
|
json:
|
||||||
T bool
|
|
||||||
? "output as json"
|
? "output as json"
|
||||||
- j
|
- j
|
||||||
reverse:
|
reverse:
|
||||||
T bool
|
|
||||||
? "swap notification order"
|
? "swap notification order"
|
||||||
- r
|
- r
|
||||||
run:
|
run:
|
||||||
|
@ -34,7 +33,7 @@ hwylCli:
|
||||||
for n in history.notifications:
|
for n in history.notifications:
|
||||||
echo $bb(n)
|
echo $bb(n)
|
||||||
|
|
||||||
--- start
|
[start]
|
||||||
... "launch eww"
|
... "launch eww"
|
||||||
run:
|
run:
|
||||||
notify("starting eww")
|
notify("starting eww")
|
||||||
|
@ -43,10 +42,10 @@ hwylCli:
|
||||||
if code != 0:
|
if code != 0:
|
||||||
notify(fmt"failed to open eww bar{i}")
|
notify(fmt"failed to open eww bar{i}")
|
||||||
|
|
||||||
--- watch
|
[watch]
|
||||||
... "handle monitor changes on hyprland"
|
... "handle monitor changes on hyprland"
|
||||||
run: watchHyprland()
|
run: watchHyprland()
|
||||||
|
|
||||||
--- eww
|
[eww]
|
||||||
... "watch hyprland events for eww class changes"
|
... "watch hyprland events for eww class changes"
|
||||||
run: streamEwwClasses()
|
run: streamEwwClasses()
|
||||||
|
|
Loading…
Reference in a new issue