Add tofi.

This commit is contained in:
CronyAkatsuki 2024-02-29 15:14:18 +01:00
parent 783f275bba
commit 1fdda2e2da
3 changed files with 38 additions and 0 deletions

View File

@ -25,6 +25,7 @@
./modules/alacritty.nix ./modules/alacritty.nix
./modules/newsboat.nix ./modules/newsboat.nix
./modules/helix.nix ./modules/helix.nix
./modules/tofi.nix
]; ];
# My packages # My packages

View File

@ -0,0 +1,22 @@
anchor = top
width = 100%
height = 28
horizontal = true
font-size = 12
prompt-text = "Run: "
font = CaskaydiaCove Nerd Font
history = false
require-match = false
terminal = alacritty
outline-width = 0
border-width = 0
min-input-width = 120
result-spacing = 15
padding-top = 4
padding-bottom = 0
padding-left = 5
padding-right = 5
text-color = #c6d0f5
prompt-color = #e78284
selection-color = #e5c890
background-color = #303446

View File

@ -0,0 +1,15 @@
{ inputs, pkgs, ... }:
{
# Install tofi
home.packages = with pkgs; [
tofi
(writeShellScriptBin "tofi-pass" ''
tofi --hide-input true --prompt-text 'Password: ' --require-match false --hidden-character '.' < /dev/null
'')
];
# Setup my config file
home.file = {
".config/tofi/config".source = ./confs/tofi;
};
}