update hwylterm
This commit is contained in:
parent
9f2be2c4ac
commit
a49b057bb6
4 changed files with 18 additions and 28 deletions
12
flake.nix
12
flake.nix
|
@ -15,23 +15,21 @@
|
|||
}:
|
||||
let
|
||||
inherit (nixpkgs.lib) genAttrs cleanSource;
|
||||
supportedSystems = [
|
||||
systems = [
|
||||
"x86_64-linux"
|
||||
"x86_64-darwin"
|
||||
"aarch64-linux"
|
||||
"aarch64-darwin"
|
||||
];
|
||||
forAllSystems =
|
||||
f:
|
||||
genAttrs supportedSystems (
|
||||
system:
|
||||
forSystem =
|
||||
f: system:
|
||||
f (
|
||||
import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ nim2nix.overlays.default ];
|
||||
}
|
||||
)
|
||||
);
|
||||
forAllSystems = f: genAttrs systems (forSystem f);
|
||||
in
|
||||
{
|
||||
devShells = forAllSystems (pkgs: {
|
||||
|
@ -48,7 +46,7 @@
|
|||
pname = "hyprman";
|
||||
version = "unstable";
|
||||
src = cleanSource ./.;
|
||||
nimbleDepsHash = "sha256-noqNxRnz8C7HTiqtO6u9+Oe9tC8C9cBSGSpIUrN5btU=";
|
||||
nimbleDepsHash = "sha256-s1uyhpie+tqUmrlCTV6alGmJhY6roGNU8l2W7CpWQqA=";
|
||||
};
|
||||
});
|
||||
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
||||
|
|
|
@ -13,4 +13,4 @@ bin = @["hyprman"]
|
|||
requires "nim >= 2.0.8"
|
||||
requires "yaml"
|
||||
requires "jsony"
|
||||
requires "https://github.com/daylinmorgan/hwylterm#dbde9c9"
|
||||
requires "https://github.com/daylinmorgan/hwylterm#1324ba54"
|
||||
|
|
|
@ -3,12 +3,12 @@
|
|||
"packages": {
|
||||
"hwylterm": {
|
||||
"version": "0.1.0",
|
||||
"vcsRevision": "dbde9c91e972e101c6e9da4ad87a0b2fa6d1bee8",
|
||||
"vcsRevision": "1324ba54151eeb6c2a28d8236854ccfb9885b530",
|
||||
"url": "https://github.com/daylinmorgan/hwylterm",
|
||||
"downloadMethod": "git",
|
||||
"dependencies": [],
|
||||
"checksums": {
|
||||
"sha1": "aa7def4e92d09001e407791bbe02f21c4d835158"
|
||||
"sha1": "b5c3cc2e8ed4ce5514750d1216d0816cd4ef0dc7"
|
||||
}
|
||||
},
|
||||
"jsony": {
|
||||
|
|
|
@ -13,12 +13,9 @@ hwylCli:
|
|||
settings Propagate, InferShort
|
||||
flags:
|
||||
[global]
|
||||
config:
|
||||
i configPath
|
||||
T string
|
||||
? "path to config file"
|
||||
c|config(string, "path to config file"):
|
||||
* (getConfigDir() / "hyprman" / "config.yml")
|
||||
- c
|
||||
i configPath
|
||||
S HideDefault
|
||||
preSub:
|
||||
config.load(configPath)
|
||||
|
@ -26,14 +23,9 @@ hwylCli:
|
|||
[mako]
|
||||
... "interact with mako"
|
||||
flags:
|
||||
count:
|
||||
T int
|
||||
? "# of notifications"
|
||||
* 10
|
||||
json:
|
||||
? "output as json"
|
||||
reverse:
|
||||
? "swap notification order"
|
||||
count(10, int, "# of notifications")
|
||||
json "outptut as json"
|
||||
reverse "swap notification order"
|
||||
run:
|
||||
let history = getHistory(reverse, count)
|
||||
if json: echo $(%* history)
|
||||
|
|
Loading…
Add table
Reference in a new issue