Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Possible to edit the way pywal works with rofi? #89

Closed
ghost opened this issue Aug 19, 2017 · 1 comment
Closed

Possible to edit the way pywal works with rofi? #89

ghost opened this issue Aug 19, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Aug 19, 2017

I don't know how to correctly describe this, so I'll try my best:

As you know, when pywal generates colorschemes to apply it to rofi through .Xresources, the colors are pretty much "absolute" - which means that if the user wants to change any part of rofi's colorscheme, he/she will have to edit by hand the .Xresources file, reload, and even then the colorset will not remain the same the next time that wallpaper is chosen, as each colors are automatically + directly stated in the file by pywal; unlike polybar, when you can dynamically set e.g. color01, color02, color03... and each bar elements can catch different colors & the way colors are chosen is persistent through wallpapers.

I think it's mostly because rofi directly takes the colors in the .Xresources, but I still want to ask: is there any way to edit how pywal implements colors for rofi so that we can achieve the same mechanics for both rofi and polybar?

Sorry if there's wordiness because I'm not a native English speaker. Thank you for reading this issue.

@dylanaraps
Copy link
Owner

You can create a custom script to launch rofi with custom colors (This is what I'm currently doing.). Other than this there's no other way of customizing the rofi colors from pywal.

I'm trying to come up with a solution that will give the user more control but that's a ways away.

Example script:

#!/usr/bin/env bash

source "${home}/.cache/wal/colors.sh"

rofi -show run \
     -color-window "$background, $background $color1" \
     -color-normal "$background, $foreground, $background, $color1, $background" \
     -color-active "$background, $foreground, $background, $color1, $background"

Basically, if you bind this script to a key it will use whatever colors you set inside of it on every launch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant