Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
svelterust committed Aug 29, 2023
1 parent 278d2a4 commit 0e7a11d
Show file tree
Hide file tree
Showing 3 changed files with 94 additions and 4 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# raise

Run or raise implemented for Hyprland. It will raise window if it exists,
or cycle to next window if current window is of same class. Otherwise
or cycle to next window if current window matches class to focus. Otherwise
it will launch new window.

```
$ raise
Usage: raise -c <class> -e <launch>
Raise window if it exists, otherwise create new instance.
Raise window if it exists, otherwise launch new window.
Options:
-c, --class class to focus
Expand All @@ -31,4 +31,12 @@ bind = SUPER_SHIFT, F, exec, emacsclient --create-frame

## How to find class?

Run `hyprcl clients` while window is open, and look for `class: <class>`.
Run `hyprctl clients` while window is open, and look for `class: <class>`.

## How to install this?

There are multiple ways to install this:

1. Go to [releases](https://github.com/knarkzel/raise/releases)
2. `cargo install --git https://github.com/knarkzel/raise`
3. Add `github:knarkzel/raise` as a flake to your NixOS configuration
82 changes: 82 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use miniserde::{json, Deserialize};
use std::process::{Child, Command};

#[derive(FromArgs)]
/// Raise window if it exists, otherwise create new instance.
/// Raise window if it exists, otherwise launch new window.
struct Args {
/// class to focus
#[argh(option, short = 'c')]
Expand Down

0 comments on commit 0e7a11d

Please sign in to comment.