Giter Club home page Giter Club logo

rofi-snippet's Introduction

Welcome to rofi-snippet ๐Ÿ‘‹

rofi-snippet is a text snippet tool for Linux

Requirements

rofi-snippet relies on the following command line tools

  • xdotool
  • xsel
  • rofi

In addition, rofi-snippet requires golang for compilation.

For example, on Ubuntu, you can get what you need with the following commands:

sudo apt install xsel
sudo apt install xdotool
sudo apt install rofi
sudo apt install golang-go

Installation

  1. Clone this repo: git clone https://github.com/tkancf/rofi-snippet
  2. Change into rofi-snippet: cd rofi-snippet
  3. Install: make install
  4. A binary is produced in ~/go/bin. Make sure GOPATH is in your environment variables. To check, run go env.
  5. Run rofi-snippet in the terminal to test.

Remarks

By default, config.toml is installed to /etc/rofi-snippet/config.toml. If you want to change this default location, modify confPath := "/etc" + "/rofi-snippet" + "/config.toml" in main.go and following two lines in Makefile to your desired location:

    @sudo mkdir -p /etc/rofi-snippet/
    @sudo cp ./config.toml /etc/rofi-snippet/

๐Ÿš€ Usage

You probably want to bind rofi-snippet to a global shortcut. If you're using i3, you can add the following line to ~/.config/i3:

bindsym $mod+Shift+d exec --no-startup-id "rofi-snippet"

Restart i3. By pressing $mod+Shift+d, it'll bring up the rofi-snippet.

Author

๐Ÿ‘ค tkancf

Show your support

Give a โญ๏ธ if this project helped you!


This README was generated with โค๏ธ by readme-md-generator

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.