Code Monkey home page Code Monkey logo

gnome-desktop-session-restore's Introduction

Gnome Desktop Session Restore

gnome-desktop-session-restore

This is a simple tool that restores the state of one or more Gnome workspaces. It is designed on Ubuntu 20.04 but should work with earlier versions but is as yet untested in older versions. It may also work on other Linux distros that also use Gnome workspaces.

Prerequisits/Dependencies

This tools is written in Python and requires a Python interpreter. We also use the wmctrl tool to manage windows. These can be installed by running install.sh. This installation script uses apt to install dependencies thus it will only work on Debian-derived distros.

Installation

Run the installation script:

  • via curl:

    curl -so- https://raw.githubusercontent.com/K-and-R/gnome-desktop-session-restore/v0.1.0/install.sh | bash
  • via wget:

    wget -qO- https://raw.githubusercontent.com/K-and-R/gnome-desktop-session-restore/v0.1.0/install.sh | bash

Configuration

The configuration file is ~/.gnome-desktop-session.json. There is an example file included in this repo which can be obtained from GitHub and used as a starting point for configation:

curl -s https://raw.githubusercontent.com/K-and-R/gnome-desktop-session-restore/v0.1.0/session.json.example -o ~/.gnome-desktop-session.json

This configration file is meant to be modified. It is expected to be valid JSON. You can validate your JSON file using JSONLint.

NB: This configuration file is created by the install.sh script, from the example file, if it doesn't already exist.

Restoring a Session

Simply run: restore-gnome-desktop-session

Upgrade

To upgrade to a newer version, simply run the installation script for that newer version.

Uninstallation

To remove this tool and its configuration file, run uninstall.sh:

curl -so- https://raw.githubusercontent.com/K-and-R/gnome-desktop-session-restore/v0.1.0/uninstall.sh | bash

NB: The additional packages installed by the install.sh script (curl, python, and wmctrl) will not be removed automatically and will need to be removed manually if they are no longer wanted:

sudo apt remove curl python wmctrl

Maintainers

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.