1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01:00
home-manager/modules/programs
Thiago Kenji Okada 6f7074d21d
rofi: migrate to rasi configuration format (#1736)
* rofi: migrate to rasi configuration format

The Xresources configuration format is deprecated in Rofi. For example,
using Rofi from unstable (1.6.1 as of now) you get the following
warnings when starting the application:

```
(process:9272): Rofi-WARNING **: 01:38:48.596: The old Xresources based configuration format is deprecated.

(process:9272): Rofi-WARNING **: 01:38:48.596: Please upgrade: rofi -upgrade-config.
``````

So this commit migrates it for its new configuration format, called rasi
instead.

This new implementation uses attrsets manipulation instead of using
strings, making the code clearer and also fixing some bugs found during
the way. To make sure everything is right, I also created some tests.

If someone wants to validate if the generated config is correct, just
run in terminal:

```
$ rofi -dump-config
```

And rofi will dump the current configuration file, including all
unsetted options.

* docs: document programs.rofi.extraConfig changes

* rofi: add thiagokokada as maintainer

* rofi: add toRasi function
2021-01-23 16:30:34 +01:00
..
command-not-found Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
vscode Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
zsh zsh: add support for prezto configuration framework (#655) 2020-10-12 01:27:44 +01:00
abook.nix abook: add module 2020-03-04 19:58:05 +01:00
afew.nix afew: add module 2018-11-18 23:47:45 +01:00
alacritty.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
alot-accounts.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
alot.nix Move email account options to their owning modules 2020-06-16 00:45:20 +02:00
aria2.nix aria2: add module 2020-05-03 13:21:52 +02:00
astroid-accounts.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
astroid-config-template.json astroid: add module 2018-11-18 19:55:28 +01:00
astroid.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
autojump.nix autojump: add module 2020-10-08 23:50:43 +02:00
autorandr.nix autorandr: add crtc option 2020-06-09 23:15:44 +02:00
bash.nix autojump: add module 2020-10-08 23:50:43 +02:00
bat.nix bat: add custom themes 2020-04-21 18:26:13 -04:00
beets.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
broot.nix broot: add package option 2021-01-06 11:16:36 +08:00
browserpass.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
chromium.nix chromium: fix preinstallation of crx files 2021-01-21 23:24:29 +01:00
dircolors.nix dircolors: fix usage together with zsh.oh-my-zsh 2020-05-28 00:08:15 +02:00
direnv.nix direnv: fix the fish source 2020-12-31 00:49:55 +01:00
eclipse.nix eclipse: add option package 2020-06-12 19:34:39 +02:00
emacs.nix emacs: replace use of emacsPackagesGen 2020-06-06 14:53:40 +02:00
feh.nix feh: allow binding actions to multiple buttons/keys 2020-09-30 00:55:09 +02:00
firefox.nix firefox: minor option description fix 2020-10-20 00:28:52 +02:00
fish.nix fish: fix regression due to changes in Nixpkgs 2021-01-09 22:35:03 +01:00
fzf.nix fzf: add package option 2021-01-22 23:29:41 +01:00
getmail-accounts.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
getmail.nix Move email account options to their owning modules 2020-06-16 00:45:20 +02:00
gh.nix gh: fix attribute paths 2021-01-20 18:59:58 +01:00
git.nix git: fix attribute paths 2021-01-20 18:58:35 +01:00
gnome-terminal.nix gnome-terminal: Add audibleBell option (#1671) 2020-12-27 16:09:59 +01:00
go.nix go: add goPrivate option 2020-04-06 19:28:31 +02:00
gpg.nix gpg: sane default for throw-keyids option 2019-09-11 19:30:26 +02:00
home-manager.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
htop.nix htop: Add new configuration options (#1463) 2020-09-06 10:58:37 +02:00
i3status-rust.nix i3status-rust: add module 2020-11-05 23:59:47 +01:00
i3status.nix i3status: add module 2020-05-03 13:12:13 +02:00
info.nix info: generate dir file directly in profile 2020-09-18 14:05:42 +02:00
irssi.nix Use types.port where applicable 2019-08-19 20:37:48 +02:00
jq.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
kakoune.nix kakoune: add support for plugins 2020-08-13 23:45:49 +02:00
keychain.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
kitty.nix kitty: add module 2020-02-23 11:28:53 +01:00
lesspipe.nix Mark rycee as maintainer for a bunch of modules 2017-09-26 23:40:31 +02:00
lf.nix lib: add maintainers attribute set 2020-05-02 16:30:55 +02:00
lieer-accounts.nix programs.lieer: add module 2020-03-07 15:13:15 +01:00
lieer.nix Move email account options to their owning modules 2020-06-16 00:45:20 +02:00
lsd.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
man.nix man: support building manual page index cache 2020-09-13 20:52:08 +02:00
matplotlib.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
mbsync-accounts.nix mbsync: per account multiple channels (#1360) 2020-09-21 18:16:06 +01:00
mbsync.nix mbsync: per account multiple channels (#1360) 2020-09-21 18:16:06 +01:00
mcfly.nix mcfly: add option to enable fuzzy search 2020-12-22 00:30:47 +01:00
mercurial.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
mpv.nix mpv: fix issue #1725 and add tests (#1726) 2021-01-21 18:10:12 -05:00
msmtp-accounts.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
msmtp.nix msmtp: fix passwordeval (#1649) 2020-12-10 22:32:34 +01:00
mu.nix mu: fix command (#1623) 2021-01-19 19:36:31 +01:00
ncmpcpp.nix ncmpcpp: add module 2020-09-01 22:05:57 +02:00
ne.nix ne: add module 2020-06-23 22:37:02 +02:00
neomutt-accounts.nix neomutt: fix sendMailCommand when msmtp is enabled 2020-02-16 23:08:37 +01:00
neomutt.nix neomutt: fix smtp_pass option 2021-01-12 13:32:03 +01:00
neovim.nix programs.neovim: write config in $XDG_CONFIG_HOME/init.vim (#1652) 2020-12-29 20:26:02 +01:00
newsboat.nix newsboat: show queries before urls 2020-02-26 21:38:07 +01:00
noti.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
notmuch.nix notmuch: inline notmuch-accounts.nix 2020-09-24 20:02:49 +02:00
nushell.nix nushell: fix link in the description (fixes #1693) (#1694) 2021-01-01 21:35:43 -05:00
obs-studio.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
octant.nix octant: add module 2020-12-31 15:18:13 +01:00
offlineimap-accounts.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
offlineimap.nix Move email account options to their owning modules 2020-06-16 00:45:20 +02:00
opam.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
password-store.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
pazi.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
pet.nix pet: add module 2020-09-22 23:20:17 +02:00
pidgin.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
powerline-go.nix powerline-go: add zsh integration 2020-11-15 00:12:02 +01:00
qutebrowser.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
readline.nix readline: fix example 2020-02-02 01:20:05 +01:00
rofi-pass.nix rofi-pass: add rofi-pass plugin for password-store 2020-12-18 23:22:57 +01:00
rofi.nix rofi: migrate to rasi configuration format (#1736) 2021-01-23 16:30:34 +01:00
rtorrent.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
skim.nix skim: add fish integration 2020-10-11 22:59:23 +02:00
ssh.nix ssh: add support for ServerAliveCountMax 2020-06-03 23:16:43 +02:00
starship.nix starship: remove deprecated character.symbol setting 2021-01-03 10:21:55 +01:00
taskwarrior.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
termite.nix termite: fix the key for bold foreground color 2020-03-17 23:47:36 +01:00
texlive.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
tmux.nix tmux: add a prefix option overruling shortcut if defined 2020-12-21 00:10:59 +01:00
urxvt.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
vim.nix vim: avoid using alias of vim-sensible 2020-03-30 21:55:10 +02:00
vscode.nix treewide: replace attrs by formats or types.anything 2020-11-29 21:54:55 -05:00
waybar.nix waybar: fix css identifier check (#1687) 2020-12-30 18:17:39 -05:00
z-lua.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
zathura.nix zathura: allow configuring the package used (#1636) 2020-12-04 18:38:22 +01:00
zoxide.nix zoxide: add module 2020-05-26 19:14:39 +02:00
zplug.nix zplug: Reduce noise (#1441) 2020-09-06 11:16:34 +02:00
zsh.nix zsh: add initExtraFirst option 2020-11-29 19:39:47 +01:00