Add tofi.
This commit is contained in:
parent
783f275bba
commit
1fdda2e2da
@ -25,6 +25,7 @@
|
||||
./modules/alacritty.nix
|
||||
./modules/newsboat.nix
|
||||
./modules/helix.nix
|
||||
./modules/tofi.nix
|
||||
];
|
||||
|
||||
# My packages
|
||||
|
22
home-manager/modules/confs/tofi
Normal file
22
home-manager/modules/confs/tofi
Normal 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
|
15
home-manager/modules/tofi.nix
Normal file
15
home-manager/modules/tofi.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user