Git Product home page Git Product logo

pindow's Introduction

Pindow

About

Installation

Config

Contributing

About

Pindow allows you to have a list of "pinned" apps, open each one with one keybind {num} + keybind.

Currently this is only available on windows

!!Breaking Changes!!:

1.1.0:

The field "keybindings" got changed to keymaps. And new way of setting keymaps, see here.

Preview

prev.mp4

Installation

Download the binary here or build it. Then put it somewere.

You can put it in your path or have it start on start up. Whatever suits you!

Config

Example:

{
    "configs": [
        {
            "name": "Work",
            "apps": [
                {
                    "app_path": "alacritty",
                    "args": [
                        "--working-directory", "D:/Desktop 2", "--hold"
                    ]
                }
            ],
            "timeout": 10,
            "keymaps": {
                {
                    "keys": ["'"],
                    "modifiers": ["LCtrl"],
                    "event": "AddApp"
                }
            }
        },
        {
            "name": "Nothing"
        }
    ]
}

Your config is located in App Data/Roaming/Pindow/config.json.

Fields

The fields of the config are listed here

Arguments/Flags

`-d` or `--debug`: Starts the app in debug mode.
`-c {num}` or `--config {num}`: The config that the app starts in. {num} is the index.
`-p {path} or --path {path}`: Load a custom config path. If it can't find the path, it will try to create it in the path.
`--get-path `: Prints the path of the config
`-h or --help `: Prints the help menue

Keymapings

Documentation for keymaping are listed here

Contributing

Just open a issue or pr to a existing issue and i'll see if I want it. To run you should do: cargo run -- -d.

There are no dependencies that will not be installed by cargo!

Bar windows requirement as it uses the windows api

Building

Run cargo build --release!

ToDo

pindow's People

Contributors

yummyoreo avatar

Stargazers

 avatar

Watchers

 avatar

pindow's Issues

Error loading default keybinds if more than one

There is a possible error that could happen if there is more than one keybind that is being mapped to default.

Line 62 in load.rs

It could get set to true, then false again:

Original:

contains = &map.event != &keymap.event;
...
// you would also need to change this on line 64:
if !contains {
    keymaps_new.push(map.clone());
}

Potential Fix:

if &map.event == &keymap.event {
    contains = true;
}
...
// you would need to change this on line 64:
if contains {
    keymaps_new.push(map.clone());
}

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.