fthx / simple-task-bar Goto Github PK
View Code? Open in Web Editor NEWGNOME Shell extension, superseeded by BaBar
License: GNU General Public License v3.0
GNOME Shell extension, superseeded by BaBar
License: GNU General Public License v3.0
Hi,
I'm using Gnome Shell 3.30 (Debian 10). Since 50ef969, I get the following error preventing this extension from working:
TypeError: activities_indicator.hide is not a function
Right now when windows titles are not shown, but they appear on hover, when switching to other app, text is flickering between app name of current app, window title of hovered app you are clicking to switch to, app name of switched app, window title of switched app and it's quite annoying
Like with polybar or lemonbar in tiling window managers, you could give each workspace a different name. Is that possible or perhaps in the future?
Hey! First of all: thanks for this! Coming from tiling WMs, I feel right at home with this extension 👍
After using it for a few hours, I realized that the visual style of workspace numbers is a bit too heavy for my taste, so I made some tweaks.
I realize that it's personal preference, but how do you feel about this direction? Would you be interested in a PR that changes these styles?
Would be nice to have a tooltip to distinct one app from another.
I would really like the ability to drag and drop applications between workspaces on the top bar. But I guess that it would be quite difficult to accomplish.
Note: this issue happens when GNOME multi-monitor handling is set to "Workspaces on primary display only".
Icons for apps that are placed on the secondary display appear on the left of the workspaces list. Not sure if that's intended design, but it feels and looks weird.
I think, ideally, i'd rather not see the icons for apps on secondary display at all since they're not attached to any workspace.
Alternatively, maybe show them at the very end of the task bar instead, after some sort of visual divider.
For example when using 2 workspaces/desktops, you would have [1] and [2] with active apps but it shows [3] as well but it has no active apps. It would be great to have an option to make it possible to hide workspaces with no active windows/apps. This would make it look even cleaner.
I would only add a call to the global application menu when you right-click on the first icon (the one on the far left). Left click brings up an overview of running applications, right click brings up the applications menu. It looks logical.
I'm testing GNOME 40 and extension is working, but opening extension settings don't. It crashes with
Gtk.BuilderError: /home/vuk/.local/share/gnome-shell/extensions/simple-task-bar@fthx/prefs.ui:55:1 Unhandled tag: <packing>
Stack trace:
_init@/home/vuk/.local/share/gnome-shell/extensions/simple-task-bar@fthx/prefs.js:36:17
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:82:27
buildPrefsWidget@/home/vuk/.local/share/gnome-shell/extensions/simple-task-bar@fthx/prefs.js:10:16
_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:132: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:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
Currently the extension just desaturates all icons (if the setting is enabled) but still uses the icons of the theme. GNOME uses symbolic icons by default and only falls back to the theme icon if there is no symbolic icon (and desaturates it). GNOME applies it via a css file.
Here is a screenshot. The bottom half shows how it is currently. The top half uses symbolic icons (you can see GNOME's default on the appmenu).
Do you want to add it to your extension or do you want to leave it as is?
Hi, Do you know hot to display this extension on a dual monitor setting? I use the dash to panel extension, and I wish to see the simple-task-bar on both monitor's bars if possible. I made an issue on the dash-to-panel github page, but the developer said it is something better to be handled on the individual extension's side.
All i need is a labelled workspace indicator, so I forked you extension and commented out the part where you add the application icons, and modified the css to look a bit cleaner to my taste. and it looks like that:
I know some JS but I am not familiar with how the Gnome shell works at all, so is it a hard one to achieve?
If you don't have time, but have some idea how to do it, can you share them, so I may be able to tinker around with it maybe?
Thanks for this amazing extension btw, I was searching a lot for sg like that 👍
When using the setting to have a fixed number of workspaces, if the number of workspaces is reduced the workspace list is not updated. It is then possible to click on a non-existent workspace which can cause gnome-shell to crash.
Hi @fthx I made a comment in Gnome Extensions website before about drag-able icons, understand that could be a hard feature to implement.
Another thought... Perhaps if right click could revel a context menu giving options... Move to workspace 1, Move to workspace 2, Close Window etc... that could be an easier win and a step toward drag-able icons anyway.
I read in a closed issue that you didn't plan to include a settings page for "now" (half a year ago). Did your stance on this change?
I tried using your extension but it clashes with another extension I use ("Unite"). I use Unite to add a Close button into my topbar so I can close windows with a quick wrist flick. It also disables the Window titles. Here is a screenshot with both extensions enabled.
If I use Simple-Task-Bar, the Activities button get hidden (even if I re-enable it in Unite). Window titles will also be shown (which I tried to disable via Unite. I only wanted to see the app name).
While you added easy-to-edit variables at the top of extension.js, my issue with Window titles doesn't seem to be one an option there. So a dedicated Settings page could help here or at least an additional variable to disable window titles.
If you do decide to add a Settings page (or more variables), here are some ideas:
add configurable spacing between each workspace section for clearer visibility (e. g. 35 px before the [2] / after the Firefox icon in my screenshot)
shortcuts for window switching within the current workspace (with wraparound) based on the currently focused window. For example: Super+Left/Right or A/D. While people can use Alt/Super+Tab, the order of it is based on recent usage and it shows all apps. So having a non-changing order (like your extension does it) could also be useful and quicker since you don't have to first search for the app in the list of all open apps. found an extension which disables listing of all open apps in the Alt+Tab, so this is also kinda obsolete now.
always show the overview when switching workspaces (and not just when pressing a button on the taskbar), if no app is running on the new workspace.
disable Window titles and only show app name (or at least not forcing the Window title update) pr opened
maybe monochrome icons (since that seems to be GNOME's default look) looks kinda bad
It's kinda redundant to have the normal Window title (menu) and your "Line" to indicate the currently focused window. How about merging these 2 (although I don't know how difficult that would be). Here is a mockup of what I mean:
[Edit]
BTW do you accept PRs? While I am only looking into learning Gnome extensions right now, adding a variable to disable the window title update seems easy to do even for a beginner.
Hi,
This morning, my system automatically updates simple-task-bar, and upon start up produced this trace:
GLib.FileError: Failed to open file “/home/tez/.local/share/gnome-shell/extensions/simple-task-bar@fthx/schemas/gschemas.compiled”: open() failed: No such file or directory
Stack trace:
_init@/home/tez/.local/share/gnome-shell/extensions/simple-task-bar@fthx/prefs.js:23:48
wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:82:27
buildPrefsWidget@/home/tez/.local/share/gnome-shell/extensions/simple-task-bar@fthx/prefs.js:10:16
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:13
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:175:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:222:19
start@resource:///org/gnome/gjs/modules/script/package.js:206:5
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
I am running Fedora 32, and Gnome 3.36.2. I pulled the extension from https://extensions.gnome.org/extension/2672/simple-task-bar/, and I use the Firefox/gnome-shell integration plugin to install and manage extensions.
In /home/tez/.local/share/gnome-shell/extensions/simple-task-bar@fthx
, there is not even a schemas
subdirectory. I am totally unfamiliar with Gnome Shell extension development, building, packaging. Can you advise how this can be fixed?
Your help and your extension are much appreciated. Many thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.