From 7e054e6ad6894f2608a2a373f29d05edf3dd22e4 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 30 Nov 2023 10:08:49 +0300 Subject: [PATCH 1/6] Fix `git clone` in README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b88be5a..6178977 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. From b41519ff5eccf1557ffcc20c4a2e303e92bb54b9 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 30 Nov 2023 10:17:48 +0300 Subject: [PATCH 2/6] Fix `install` script when XDG_CONFIG_HOME is empty --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index 33b2616..d68e1d8 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" From 3bb9cb282683ca238947ae038db5ae0f1575fb41 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 30 Nov 2023 10:22:26 +0300 Subject: [PATCH 3/6] Fix `ixwindow` not building in `install` script --- install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install b/install index d68e1d8..f081407 100755 --- a/install +++ b/install @@ -77,7 +77,7 @@ do done -# install +install init_config_file From 399d848cffca1c7998e82cb8cf9a33ae8d47a227 Mon Sep 17 00:00:00 2001 From: Andrey Date: Thu, 30 Nov 2023 10:28:04 +0300 Subject: [PATCH 4/6] Fix `--config` option handling --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, } From d39bbd0ef9d8db91fc2dd469ed0ac8d1d1ab5a50 Mon Sep 17 00:00:00 2001 From: Andrey Date: Fri, 1 Dec 2023 19:17:07 +0300 Subject: [PATCH 5/6] Add debug println for detecting polybar --- src/x11_utils.rs | 2 ++ 1 file changed, 2 insertions(+) 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) From f031ea9be348f47b7e56169024e66767942b6a62 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 6 Dec 2023 14:47:45 +0300 Subject: [PATCH 6/6] Update polybar setup section in README.md If certain options in polybar's bar config are not specified, bar can overlap the icon. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6178977..f00279a 100644 --- a/README.md +++ b/README.md @@ -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: