-
Notifications
You must be signed in to change notification settings - Fork 186
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
feat: add window effects for hiding title bar and changing corner style #735
Conversation
Ay this is great, thanks for the pr 🙌 Reckon it'd be best to instead add it as a window effect like we've got with window borders, e.g. window_effects:
focused_window:
hide_title_bar:
enabled: true
other_windows:
hide_title_bar:
enabled: true If you're down to make the change, modify the |
I will look into it. |
The current version is now functional and is using focused_window:
hide_title_bar:
enabled: true
corner:
enabled: true
# Allowed values: 'windows_default', 'square', 'round', 'small_round'
style: 'square' But I have noticed that removing the title bar of some windows can cause problems, e.g:
Therefore it would be nice to have the ability to But I think it could be beneficial to use window_effects:
focused_window:
border:
enabled: true
color: '#8dbcff'
hide_title_bar:
enabled: false
other_windows:
border:
enabled: true
color: '#a1a1a1'
hide_title_bar:
enabled: true One could use: window_rules:
- commands: ['set-title-bar-visibility true', 'set-border-color #8dbcf']
# (set-border-color would need to be implemented)
on: 'focus'
run_once: false
match:
- window_class: { equals: 'example' }
- commands: ['set-title-bar-visibility false', 'set-border-color #a1a1a1']
on: 'unfocus'
run_once: false
match:
- window_class: { equals: 'example' } (Could be made cleaner by making I think this system would be more extendable. What do you think? |
Matching in |
Will merge as is but will likely do some naming tweaks before release. There's a bug with the border color not being set reliably, so gonna do some changes to how window effects work after the merge
True that's a good point. If we added an |
There was a bug where the win11 window animation would disappear after disable the titlebar . refer to : |
Not sure whether we'd be able to change that behavior unfortunately. The animations are built into the OS and we don't do anything on our side to trigger the animation |
🎉 This PR is included in version 3.3.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This PR adds the command
set-title-bar-visibility <true|false>
to enable hiding title bars.This closes #504.
For example all title bars can then be deactivated with:
Windows that have custom titlebars are uneffected.