Skip to content

Rasi vs underlying CSS features? #2092

Answered by tom-gora
tom-gora asked this question in Theming
Discussion options

You must be logged in to vote

Example usage of how I did achieve per-line styling. Hope it helps if anyone is looking for answers and bumps into this thread :)

RofiColorShades.sh

#!/bin/bash

# Rofi menu for color shades

iDIR="$HOME/.config/swaync/images"
pastel=$(which pastel)
hyprpicker=$(which hyprpicker)
missing_deps=()

if [[ -z "$pastel" ]]; then
	missing_deps+=("pastel")
fi
if [[ -z "$hyprpicker" ]]; then
	missing_deps+=("hyprpicker")
fi

if [[ ${#missing_deps[@]} -ne 0 ]]; then
	notify-send -t 4000 -i "$iDIR/rofi-error.svg" "Rofi Error" "Dependencies not found: \
    ${missing_deps[*]} \
    Please install them first."
	exit 1
fi

final_validate_color_from_pastel() {
	local line="$1"
	[[ "$line" =~ ^#[0-9A-Fa…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@tom-gora
Comment options

Answer selected by tom-gora
@DaveDavenport
Comment options

@tom-gora
Comment options

Comment options

You must be logged in to vote
1 reply
@tom-gora
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants