Giter VIP home page Giter VIP logo

xfce-dynamic-workspace's Introduction

XFCE Dynamic Workspaces

This project aims to provide XFCE with dynamic workspaces similar to those found in the GNOME desktop environment. Use in conjunction with Xfdashboard and you got yourself a Gnome lite.

Compatibility

This project has only been tested on XFCE, but it should work on other desktop environments as long as they are compatible with wnck and wmctrl. If there are issues with windows that should not be taken into consideration (panels, docks, etc) when handling workspaces, they can be added to the blacklist inside the script itself (see Adding windows to the blacklist). It will only work on X11 though as libwnck and wmctrl do not support wayland.

Installation:

# Install the required dependencies:
# Ubuntu/Debian
sudo apt install python3-gi libwnck-3.0 wmctrl
# Fedora
sudo dnf install python3-gobject libwnck3 wmctrl

# Clone the repository:
git clone https://github.com/DimseBoms/XFCE-Dynamic-Workspace

# Usage
python3 ./XFCE-Dynamic-Workspace/dynamic_workspaces.py

Adding windows to the blacklist

If you are having issues and workspaces seem to pile up getting added one after another in a continous loop, you most likely have a special window that needs to be blacklisted. To add the window to the blacklist you can add a new entry to the list inside the code (self.window_blacklist on line 18). To find out which window is giving you trouble you can start the script manually with the --debug flag to make it print all window names. It is usually a dock, panel or some other type of "static", special window that is the culprit.

Add the script to autostart:

Add an autostart entry with the exec=

/path/to/python3 /path/to/script/dynamic_workspaces.py

xfce-dynamic-workspace's People

Contributors

dimseboms avatar erenfro avatar drenkmann avatar

Stargazers

 avatar  avatar  avatar Mark Mikaelson avatar Kevin Bowen avatar Jonny Sherwood-Bowes avatar

Watchers

 avatar

xfce-dynamic-workspace's Issues

When tilix in quake mode (-q) is opened, endless workspaces are created.

I use tilix pretty much exlusively because of it's quake mode drop-down visor.
When using this script with it, however, I watched the Workspace switcher applet constantly create new workspaces endlessly until I closed the tilix visor (doesn't close program, but does hide it), and then those workspaces it created get deleted until the last empty one remains.

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.