Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Coffelius/rofi-code
Use rofi to quickly open VSCode or Codium workspaces
https://github.com/Coffelius/rofi-code
codium rofi rofi-menus rofi-scripts unixporn vscode
Last synced: about 2 months ago
JSON representation
Use rofi to quickly open VSCode or Codium workspaces
- Host: GitHub
- URL: https://github.com/Coffelius/rofi-code
- Owner: Coffelius
- License: mit
- Created: 2020-08-13T18:04:56.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-08T21:07:41.000Z (over 1 year ago)
- Last Synced: 2024-07-30T20:25:45.447Z (5 months ago)
- Topics: codium, rofi, rofi-menus, rofi-scripts, unixporn, vscode
- Language: Go
- Homepage:
- Size: 1.78 MB
- Stars: 26
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rofi - rofi-code - Use rofi to quickly open VSCode or Codium workspaces (Other)
README
# 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:
```console
foo@bar:~$ rofi-code --help
usage: rofi-code [-h|--help] [-d|--dir ""] [-s|--sort (time|path|name)]
[-f|--full] [-o|--output] [-r|--rofi ""] [-c|--code
""]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](https://i3wm.org/) 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](https://github.com/davatorium/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 LinuxUse any Arch User Repository helper `yaourt`, `yay`, `paru` for installing the [rofi-code-git package](https://aur.archlinux.org/packages/rofi-code-git)
For example:
```console
foo@bar:~$ yay -S rofi-code-git
```## Install from sources
Run the following commands in your terminal
```console
foo@bar:~$ git clone https://github.com/Coffelius/rofi-code.git
foo@bar:~$ make install
```