Giter Site home page Giter Site logo

cr7pt0gr4ph7 / gnome-shell-extension-scroll-panel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mreditor/gnome-shell-extension-scroll-panel

0.0 0.0 0.0 1.83 MB

Gnome Shell extension that allows to switch between workspaces and applications by scrolling mouse wheel above the top panel.

Home Page: https://extensions.gnome.org/extension/4257/

License: MIT License

JavaScript 100.00%

gnome-shell-extension-scroll-panel's Introduction

Scroll Panel extension for Gnome Shell

Extension allows switching between windows or workspaces by scrolling Gnome Shell topbar with mouse or extra buttons (both in overview and workspace mode).

Demo

Extension is highly configurable; defaults are:

  • scroll the topbar over the clock or empty space to switch workspaces;
  • scroll the overview button or application name in topbar to switch windows.

Preferences

License, feedback and contributions

This software is distributing under MIT (X11) license, provided "as is" and without a warranty of any kind. You can take a look at LICENSE file.

Feel free to contribute (especially localizations) or send feedback at https://github.com/mrEDitor/gnome-shell-extension-scroll-panel/

Installation

You can install the extension from https://extensions.gnome.org/extension/4257/.

Target Gnome versions are Gnome Shell 40+.

Installation from scratch

You will need yarn installed to run build scripts.

  1. Clone source code from GitHub:

    git clone https://github.com/mrEDitor/gnome-shell-extension-scroll-panel
    cd gnome-shell-extension-scroll-panel
    
  2. Checkout the latest available tag (not tagged commits may be broken):

    git checkout $(git rev-list --tags --max-count=1)
    
  3. Build the extension and install it into your Gnome Shell:

    yarn run yarn:restore
    yarn run gnome:install
    
  4. Re-login to Gnome Shell.

  5. Enable (and configure, if needed) extension with Extensions app or command:

    gnome-extensions enable io.github.mreditor.gnome-shell-extensions.scroll-panel
    

Development

You will need yarn installed to run build scripts. However the yarn is recommended as more efficient, build scripts are designed to work with npm packages as well.

To setup development environment:

  1. Restore yarn build tools and dependencies:

    yarn run yarn:restore
    
  2. Optionally install yarn sdk for your environment (see yarn sdks for more information):

    yarn dlx @yarnpkg/sdks vscode
    yarn dlx @yarnpkg/sdks vim
    
  3. See build script options available via:

    yarn run build --help
    
  4. Also build script can containerize whole building process. For this, fetch Gnome Shell extension environment container as git submodule:

    git submodule update --init --recursive
    

    Now you can use podman build script, see details with:

    yarn run podman --help
    

    Container may be used as environment for tests or demonstration as well, even on some non-linux or no-gtk systems.

Localization

  1. Create empty .po-file under locales directory and name it after the target locale (e.g. en.po or en_US.po).

  2. Build the project to populate locale files with messages to localize from locales/messages.pot:

    yarn run yarn:restore
    yarn run build
    
  3. Translate messages in .po-file.

  4. Finally, build and lint project with:

    yarn run build --lint=immutable
    

    Immutable lint mode will warn you if you should return to step 2 and update translation template.

Previous versions

Previous versions are available as:

gnome-shell-extension-scroll-panel's People

Contributors

mreditor avatar wsxy162 avatar etamuk avatar

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.