Git Product home page Git Product logo

improved-workspace-indicator's Introduction

Improved Workspace Indicator

Get it on GNOME Extensions

GNOME Shell extension that provides a workspace indicator more similar to i3/sway.

Namely:

  • it shows all in use workspaces
  • it highlights the currently active workspace

Screenshot

Installing from source

Run make install

How to customize the look

Refer to the Custom CSS Guide if you want to customize the look of Improved Workspace Indicator.

Publishing a new version

  1. Compile the schema
glib-compile-schemas schemas
  1. Zip up the contents
rm *.zip && zip -r [email protected] . --exclude=README.md --exclude=.gitignore --exclude=screenshot.png --exclude=.git/\* --exclude=.circleci/\* --exclude=Makefile
  1. Upload a new version to https://extensions.gnome.org/upload/

improved-workspace-indicator's People

Contributors

benbell95 avatar kassick avatar michaelaquilina avatar mjs avatar pablotrianda avatar quintinm-dev avatar tfuxu avatar yurenchen000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

improved-workspace-indicator's Issues

Multi-monitor and empty-workspace detection

Hi,

first of all thanks for the great extension!

I noticed the unused-workspace detection doesn't work well if you use multiple monitors and workspaces only on the primary one (which I believe is the default for Gnome). If you have some window on the non-primary monitor this plugin registers it on every workspace, thus every workspace is displayed as active.

I think the detection should only consider windows on the primary display in this case, would it be possible to change this behaviour? Perhaps it could be based on the gnome configuration (you can also span workspaces on all monitors) or it can be a config of the extension.

ERROR: import declarations may only appear at top level of a module

I have downloaded the last version for gnome 45 and followed the install instructions without any compile or install warning.
After restartig extension is not working with error message: "import declarations may only appear at top level of a module".

My system:
Ubuntu 23.10 x86_64 mantic
Kernel 6.5.0-10-generic
GNOME Shell 45.0
Running on Wayland

Does not work on Gnome 40

Error: No property margin on GtkGrid

Stack trace:
  _init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:45:40
  buildPrefsWidget@/home/lutoma/.local/share/gnome-shell/extensions/[email protected]/prefs.js:25:21
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:209:40
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:206:19
  start@resource:///org/gnome/gjs/modules/script/package.js:190:8
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

The new mouse scroll feature is too sensitive

Issue Description

The new mouse scroll feature added in version 15 is sometimes skipping individual workspaces, like with four workspaces enabled, it will skip workspace 2 when going down on scroll wheel, and when going up it will skip workspace 3.

How to reproduce

Enable mouse scroll in preferences, and set more than 2 available workspaces (or enable dynamic workspaces), then try to go from workspace 1 to workspace 2 with scroll wheel.

Possible fix

The Dash to Panel extension has this feature built-in, and it probably could be "reverse-engineered" to this extension.

Gnome 45

Hello,

Thanks for this very useful extension to me. Consider you to port Workspace indicator to Gnome Shell 45 in a near future?

Thank you again for your work.

Regards

Ability to ignore DING window in workspaces

Is it possible to put this left to the clock? The real estate of the top bar at the right of the clock is very crowded, so option to have the exact same thing on the left would be great.

On "workspaces on primary display only" setting all workspaces show as active

Hello,

This issue could be related to #3 . When changing the Multi-Monitor setting on Multitasking (using Ubuntu 22.04.1) to "Workspaces on primary display only" it appears that moving a window to the second monitor shows all the workspaces as active. When all windows are removed from the second monitor it works as expected and shows only the active window.

