Compare commits

..

2 commits

Author SHA1 Message Date
Antoine Martin 0ecf54e3d5 home: i3: setup rofi keybinding 2021-07-29 11:22:39 +02:00
Antoine Martin fb2b03fb79 home: rofi: setup config 2021-07-29 11:17:22 +02:00
3 changed files with 22 additions and 0 deletions

View file

@ -9,6 +9,7 @@
./flameshot.nix ./flameshot.nix
./git.nix ./git.nix
./laptop.nix ./laptop.nix
./rofi.nix
./secrets ./secrets
./starship.nix ./starship.nix
./themes ./themes

20
home/rofi.nix Normal file
View 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";
};
};
};
}

View file

@ -91,6 +91,7 @@ in
"XF86MonBrightnessUp" = "exec --no-startup-id light -A 5"; "XF86MonBrightnessUp" = "exec --no-startup-id light -A 5";
"${modifier}+l" = "exec --no-startup-id betterlockscreen --lock"; "${modifier}+l" = "exec --no-startup-id betterlockscreen --lock";
"${modifier}+d" = "exec ${pkgs.rofi}/bin/rofi -show run";
}; };
modes = modes =