Skip to content

rofi: fix theme definition in configuration for 1.7.0+#2513

Merged
berbiche merged 1 commit intonix-community:masterfrom
lilyinstarlight:fix/rofi-theme-section
Nov 28, 2021
Merged

rofi: fix theme definition in configuration for 1.7.0+#2513
berbiche merged 1 commit intonix-community:masterfrom
lilyinstarlight:fix/rofi-theme-section

Conversation

@lilyinstarlight
Copy link
Copy Markdown
Member

@lilyinstarlight lilyinstarlight commented Nov 28, 2021

Description

Since Rofi 1.7.1 (specifically davatorium/rofi@0e70d8a), the deprecated theme option in the configuration section no longer works and throws an error. For 1.7.0 and up (see https://github.com/davatorium/rofi/releases/tag/1.7.0), @theme "name" is supposed to be used and must be after the configuration section

This PR updates the config generation for this and specifically makes sure @theme goes last

Module maintainer: @thiagokokada

Checklist

  • Change is backwards compatible. (Rofi 1.7.0+ which is only in unstable channel)

  • Code formatted with ./format.

  • Code tested through nix-shell --pure tests -A run.all.

  • Test cases updated/added. See example.

  • Commit messages are formatted like

    {component}: {description}
    
    {long description}
    

    See CONTRIBUTING for more information and recent commit messages for examples.

  • If this PR adds a new module

    • Added myself as module maintainer. See example.

    • Added myself and the module files to .github/CODEOWNERS.

Since Rofi 1.7.1 (specifically davatorium/rofi@0e70d8a), the deprecated
`theme` option in the `configuration` section no longer works. For 1.7.0
and up, `@theme "name"` is supposed to be used *after* the
`configuration` block.
@thiagokokada
Copy link
Copy Markdown
Contributor

LGTM.

Copy link
Copy Markdown
Member

@berbiche berbiche left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

LGTM.

@berbiche berbiche merged commit 3ec7f6f into nix-community:master Nov 28, 2021
@lilyinstarlight lilyinstarlight deleted the fix/rofi-theme-section branch November 28, 2021 20:13
peterhoeg pushed a commit to peterhoeg/home-manager that referenced this pull request Dec 6, 2021
…#2513)

Since Rofi 1.7.1 (specifically davatorium/rofi@0e70d8a), the deprecated
`theme` option in the `configuration` section no longer works. For 1.7.0
and up, `@theme "name"` is supposed to be used *after* the
`configuration` block.
@ncfavier
Copy link
Copy Markdown
Member

This could use a backport to the 21.11 branch (see https://discourse.nixos.org/t/trouble-configuring-rofi-theme-in-home-nix/16641)

rycee pushed a commit that referenced this pull request Dec 18, 2021
Since Rofi 1.7.1 (specifically davatorium/rofi@0e70d8a), the deprecated
`theme` option in the `configuration` section no longer works. For 1.7.0
and up, `@theme "name"` is supposed to be used *after* the
`configuration` block.

(cherry picked from commit 3ec7f6f)
@rycee
Copy link
Copy Markdown
Member

rycee commented Dec 18, 2021

Backported now.

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

Successfully merging this pull request may close these issues.

5 participants