Giter Site home page Giter Site logo

cactichameleon9 / switch-desktop-on-edge-python-script Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 1.0 27 KB

A script that implements switching / slide desktop on edge from kde plasma to any other linux desktop (using pynput and keyboard shortcuts))

License: GNU General Public License v3.0

Python 100.00%

switch-desktop-on-edge-python-script's Introduction

Switch-desktop-on-edge-python-script

A script that implements switching / slide desktop on edge from kde plasma to any other linux desktop!! (using pynput and keyboard shortcuts)

To switch desktops just move your mouse off the screen to the next one. You can move windows by holding down on them and then moving the mouse pointer off the screen this is because dragging (holding down on the top bar) windows does not work on mate desktop, not tested on others - but it may just work normally. Now works by dragging top/title bar.

Configuring the script(required):

slideOnEdge.py

The slideOnEdge.py script uses a dedicated desktop number counter, meanning you can go from desktop 5 to 1 (and 1 to 5) - making it seemless For this script to work you need the following shortcuts:

  • ctrl + f[desktop number here] to switch desktop
  • ctrl + shift + f[desktop number here] to move active window to desktop

You also need to change the desktopCount variable to the number of desktops you have

slideOnEdgeOriginal.py

The other slideOnEdgeOriginal.py script was my first attempt at this, and does not have the seemless switching like the first (going left at 1 does nothing) For this script to work you need the following shortcuts(works with mate by default):

  • Ctrl + alt + left (switch to desktop on the left)
  • Ctrl + alt + right (switch to desktop on the right)
  • Ctrl + alt + shift left (switch to desktop on the left taking the current window with you)
  • Ctrl + alt + shift right (switch to desktop on the right taking the current window with you)

Installing / Running on startup:

Install python 3 and pynput (ubuntu example):

  • sudo apt install python3-pip
  • pip3 install pynput

Add a startup / auto start program with the following command: (most desktops should have a gui in settings for this... just duckduckgo it)

python [path to slideOnEdge.py]

or (for ubuntu based distro where python 2 is the default)

python3 [path to slideOnEdge.py]

switch-desktop-on-edge-python-script's People

Contributors

cactichameleon9 avatar

Forkers

mybigman

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.