71 lines
1.7 KiB
Nix
Raw Normal View History

2023-11-04 02:28:27 +01:00
{ lib, config, pkgs, ... }: {
config = lib.mkIf (config.homecfg.wm == "Wayland") {
home.packages = with pkgs; [ wofi ];
xdg.configFile."wofi/config".text = ''
width=280
lines=10
xoffset=5
yoffset=5
location=2
prompt=
filter_rate=100
allow_markup=false
no_actions=true
halign=fill
orientation=vertical
content_halign=fill
insensitive=true
allow_images=true
image_size=16
hide_scroll=true
'';
xdg.configFile."wofi/style.css".text = ''
window {
margin: 0px;
2023-11-21 16:52:35 +01:00
border-radius: ${config.colorscheme.colors.border-radius}px;
2023-11-04 02:28:27 +01:00
background-color: #${config.colorscheme.colors.base00};
}
#input {
all: unset;
min-height: 20px;
padding: 4px 10px;
margin: 4px;
border: none;
color: #${config.colorscheme.colors.base07};
font-weight: bold;
background-color: #${config.colorscheme.colors.base01};
outline: #${config.colorscheme.colors.base04};
}
#input:selected {
color: #${config.colorscheme.colors.base0C};
}
#inner-box {
font-weight: bold;
border-radius: 0px;
}
#outer-box {
margin: 0px;
padding: 3px;
2023-11-21 16:52:35 +01:00
border-radius: ${config.colorscheme.colors.border-radius}px;
border-width: ${config.colorscheme.colors.border-width}px;
border-color: #${config.colorscheme.colors.base04};
border-style: solid;
2023-11-04 02:28:27 +01:00
}
#text:selected {
color: #${config.colorscheme.colors.base00};
background-color: transparent;
}
#entry:selected {
background-color: #${config.colorscheme.colors.base07};
}
'';
};
}