Coder Social home page Coder Social logo

rofi-scripts-collection's Introduction

About

Rofi Script Collection is a collection of scripts and their execution using a tool called Rofi. Rofi provides the user with a prompt to select the script to execute.

Requirements

  • rofi
    • Debian (Ubuntu, Mint etc)
      • sudo apt install rofi
    • Arch
      • sudo pacman -S rofi
    • Fedora
      • sudo dnf install rofi
    • Nix
  • git
    • Debian (Ubuntu, Mint etc)
      • sudo apt install git
    • Arch
      • sudo pacman -S git
    • Fedora
      • sudo dnf install git
    • Nix

Installation

  • Step 1: Install rofi and git (See Requirements)
  • Step 2: Clone the repository
git clone https://github.com/AfzGit/rofi-scripts-collection
  • Step 3: Place the rofi-scripts folder wherever you want and give it execution permissions recursively.
# granting execution permission to the scripts in the folder
chmod 755 -R rofi-scripts-collection/rofi-scripts/

# Placing in home folder
mv rofi-scripts-collection/rofi-scripts/ ~

# Removing uneeded files
rm -rf rofi-scripts-collection/
  • Step 4: Now add the shortcut to trigger rofi in your system settings (Check your desktop Environment’s custom shortcuts settings)
sh ~/rofi-scripts/$(ls -1 ~/rofi-scripts/ | rofi -scroll-method 1 -dmenu -i -p "Run:")
  • Step 5: The installation has been done, now just press the shortcut key you assigned for the command above. To add more scripts, just put them in the rofi-scripts folder.

Notes

If your system runs FISH shell by default, use this shortcut instead for Step 4:

set -x selected (ls -1 ~/rofi-scripts/ | rofi -scroll-method 1 -dmenu -i -p "Run:") && sh ~/rofi-scripts/$selected

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.