Configure rofi and add plugins
This commit is contained in:
parent
8a6be4f1de
commit
42ba264047
|
@ -7,6 +7,7 @@
|
|||
./i3.nix
|
||||
./immich.nix
|
||||
./jellyfin.nix
|
||||
./rofi.nix
|
||||
./screenkey.nix
|
||||
./xbanish.nix
|
||||
];
|
||||
|
|
|
@ -64,7 +64,7 @@ in
|
|||
modifier = modifier;
|
||||
|
||||
keybindings = inputs.nixpkgs.lib.mkOptionDefault {
|
||||
"${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi -show drun";
|
||||
"${modifier}+d" = "exec rofi -show drun";
|
||||
|
||||
"${modifier}+Shift+b" = "exec ${pkgs.firefox}/bin/firefox";
|
||||
"${modifier}+Shift+f" = "exec ${pkgs.xfce.thunar}/bin/thunar";
|
||||
|
|
24
nix/modules/nixos/desktop/rofi.nix
Normal file
24
nix/modules/nixos/desktop/rofi.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ pkgs, username, ... }:
|
||||
|
||||
{
|
||||
environment.systemPackages = with pkgs; [
|
||||
rofi
|
||||
rofi-power-menu
|
||||
];
|
||||
|
||||
home-manager.users.${username}.programs.rofi = {
|
||||
enable = true;
|
||||
cycle = true;
|
||||
|
||||
extraConfig = {
|
||||
modi = "run,drun,emoji,calc";
|
||||
};
|
||||
|
||||
plugins = with pkgs; [
|
||||
rofi-bluetooth
|
||||
rofi-calc
|
||||
rofi-emoji
|
||||
rofi-pulse-select
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue