Giter Site home page Giter Site logo

tty2 / horizontal-workspace-indicator Goto Github PK

View Code? Open in Web Editor NEW
27.0 2.0 3.0 76 KB

Gnome shell extension. Simple workspace indicator for horizontal layout.

Home Page: https://extensions.gnome.org/extension/3952/workspace-indicator/

License: MIT License

JavaScript 87.28% CSS 0.69% Makefile 12.04%
gnome gnome-shell-extension workspaces workspace-indicator

horizontal-workspace-indicator's Introduction

With gnome 45 the gnome community get a new awesome builtin workspace switcher. This extension does not have any reason to exist.

Workspace indicator

Horizontal workspace indicator shows the amount of opened workspaces and highlights the current one using unicode characters. You can use it as an indicator only but widget is clickable. Left button click: move to left, right click: move right. Middle click calls overview.

Compatibility

This extension is written for Wayland.

How it looks like

Example with for opened workspaces where the second one is current:

Circle symbols:

○●○○

Line symbols:

ǀ┃ǀǀ

Screenshot with the same situation:

screenshot

Three dots on the left side of the top bar.

Known issues

  1. If your indicator looks different from one on screen shot, install DejaVu Sans or Ubuntu font.

  2. There could be an error with the extension after update. The solution is to logout and login again.

horizontal-workspace-indicator's People

Contributors

tty2 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

Watchers

 avatar  avatar

horizontal-workspace-indicator's Issues

Center the widget

Hi,

Is it possible to center the widget. I think it would be nice to have it where the clock is now.
I know I can move the clock, but how do I place the workspace indicator to the center?

Really nice extension!

Off-centered circles

Hey!

I've installed this extension on gnome-shell 42.3 running Wayland.
"Inactive" circles seem to be pushed upwards while the "active" center stays at correct height.
Photo for showcase purposes:

Screenshot from 2022-07-25 02-17-45

I've double checked that the necessary fonts are indeed installed.

Any help would be appreciated as I really like the look of this on my desktop!
Thanks!

Different symbols?

Hi,

have you considered using different symbols?

const bullet = "⬤";
const circle = " ⦁ ";

yields:

image

Scroll to change workspace

Thanks for the great extension :)
It would be great if the feature to just scroll on the widget to move through work-spaces can be added.

Show workspace number as an alternative to circles/lines icons

Request

  • Show workspace number as an alternative to circles/lines icons
  • New entries for the style options in the settings:
    • Circle and Numbers
    • Numbers

Examples

○ ○ ○ ❹ ○

❍ ❍ ❍ ❹ ❍

① ② ③ ❹ ⑤

⚫ ⚫ ⚫ ④ ⚫

⬤ ⬤ ⬤ ④ ⬤

❶ ❷ ❸ ④ ❺

Sample Code

function getWorkspaceChar(active, index) {
  ISACTIVE = [ '⓿', '❶', '❷', '❸', '❹', '❺', '❻', '❼', '❽', '❾', '❿', '⓫', '⓬', '⓭', '⓮', '⓯', '⓰', '⓱', '⓲', '⓲', '⓴'];
  INACTIVE = [ '⓪', '①', '②', '③', '④', '⑤', '⑥', '⑦', '⑧', '⑨', '⑩', '⑪', '⑫', '⑬', '⑭', '⑮', '⑯', '⑰', '⑱', '⑲', '⑳' ];
  windex = index < 1 || index > 20 ? NUMS[0] : NUMS[index];
  return active ? ISACTIVE[index] : INACTIVE[index];
}

Does it possible that i can put indicator to the left position?

Hi, thanks for your wonderful extension.

It's really beautiful.

The two features that can make it more perfect for me are these:

  • Changing the direction of the indicator.(for example i want to see indicator on the left side)
  • Using middle scroll for browsing between workspace.

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.