Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/windwp/rofi-color-picker


https://github.com/windwp/rofi-color-picker

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Color Picker list for Rofi

![preview](https://i.redd.it/av7zez4501251.png)

I generated this Color Picker lists to be used as a quick search/select tool utilizing rofi, xclip and xdotool.

[Material Color Chart](https://htmlcolorcodes.com/color-chart/material-design-color-chart/)

# Requirements
* Obviously you will need [Rofi](https://github.com/DaveDavenport/rofi).
* The actual [Font Awesome](http://fontawesome.io/) font
* A CLI clipboard utility like [xclip](https://github.com/astrand/xclip), [xsel](https://linux.die.net/man/1/xsel) or [pbpaste](https://developer.apple.com/legacy/library/documentation/Darwin/Reference/ManPages/man1/pbpaste.1.html).
* xdotool (or another tool to simulate keyboard input and mouse activity)

# Credit

This code is based on rofi fontawesome by [wstam88](https://github.com/wstam88/rofi-fontawesome)

### snippet

g/^\d/delete
%s/\(#.\{6\}\)/\=printf("  Red%d<\/span>",submatch(0) ,line('.')-1,line('.')-1)
%s/$/\=printf('-%-4d', line('.')-1)
```