Skip to content

Commit 670789f

Browse files
committed
Merge pull request #34 from cyrinux/33-bug-empty-titles-exclude-will-also-exclude-classes-with-actual-titles
chore: update doc
2 parents e720848 + 70716cd commit 670789f

File tree

4 files changed

+94
-26
lines changed

4 files changed

+94
-26
lines changed

Cargo.lock

+86-20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "hyprland-autoname-workspaces"
33
authors = ["Cyril Levis", "Maxim Baz"]
4-
version = "0.4.0"
4+
version = "0.4.1"
55
edition = "2021"
66
categories = ["gui"]
77
keywords = ["linux", "desktop-application", "hyprland","waybar","wayland"]

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ Example:
5555
```
5656
...
5757
[exclude]
58-
fcitx = ".*"
58+
"(?i)fcitx" = ".*" # will match all title for fcitx
5959
"[Ss]team" = "Friends list.*"
60+
"[Ss]team" = "^$" # will match and exclude all Steam class with empty title (some popups)
6061
```
6162

6263
- You can match on title with `[title.classname]` with `"a word in the title" = "icons"`.

src/config/mod.rs

+5-4
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,16 @@ pub fn create_default_config(cfg_path: &PathBuf) -> Result<&'static str, Box<dyn
115115
[title."(?i)kitty"]
116116
"(?i)neomutt" = "neomutt"
117117
118-
119118
# Add your applications that need to be exclude
120119
# The key is the class, the value is the title.
121120
# You can put an empty title to exclude based on
122121
# class name only, "" make the job.
123122
[exclude]
124-
fcitx = ".*"
125-
"[Ss]team" = "Friends List"
126-
"(?i)TestApp" = ""
123+
"(?i)fcitx" = ".*" # will match all title for fcitx
124+
"(?i)TestApp" = "" # will match all title for TestApp
125+
aProgram = "^$" # will match null title for aProgram
126+
"[Ss]team" = "Friends List.*"
127+
"[Ss]team" = "^$" # will match all Steam window with null title (some popup)
127128
"#;
128129

129130
let mut config_file = File::create(cfg_path)?;

0 commit comments

Comments
 (0)