switch-layout | simple script to fix keyboard

 by   yamnikov-oleg Python Version: Current License: MIT

kandi X-RAY | switch-layout Summary

kandi X-RAY | switch-layout Summary

switch-layout is a Python library. switch-layout has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has low support. You can download it from GitHub.

This is a workaround for keyboard layout switching bug, which occurs, as far as I know, on some Gnome 3 based DEs running on X server, including Pantheon (elementary OS DE). According to some of the reports I've read, it affects mostly users of Russian keyboard layout. The bug is this: there is an annoying delay between the moment you try to switch layout (either with a shortcut or with the GUI) and the moment the layout is switched. In my case, it's around 1 second when switching from RU to EN. Sometimes the layout doesn't switch at all! This bug makes it impossible to type text both in Russian and English quickly. This workaround made things easier for me. It's not ideal, but it reduces the delay far enough to make it barely noticable.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              switch-layout has a low active ecosystem.
              It has 69 star(s) with 12 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 6 open issues and 1 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of switch-layout is current.

            kandi-Quality Quality

              switch-layout has 0 bugs and 0 code smells.

            kandi-Security Security

              switch-layout has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              switch-layout code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              switch-layout is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              switch-layout releases are not available. You will need to build from source code and install.
              Build file is available. You can build the component from source.
              Installation instructions, examples and code snippets are available.
              It has 65 lines of code, 7 functions and 1 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed switch-layout and discovered the below as its top functions. This is intended to give you an instant insight into switch-layout implemented functionality, and help decide if they suit your requirements.
            • Handle key press event
            • Switch the current layout
            • Checks if the current key is a switch shortcut
            • Release key
            • Format a key
            Get all kandi verified functions for this library.

            switch-layout Key Features

            No Key Features are available at this moment for switch-layout.

            switch-layout Examples and Code Snippets

            No Code Snippets are available at this moment for switch-layout.

            Community Discussions

            Trending Discussions on switch-layout

            QUESTION

            Multiple layouts in nested routes in Angular (2+)
            Asked 2017-Oct-10 at 20:24

            I'm creating a Dashboard like application. I'd like to achieve the following layout plan in Angular (2+):

            • route - name - layout
            • / - home page - full width layout with tables and charts, etc
            • /reports - reports page - same full width layout with more tables, etc
            • /login - login page - no full width layout, just a simple login form at screen center
            • /signup - signup page - no full width layout, just a simple signup form at screen center
            • /messages - emails - full width layout
            • /messages/new - new email - medium layout, not inheriting from full width layout

            etc...

            So basically what I'd like to do is to completely replace the contents of at some (child) routes.

            This is not good for me: multiple layout for different pages in angular 2 because I don't want to redirect / (root) to anywhere like /home.

            This one doesn't fit either: How to switch layouts in Angular2

            Any help would be great!

            ...

            ANSWER

            Answered 2017-Feb-16 at 20:21

            Ok I am going to give this a shot...

            Routes

            Creating routes can be done in multiple ways. You can use child routes or serve the component up directly.

            If you want to serve the component up directly this would be ideal,

            Source https://stackoverflow.com/questions/42283235

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install switch-layout

            Make sure you have pip installed.
            Install pynput - the script uses it to listen for key presses.
            Copy the switch-layout.py somewhere in your home folder.
            Edit the SWITCH_SHORTCUTS and LAYOUTS_COUNT at the top of the script accordingly to your needs.
            Disable built-in layout-switch shortcut in your system, so it wouldn't interfere with the script. Also disable CapsLock default behavior in case you use it as switch key.
            Run the script: python3 switch-layout.py. Try pressing the shortcut and see if it works. If it doesn't, feel free to open an issue. Maybe I'll be able to help. Press Ctrl+C to stop the script.
            If it works, you can add this script to autostart programs in your DE to make it start automatically.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/yamnikov-oleg/switch-layout.git

          • CLI

            gh repo clone yamnikov-oleg/switch-layout

          • sshUrl

            git@github.com:yamnikov-oleg/switch-layout.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link