Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #10 "No Icons after manually compiling (multiple issues)" #11

Merged
merged 6 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 = <wm> ixwindow`.
next to your window manager module like that: `modules-left = <wm> 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 = <your-wm>`.

If you have multi monitors setup, then you need to have distinct bar for
each of them and create modules like this:
Expand Down
4 changes: 2 additions & 2 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -77,7 +77,7 @@ do
done


# install
install

init_config_file

2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ struct Opts {
#[arg(long, short)]
monitor_name: Option<String>,

#[arg(long, short)]
#[arg(long = "config", short)]
config_path: Option<PathBuf>,
}

Expand Down
2 changes: 2 additions & 0 deletions src/x11_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ fn get_polybar_ids<Conn: Connection>(
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)
Expand Down