CodeHeister / dotfiles

First rice for i3-gaps
GNU General Public License v3.0
129 stars 9 forks source link

rofi coloring problem #2

Closed HarshalRathore closed 2 years ago

HarshalRathore commented 2 years ago

First Thanks for the awesome rice.

When I use your rofi powermenu direct from your repo with below command rofi -modi 'Powermenu:~/harshal/just_messing_around/dotfiles/.config/i3/powermenu.sh' -theme ~/harshal/just_messing_around/dotfiles/.config/rofi/powermenu.rasi -show Powermenu -icon-theme "Papirus"

2022-01-04-215720_1366x768_scrot

But with this command I get rofi -modi 'Powermenu:~/.config/rofi/powermenu/powermenu.sh' -theme ~/.config/rofi/powermenu/powermenu.rasi -show Powermenu -icon-theme "Papirus" 2022-01-04-220026_1366x768_scrot

I want it like in the first image same as your screenshots, I can't even see what is being selected in white because of no shade. I don't understand how and why this is happening both the files are the same only their location has changed.

CodeHeister commented 2 years ago

Picom blurs the background and the transparent colors are stored in .config/rofi/colors.rasi. To add blur, configure it through picom or find blur section in my picom configs. If you want to make it less transparent and include my colors, you should just copy colors.rasi directly to your rofi configs in the same directory or rewrite the path in rofi file.

To add colors :

  1. Copy .config/rofi/colors.rasi to your rofi configs.
  2. To make the background less transparent, find win-bg in colors.rasi, change or delete last 2 characters.

As an example :

You may edit all colors in the same way.

To make easily a screenshot with a rofi without any external software you may use rofi -no-lazy-grab -show drun -theme "~/.config/rofi/searcher.rasi"; maim --hidecursor | xclip -selection clipboard -t image/png that uses maim and xclip or rofi -no-lazy-grab -show drun -theme "~/.config/rofi/searcher.rasi"; maim --hidecursor | tee ~/Pictures/Screenshots/$(date "+Screenshot-%G-%m-%d_%H.%M.%S").png | xclip -selection clipboard -t image/png that also uses tee to save screenshot in a file.

HarshalRathore commented 2 years ago

thank you a lot it is solved..

HarshalRathore commented 2 years ago

I have a one other problem please look at this post it is related to your dotfies

HarshalRathore commented 2 years ago

@CodeHeister did you have the same problem with i3lock while using rofi powermenu. If so how did you solve it?

CodeHeister commented 2 years ago

I don't use system lock. I just suspend my system, logout or swap to another tty, but i have passwords everywhere so i don't have to worry about my system. Also nobody knows how to navigate in my system, so i'm calm.

Both options worked for me, so there should be no troubles.

HarshalRathore commented 2 years ago

Thanks for the info 👍! I looked at rofi's .rsai file and scripts and they look likes just CSS to me, is that right? If so could you guide me to some resources for rofi component creation with CSS and .sh scripts for them I happen to be learning Frontend right now so maybe I'll try practising my skills there. Thank you

CodeHeister commented 2 years ago

You can start with this or this. There's everything described. Look for configs of your interest and try to configure on your own.