diff --git a/README.md b/README.md index b88be5a..f00279a 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ But in this case you will have to create config file yourself (see Another way to install `ixwindow` is from github repository. First you have to clone it: ```sh -git clone git@github.com:andreykaere/ixwindow.git && cd ixwindow +git clone https://github.com:andreykaere/ixwindow && cd ixwindow ``` If you want the bleeding edge version, switch to `dev` branch. @@ -63,7 +63,10 @@ exec = /path/to/ixwindow tail = true ``` Now you have to put it somewhere on bar: for example, you can add it right -next to your window manager module like that: `modules-left = ixwindow`. +next to your window manager module like that: `modules-left = ixwindow`. +Also, you will have to have `override-redirect = true` set in your bar config. +This will, however make polybar appear even in fullscreen mode, overlapping +the window. To restore normal behaviour also add `wm-restak = `. If you have multi monitors setup, then you need to have distinct bar for each of them and create modules like this: diff --git a/install b/install index 33b2616..f081407 100755 --- a/install +++ b/install @@ -28,7 +28,7 @@ init_config_file () { local location; if [ -z "$XDG_CONFIG_HOME" ]; then mkdir --parents "$HOME/.config/ixwindow" - location="$HOME" + location="$HOME/.config" else mkdir --parents "$XDG_CONFIG_HOME/ixwindow" location="$XDG_CONFIG_HOME" @@ -77,7 +77,7 @@ do done -# install +install init_config_file diff --git a/src/main.rs b/src/main.rs index 1f516fc..a28421f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ struct Opts { #[arg(long, short)] monitor_name: Option, - #[arg(long, short)] + #[arg(long = "config", short)] config_path: Option, } diff --git a/src/x11_utils.rs b/src/x11_utils.rs index 00f5062..21a18ab 100644 --- a/src/x11_utils.rs +++ b/src/x11_utils.rs @@ -118,6 +118,8 @@ fn get_polybar_ids( if (wm_class.as_str(), wm_instance.as_str()) == ("polybar", "Polybar") { polybar_ids.push(window); } + + println!("wm_class: {wm_class}; wm_instance: {wm_instance}"); } Ok(polybar_ids)