Coder Social home page Coder Social logo

pop-launcher-plugin-app-profiles's Introduction

App Profiles

A Pop!_OS Launcher Plugin to launch Apps with Profiles written in Rust.

Usage

  • Start Launcher
  • Type 2_char_app_shorthand followed by space
    • Pick a listed profile
  • Type profile_name + enter

Example Firefox Gif

Installation Directories

  • User-local plugin: ~/.local/share/pop-launcher/plugins/app-profiles/
  • System-wide install: /etc/pop-launcher/plugins/app-profiles/

Configuration

In app-profiles/config create an {app}.ron file for each app you want to launch with multiple profiles/workspaces or be started with different files and/or sets of arguments.

Example: default firefox.ron

( // class name leads to error
  // shorthand to trigger search and view of profiles
  shorthand: "ff",
  cmd: "/usr/bin/firefox", // "firefox"
  args: "-P",
  profile_dirs: [
    "~/.mozilla/firefox"
  ],
  // if profile_filename is given, profile_regex will be applied to the file contents instead of the filenames of the files in profile_dirs.
  profile_filename: Some("profiles.ini"),
  // regex to match profiles or profile names in file or directory - capture name with group!
  profile_regex: r"\[Profile\d+\]\nName=(.+)\n", // "\\[Profile\\d+\\]\\nName=(.+)\\n"
  // other entries to add
  opt_entries: Some([
    (
      name: "Manage Profiles",
      desc: Some("Manage Firefox Profiles"),
      // will use std cmd
      cmd: None,
      args: Some("-ProfileManager"),
    ),
  ])
  // icon name (if standard) or path
  icon: Some("firefox"),
)

See Usage for this example in action.

Roadmap ๐Ÿš€

until 1.0.0:

  • ๐Ÿ˜Ž fuzzyfind app entries
  • ๐Ÿค– impl. autocompletion
  • ๐ŸŽ“ make it rustier (nicer control flow & error handling, less cloning)
  • ๐Ÿ—‘๏ธ ditch smol for tokio (as the pop/cosmmic guys did)
  • ๐Ÿš€ override regex in plugin.ron depending on app configs
  • ๐Ÿ”ง integrate new pop launcher standard logging
  • ๐Ÿ‡ proper resource handling (less cloning, more Rc, Cow, Box and shit)
  • ๐Ÿ‘ฅ when installed system-wide, also scan user config dirs

future / nice to have:

  • some basic concurrency
  • find a way to integrate with open window list in launcher & display profile name on open window entry in launcher
  • firefox specific: manage profiles from launcher:
    • create new
    • delete old
    • rename
    • copy existing
  • vscode specific: add/remove available workspaces from launcher

Further Reading:

pop-launcher-plugin-app-profiles's People

Contributors

nkia-christoph avatar

Stargazers

 avatar  avatar

Watchers

 avatar  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.