Skip to content

Commit

Permalink
Add flakes
Browse files Browse the repository at this point in the history
  • Loading branch information
svelterust committed Aug 29, 2023
1 parent 0691a8c commit 278d2a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.

```
Expand All @@ -18,8 +18,7 @@ Options:

## Example configuration

I like having Super + <key> bound to run or raise, and Super + Shift
+ <key> to launch application regularly.
I like having <kbd>Super</kbd> + `<key>` bound to run or raise, and <kbd>Super</kbd> + <kbd>Shift</kbd> + `<key>` to launch application regularly.

```
bind = SUPER, V, exec, /home/odd/.cargo/bin/raise --class "Alacritty" --launch "alacritty"
Expand Down
20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -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 = ./.;
};
});
}

0 comments on commit 278d2a4

Please sign in to comment.