I suspected it may be related to the following part in the code where it checks whether the workspace exists. Not sure what this method returns when there are windows on the second monitor.
let workspace = workspaceManager.get_workspace_by_index(i);
if (workspace !== null) {
...

It seems reasonable that the indicators would ignore monitors that does not span the workspaces, but let me know what you think. Thanks


EDIT: Just saw that it was already reported in #11 so this issue can be closed/merged with the other one. Thanks and sorry for reopening the known issue

Hide Indicator Unless 2 Workspaces

Thanks for this extension!

I'm hoping to modify the extension.js to only show workspace indicators when there is more than 1 desktop. Is there an easy way to make this change?

I thought maybe the show_or_hide function might be the place to look, but I don't really speak javascript.

Thanks for your time!

no window remains on its workspace after connecting external monitor

Hi,

I have an external monitor that is set up as "primary" and workspace indicator is configured to be on this primary display only.

if I disconnect the external monitor and then reconnect, not a single windows is on its original workspace. Instead, all windows are on the built-in secondary display (where there is no workspace indicator) and all workspaces in Improved Workspace Indicator are empty. Needless to say, this behaviour is a mess and defeats the purpose of workspace indicator.

It would be nice to see it fixed. Expected behaviour is that all windows stay on the same workspace upon reconnecting the external monitor.

I am using Ubuntu 20.04, Gnome 3.36.8

thanks in advance

CSS is broken/ignored since version 10 (or 9)

Since an update a couple days ago, my .local/share/gnome-shell/extensions/[email protected]/stylesheet.css is not taken into account anymore, and the workspace indicator looks like the images on this repo instead of what I used to have.

I'm using Gnome Wayland 41.3, on Arch

Not sure if there are logs I can bring up, if I should move my file somewhere else or anything.

Not an issue but question : purpose of some css lines ?

Hi,

I've modified a bit the css stylesheet to get this :
iwi_rounded
and I think I'm happy with.

So here the css :

.panel-workspace-indicator {
  padding: 0 6px;
}

.panel-workspace-indicator-box {
  padding: 2px 0;
}

.panel-workspace-indicator-box .workspace {
  width: 40px;
}

.panel-workspace-indicator,
.panel-workspace-indicator-box .workspace {
  border: 2px rgba(0, 0, 0, 0.4);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 19px;
}

.workspace-indicator-active {
  border: 2px solid #cccccc;
  background-color: rgba(0, 0, 0, 0.6);
}

As you may see, I have removed some lines as I couldn't find their purpose.
Those lines :

.panel-workspace-indicator-box .workspace {
  background-color: rgba(200, 200, 200, 0.3);
  border-left-width: 0;
}

.panel-workspace-indicator-box .workspace:first-child {
  border-left-width: 1px;
}

Is it safe ? What did I « remove » ? What are they supposed to do ?

Workspaces incorrectly show as active when using DING

hey,

on the readme it says 'it shows all in use workspaces' and shows a screenshot of workspace 1,2 and 9. I'm trying to archive something similar and was about to create a PR which hides workspace indicators for workspaces with no windows. But the readme makes me think that this extension can handle this already, and maybe my usage and settings of gnome workspaces is wrong.

im running gnome settings:

  • static workspaces
  • number of workspaces 10
  • workspaces on primary display only

is there a way to make it behave like in the readme or work with gnome workspaces dynamically like in i3?

possible to show *all* workspaces (static)?

Hi

I wonder if it could be possible to implement a possibility to show all workspaces, not just workspaces that are in use? What about making it configurable via an option?

My situation is that I tried other workspace indicators and they do not work: they are not showing workspace names or do not allow switching to another workspace by clicking with the mouse, meanwhile "improved workspace indicator" works well. I however would like to see all (static) workspaces to be able to switch to a new (unused) workspace by clicking the mouse (w/o keyboard).

Workspace Name including?

Which is the part that i can include or edit it the workspace name? Like for example 1 (coding) current workspace

Change the icons?

Is there someway to change the icons for each workspace instead of just using numbers?

No such file gschemas.compiled

Improved Workspace Indicator is failing on Ubuntu.

The error:

GLib.FileError: Failed to open file “/home/paddy/.local/share/gnome-shell/extensions/[email protected]/schemas/gschemas.compiled”: open() failed: No such file or directory

  • Ubuntu 22.04.2 LTS
  • GNOME version 42.5

The problem happens with versions 18 and 19.
Version 16 works correctly.

Thank you

suggestion: enable center positioning on panel

hey there, great extension!

currently this extension can be set to be either right or left side on the panel.
i would appreciate the option of a central position.

thanks for consideration :)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.