tty2 / horizontal-workspace-indicator

Gnome shell extension. Simple workspace indicator for horizontal layout.
https://extensions.gnome.org/extension/3952/workspace-indicator/
MIT License
28 stars 4 forks source link

Show workspace number as an alternative to circles/lines icons #35

Closed juarezr closed 1 year ago

juarezr commented 1 year ago

Request

Examples

○ ○ ○ ❹ ○

❍ ❍ ❍ ❹ ❍

① ② ③ ❹ ⑤

⚫ ⚫ ⚫ ④ ⚫

⬤ ⬤ ⬤ ④ ⬤

❶ ❷ ❸ ④ ❺

Sample Code

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

Hi, @juarezr Thanks for the contribution. The idea looks obvious but this indicator appeared as an alternative to Indicator from Florian Mullner with absolutely different approach. For some reason I don't really like the way to show numbers in indicator. In my opinion it looks alien in gnome's icons design. And since 2021 (this year I started to use my indicator) I had time to make sure that numbers are redundant. My suggestion to you is to try indicator from Florian Mullner. But if you still want mixture of his indicator and mine just fork this project. It has MIT license, so this code is as yours as mine. Thanks.