Git Product home page Git Product logo

rofi-code's Introduction

rofi-code

Use rofi to quickly open Visual Studio Code or Codium workspaces. Since I use it, I have more time to enjoy with my friends and family.

How to use it

Just run rofi-code and a popup window should appear showing the list of all your workspaces. Get the list filtered by typing text, use the arrow keys to displace the cursor to the workspace you want to open, and press enter. That's it.

If you want to customize the behaviour you could use any of the options provided using the command line.

For a list of flags and options just type run rofi-code --help in your terminal:

foo@bar:~$ rofi-code --help
usage: rofi-code [-h|--help] [-d|--dir "<value>"] [-s|--sort (time|path|name)]
                 [-f|--full] [-o|--output] [-r|--rofi "<value>"] [-c|--code
                 "<value>"]

                 Use rofi to quickly open a VSCode or Codium workspace

Arguments:

  -h  --help    Print help information
  -d  --dir     Comma separated paths to the config directories. Default:
                ~/.config/VSCodium,~/.config/Code
  -s  --sort    How the workspaces should be sorted. Default: time
  -f  --full    Show the full path instead of collapsing the home directory to
                a tilde. Default: false
  -o  --output  Just prints the workspaces to stdout and exit. Default: false
  -r  --rofi    Command line to launch rofi. Default: rofi -dmenu -p "Open
                workspace" -no-custom
  -c  --code    Command line to launch the editor. It will try to detect codium
                or code

I use rofi-code everyday using a keystroke combination in my i3 window manager setup with the following line in ~/.config/i3/config.

bindsym $mod+Shift+v exec --no-startup-id rofi-code

Requirements

Of course you will need rofi installed.

Also you will be required to have installed the go language tools in your system as a prerequisite to build this software. Why? Because this is coded in go.

Install in Arch Linux

Use any Arch User Repository helper yaourt, yay, paru for installing the rofi-code-git package

For example:

foo@bar:~$ yay -S rofi-code-git

Install from sources

Run the following commands in your terminal

foo@bar:~$ git clone https://github.com/Coffelius/rofi-code.git
foo@bar:~$ make install

rofi-code's People

Contributors

coffelius avatar gabiwhalar avatar korigamik 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.