Comments (5)
I think the idea to ignore Apps matching a regex is a great idea, I will implement for sure this in the next update.
Thanks for the feedback and for the idea!
from workspaces-by-open-apps.
added this to extension.js
which fixed it for me:
if (app.get_id().match(/window/i)) return false;
Could probably figure out a way to test for the regex pattern while iterating icons_ignored
, but I'm not sure this isn't an issue specific to my system.
from workspaces-by-open-apps.
I got this working locally:
const windows = workspace
.list_windows()
// filter out ignored apps
.filter(win => {
if (!win) return false
const app = Shell.WindowTracker.get_default().get_window_app(win)
if (!app) return false
// perform case insensitivity regex match on ignored strings
const matches = this._settings.icons_ignored.filter(i => {
const regex = new RegExp(i, 'i');
return regex.test(app.get_id());
});
return !this._settings.icons_ignored.includes(app.get_id()) && matches.length < 1
})
It's a bit aggressive and could easily wind up ignoring valid things... happy to toss up a PR but you can probably come up with something better.
from workspaces-by-open-apps.
That's pretty much what I will do, I will probably add a label in settings to inform that regex are supported, that's all.
I'd be happy if you want to open a PR.
from workspaces-by-open-apps.
Related Issues (20)
- [Improvement] Monochrome Icons option HOT 1
- Hide empty workspaces HOT 2
- Ability to change workspace index number to custom workspace names HOT 2
- Display workspace new name without switching workspace HOT 1
- Touch support HOT 4
- Feature Request: add support for previous versions of Gnome-shell HOT 6
- Extension position on panel not working properly with "Hide empty workspaces" setting on HOT 1
- Feature Request: Limit Maximum Widget Width (otherwise it might eat up half the taskbar or more) HOT 3
- remove 'ALL' text when using with desktop icons ng HOT 5
- Limit max number of apps for workspace HOT 1
- Maybe Bug? Ghost App icons in the ALL section HOT 4
- Porting to GNOME 45 HOT 7
- Dialogs, popovers and tooltip seen make additional icons appear HOT 2
- [Feature Request] Style for minimized apps HOT 6
- Error after updating Extension HOT 4
- GNOME 40 Adw not found HOT 2
- Overview when clicking on an empty workspace HOT 1
- Hide GNOME default activities button HOT 1
- CSS issues HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workspaces-by-open-apps.