feat(tofi): initial tofi configuration
This commit is contained in:
parent
422c3aa187
commit
82265ddca2
5 changed files with 57 additions and 2 deletions
|
|
@ -16,8 +16,18 @@ in
|
||||||
plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
||||||
applications
|
applications
|
||||||
randr
|
randr
|
||||||
|
shell
|
||||||
|
rink
|
||||||
|
symbols
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
extraCss = /* css */ ''
|
||||||
|
|
||||||
|
* {
|
||||||
|
font-family: JetBrains Mono Nerd Font;
|
||||||
|
}
|
||||||
|
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./anyrun
|
./anyrun
|
||||||
./rofi
|
./rofi
|
||||||
|
./tofi
|
||||||
];
|
];
|
||||||
|
|
||||||
options.homeModules.desktop.wayland.launcher = {
|
options.homeModules.desktop.wayland.launcher = {
|
||||||
|
|
@ -13,5 +14,8 @@
|
||||||
rofi = {
|
rofi = {
|
||||||
enable = lib.mkEnableOption "enable rofi launcher module";
|
enable = lib.mkEnableOption "enable rofi launcher module";
|
||||||
};
|
};
|
||||||
|
tofi = {
|
||||||
|
enable = lib.mkEnableOption "enable tofi launcher module";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
41
home/modules/desktop/wayland/launcher/tofi/default.nix
Normal file
41
home/modules/desktop/wayland/launcher/tofi/default.nix
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
|
||||||
|
let
|
||||||
|
cfg = config.homeModules.desktop.wayland.launcher.tofi;
|
||||||
|
inherit (config.colorscheme) colors;
|
||||||
|
in
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
|
home.packages = [pkgs.tofi];
|
||||||
|
xdg.configFile."tofi/config".text = /* config */ ''
|
||||||
|
history = false
|
||||||
|
clip-to-padding = false
|
||||||
|
horizontal = true
|
||||||
|
width = 40%
|
||||||
|
height = 35
|
||||||
|
anchor = top-left
|
||||||
|
margin-top = 5
|
||||||
|
margin-left = 25%
|
||||||
|
num-results = 1
|
||||||
|
border-width = 0
|
||||||
|
outline-width = 0
|
||||||
|
result-spacing = 10
|
||||||
|
selection-background-padding = 30
|
||||||
|
prompt-padding = 10
|
||||||
|
font = "${config.fontProfiles.monospace.family}"
|
||||||
|
font-size = 14
|
||||||
|
prompt-text = " "
|
||||||
|
background-color = #0000
|
||||||
|
prompt-background = #0000
|
||||||
|
prompt-color = ${colors.base0B}
|
||||||
|
input-color = ${colors.base05}
|
||||||
|
placeholder-color = ${colors.base03}
|
||||||
|
default-result-color = ${colors.base03}
|
||||||
|
selection-color = ${colors.base04}
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -177,7 +177,7 @@ in
|
||||||
"SUPER, mouse:273, resizewindow"
|
"SUPER, mouse:273, resizewindow"
|
||||||
];
|
];
|
||||||
bindr = [
|
bindr = [
|
||||||
"SUPER, SUPER_L, exec, killall rofi || run-as-service $(rofi -show drun)"
|
"SUPER, SUPER_L, exec, tofi-drun --drun-launch=true"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ in
|
||||||
lockscreen.hyprlock.enable = true;
|
lockscreen.hyprlock.enable = true;
|
||||||
notification.mako.enable = true;
|
notification.mako.enable = true;
|
||||||
bar.waybar.enable = true;
|
bar.waybar.enable = true;
|
||||||
launcher.rofi.enable = true;
|
launcher.tofi.enable = true;
|
||||||
};
|
};
|
||||||
communication = {
|
communication = {
|
||||||
discord.enable = true;
|
discord.enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue