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

Allow list for opacity #6

Closed
Th3Whit3Wolf opened this issue Feb 9, 2021 · 8 comments
Closed

Allow list for opacity #6

Th3Whit3Wolf opened this issue Feb 9, 2021 · 8 comments

Comments

@Th3Whit3Wolf
Copy link

It would be nice to allow certain application to be exempt from opacity change when they lose focus. I watch sometimes videos with mpv in one split and program in another split. I would prefer to keep mpv's opacity at 1.0 when it's not in focus

@johnae
Copy link
Owner

johnae commented Feb 9, 2021

I've toyed with something along these lines here: #7 - you need to find proper criteria for the windows you want to skip setting opacity for. Please try it out.

@johnae
Copy link
Owner

johnae commented Feb 9, 2021

For example, skip setting any opacity for all firefox windows would look like this:

persway -o0.8 -s 'app_id="firefox"'

The -s option can be specified multiple times.

@Th3Whit3Wolf
Copy link
Author

This works! Out of curiosity what's preventing the PR from getting merged?

@johnae
Copy link
Owner

johnae commented Feb 12, 2021

Mostly I just wanted you to try it out since I'm not sure I will use this functionality.

@Th3Whit3Wolf
Copy link
Author

Yeah it works as expected

@Th3Whit3Wolf
Copy link
Author

Actually there are some issues. It doesn't seem to work while using autolayout and workspace renaming

~/.local/share/cargo/bin/persway -a -w -o0.8 -s 'app_id="firefox"' - s 'app_id="mpv"'
```

Opacity stays at 0.8 for all non skipped windows

@johnae
Copy link
Owner

johnae commented Feb 15, 2021

Seems you've got an issue with your command line, that last "- s" should be "-s". Alternatively you could do this:

persway -a -w -o0.8 -s 'app_id="firefox"' 'app_id="mpv"'

The extra space in your cmdline makes persway execute some quite odd commands which leads to opacity staying at 0.8 for all non-skipped windows.

@johnae johnae closed this as completed Feb 17, 2021
@Th3Whit3Wolf
Copy link
Author

Sorry that's my fault should have double check before I posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants