Giter Site home page Giter Site logo

ulauncher-system's Introduction

Ulauncher-System

This is a extension for Ulauncher that allows you to:

  • Lock
  • Log Off
  • Suspend
  • Hibernate
  • Reboot
  • Shutdown
  • Reboot to Bios

What sets it appart?

  • It will attempt to work nicely with the Desktop Environment of you choice. Below are the currently supported DEs. If one of these is not detected default commands will be used if possible.
    • GNOME Based (Unity, Gnome, Etc.)
    • KDE
    • Cinnamon
    • Mate
    • XFCE
  • It uses the system icon theme for all but its required icon.
  • It is extremely configurable
  • More in the future!

Configuration

Every part of ulauncher-system is configurable. You can change and add new desktops to be detected and you can change and add commands for those desktops.

Configurations are stored in $XDG_CONFIG_HOME/ulauncher-system. When $XDG_CONFIG_HOME is not defined it will default to $HOME/.config according to the XDG Base Directory Specification

Configuration Load Order

  1. Default
  2. Desktop
  3. User Default
  4. User Desktop

Changing and Adding Desktops

To change and add desktops you will be editing: $XDG_CONFIG_HOME/ulauncher-system/desktops.json

There are two ways to declare a desktop

  1. By specifing an environment variable to check

    Use this when the existence of the variable is exclusive to the current desktop.

    Example

    "sway": {
        "env": "SWAYSOCK"
    }
  2. By specifing an environment variable to check and valid aliases of it

    Use this when the variable contains information that specifies the current desktop.

    Example

    "kde": {
        "env": "XDG_CURRENT_DESKTOP",
        "aliases": ["kde-plasma", "KDE"]
    },

Changing and Adding to Desktop Entries

To change and add desktop entries you will need to add files to $XDG_CONFIG_HOME/ulauncher-system/entries/ in the form of <desktop_key>.json, with <desktop_key> being the key of the desktop as specified in desktop.json, or default.json for desktop agnostic configuration. For examples of these see default.json.

If you are using any of the keys defined in default.json you only need to define the values you want to override in your user copy. However, if you are adding a new key you must specify all the values.

To disable an entry simply put <key>: null in your config.

Values

  • <key>: A unique identifier
    • name: The name to be displayed in Ulauncher
    • description: The description to be displayed in Ulauncher
    • icon: The icon name of the icon to be displayed in Ulauncher
    • aliases: Aliases for the key (helps with Ulaunchers fuzzy searching)
    • command: Command to be run when the key is selected.

Example

Basic Config
"lock": {
    "name": "Lock",
    "description": "Lock the session.",
    "icon": "system-lock-screen",
    "aliases": ["lock"],
    "command": "loginctl lock-session"
}
Disable Entry
"lock": null

Credits to Papirus for the current Icon of the extension

ulauncher-system's People

Contributors

andrewgopher avatar csicar avatar djinnalexio avatar friday avatar iss-in avatar iyzana avatar oskarcarl avatar tjquillan 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.