Coder Social home page Coder Social logo

rofi-scripts's Introduction

Rofi Scripts

  • Rofi configuration files and scripts for
    • Wifi Connections
    • Mounting/Unmounting USB/Partitions
    • Mounting/Unmounting Android devices
    • Screenshots
    • Launcher

|img| |-|-| |img|img| |img|img| |img|

Installation

Clone this repository

$ git clone https://github.com/S4NKALP/rofi-scripts.git && cd rofi-scripts

Backup your rofi configs.

$ mkdir -pv ~/.config/rofibkp
$ mv ~/.config/rofi ~/.config/rofibkp

Install fonts (Choose any one you like) Note: There are 2-3 versions of Material design fonts. Just make sure to only have the one I've put in fonts folder.

  • System-wide
$ sudo cp -r ./fonts /usr/share/fonts/
$ fc-cache -fv
  • User only
$ [ -d "$HOME/.local/share/fonts" ] || mkdir -pv $HOME/.local/share/fonts
$ cp -r ./fonts $HOME/.local/share/fonts
$ fc-cache -fv

Install Dependencies

  • for Arch
$ yay -Sy rofi maim simple-mtpfs fuse2 xclip --needed
  • Rofi Configs made in Rofi version 1.7.2 (Rofi configs might not work in older version of rofi)
  • All of these packages available in official repository except simple-mtpfs.

Copy scripts and rofi configs

$ [ -d "$HOME/.config/rofi" ] || mkdir -pv $HOME/.config/rofi
$ cp -r ./rofi $HOME/.config

Enjoy

How to

  • Launch scripts
    • For Launcher run rofi -show drun
    • For rest of things just run script inside respective folders.
  • Colorscheme/Theme
    • All the Colors are coming from style.rasi file inside themes folder for all the rofi configs. Edit style file to change colors.

More about scripts

Screenshot :

  • Takes Screenshot using maim.
  • Saves Screenshots in ~/Pictures/Screenshots.
  • Configure screenshot save location in script.

Wifi :

  • Reads /sys/class/net/wl* files to get current status.
  • Uses nmcli for everything else.

USB mounting :

  • Default mount location is /mnt, you can change this foler in script.
  • If you don't want to mount to /mnt type name of the folder and it'll create folder inside /mnt and mount in that folder.
  • if you already have askpass setup uncomment askpass line in the script. There's rofi script inside that folder using that for sudo password while mounting.

Android mounting :

  • Requires simple-mtpfs and fuse2.
  • it's Setup to mount devices in ~/Cell, you can give your own location in the script.

Manage Dual Screens :

  • add your own script to refresh wallpaper / bar or window manager in script.

Rofi Menu with Keybinding

  • Copy the show_help.sh in sxhkd and rename bspwm to sxhkd (cat ~/.config/bspwm/sxhkdrc)
  • Copy the given keybind to sxhkdrc

Notes and Todo.

  • Adding more useful things, themes and colors.
  • Pull Requests, Issues, Fork, Contributions are welcome.
  • Keybinding script for sxhkdrc

rofi-scripts's People

Contributors

s4nkalp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 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.