diff --git a/README.md b/README.md index f672626..4f4f988 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # raise Run or raise implemented for Hyprland. It will raise window if it exists, -and cycle to next window if current window is of same class. Otherwise +or cycle to next window if current window is of same class. Otherwise it will launch new window. ``` @@ -18,8 +18,7 @@ Options: ## Example configuration -I like having Super + bound to run or raise, and Super + Shift -+ to launch application regularly. +I like having Super + `` bound to run or raise, and Super + Shift + `` to launch application regularly. ``` bind = SUPER, V, exec, /home/odd/.cargo/bin/raise --class "Alacritty" --launch "alacritty" diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..ed05172 --- /dev/null +++ b/flake.nix @@ -0,0 +1,20 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + naersk-package = { + url = "github:nix-community/naersk"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + }; + + outputs = { self, nixpkgs, flake-utils, naersk-package, ... }: + flake-utils.lib.eachDefaultSystem (system: let + pkgs = import nixpkgs {inherit system;}; + naersk = pkgs.callPackage naersk-package {}; + in { + defaultPackage = naersk.buildPackage { + src = ./.; + }; + }); +}