Skip to content

Instantly share code, notes, and snippets.

@kaanklky
Last active December 28, 2024 00:54
Show Gist options
  • Select an option

  • Save kaanklky/9a82c8c1c5879230aa4955ea9a42725b to your computer and use it in GitHub Desktop.

Select an option

Save kaanklky/9a82c8c1c5879230aa4955ea9a42725b to your computer and use it in GitHub Desktop.
Pop OS shell launcher remove active windows from list
diff --git a/usr/share/gnome-shell/extensions/pop-shell@system76.com/launcher.js b/usr/share/gnome-shell/extensions/pop-shell@system76.com/launcher.js
index 927e389..56959d8 100644
--- a/usr/share/gnome-shell/extensions/pop-shell@system76.com/launcher.js
+++ b/usr/share/gnome-shell/extensions/pop-shell@system76.com/launcher.js
@@ -102,7 +102,7 @@ var Launcher = class Launcher extends search.Search {
}
this.append_id = GLib.idle_add(GLib.PRIORITY_DEFAULT, () => {
const item = response.Update.shift();
- if (item) {
+ if (item && item.category_icon.Name !== 'focus-windows-symbolic') {
try {
const button = new search.SearchOption(item.name, item.description, item.category_icon ? item.category_icon : null, item.icon ? item.icon : null, this.icon_size(), null, null);
const menu = context.addMenu(button.widget, (menu) => {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment