Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rofi 1.7.0.1 breaking the conf #9

Closed
Loxeno opened this issue Sep 5, 2021 · 5 comments
Closed

Rofi 1.7.0.1 breaking the conf #9

Loxeno opened this issue Sep 5, 2021 · 5 comments

Comments

@Loxeno
Copy link

Loxeno commented Sep 5, 2021

Hi,

I would like to know if you have any problem with rofi 1.7 ?

I get a blank dmenu which get segmentation fault anytime a type anything to search.

By advance, thank you.

Regards,
Loxeno

@r4t1o
Copy link

r4t1o commented Sep 5, 2021

I have some issues with 1.7 as well. I just use 1.6 for now.

@simonvic
Copy link
Owner

simonvic commented Sep 5, 2021

Hey @Loxeno,
thanks for the report.
Yes I'm having the same problem (currently on Rofi 1.7): wrong theme and segmentation fault .

I haven't identified the cause yet, probably the multiple imports that I do along side with some changes done in 1.7.
I'll investigate to see if it's a problem on my end or a bug introduced with Rofi 1.7

@simonvic
Copy link
Owner

simonvic commented Sep 5, 2021

I've read the release notes more carefully: the way themes get loaded has been changed.

In the meanwhile that I'll rework the themes, here is a temporary solution:

  1. Don't launch rofi with the -theme option but with -theme-str option.
    In your i3 config, replace the rofi stuff with this
bindsym $mod+a                           exec rofi -show combi -combi-modi "drun#window" -modi "combi#drun" -theme-str '@import $rofi_theme_drun' -no-default-config
bindsym $mod+Ctrl+a                      exec rofi -show combi -theme-str '@import $rofi_theme_combi' -no-default-config
bindsym $mod+Tab                         exec rofi -modi "window#windowcd" -show window -theme-str '@import $rofi_theme_windowSwitcher' -no-default-config
bindsym $mod+Shift+Tab                   exec rofi -show "filebrowser" -theme-str '@import $rofi_theme_fileBrowser' -no-default-config
bindsym $mod+c                           exec rofi -show calc -modi calc -no-show-match -no-sort -calc-command "echo -n '{result}' | xclip -selection clipboard -i" -theme-str '@import $rofi_theme_calc' -no-default-config
  1. Rename file-browser modi to filebrowser
    Inside your config.rasi, use this
modi: [combi, drun, filebrowser, window, run, windowcd, ssh, calc, keys] ;
  1. To fix white elements, append this to your config.rasi
element-text,
element-icon {
	background-color: transparent;
	text-color: inherit;
}

@Loxeno
Copy link
Author

Loxeno commented Sep 6, 2021

Hi,

I confirm that this is working, thank you for your help :)

Do I close this issue now or after your changes ?

Best regards,
Jonathan

@simonvic
Copy link
Owner

simonvic commented Sep 6, 2021

hey,

happy that it works :)

I'd keep the issue open until I update the theme, somebody may also need this temp fix

@Loxeno Loxeno closed this as completed Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants