Compare commits
2 commits
e923b28c6c
...
0ecf54e3d5
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 0ecf54e3d5 | ||
Antoine Martin | fb2b03fb79 |
|
@ -9,6 +9,7 @@
|
|||
./flameshot.nix
|
||||
./git.nix
|
||||
./laptop.nix
|
||||
./rofi.nix
|
||||
./secrets
|
||||
./starship.nix
|
||||
./themes
|
||||
|
|
20
home/rofi.nix
Normal file
20
home/rofi.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
let
|
||||
cfg = config.my.home.rofi;
|
||||
in
|
||||
{
|
||||
options.my.home.rofi = with lib; {
|
||||
enable = (mkEnableOption "rofi configuration") // { default = true; };
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.rofi = {
|
||||
enable = true;
|
||||
|
||||
terminal = "${pkgs.alacritty}/bin/alacritty";
|
||||
extraConfig = {
|
||||
ssh-client = "${pkgs.mosh}/bin/mosh";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -91,6 +91,7 @@ in
|
|||
"XF86MonBrightnessUp" = "exec --no-startup-id light -A 5";
|
||||
|
||||
"${modifier}+l" = "exec --no-startup-id betterlockscreen --lock";
|
||||
"${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi -show run";
|
||||
};
|
||||
|
||||
modes =
|
||||
|
|
Loading…
Reference in a new issue