2023-11-04 02:28:27 +01:00
|
|
|
{ lib, config, pkgs, ... }: {
|
|
|
|
|
2024-04-14 07:57:07 +02:00
|
|
|
config = lib.mkIf (config.usercfg.wm == "Wayland") {
|
2023-11-04 02:28:27 +01:00
|
|
|
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;
|
2024-02-06 09:23:37 +01:00
|
|
|
border-radius: ${config.colorScheme.palette.border-radius}px;
|
|
|
|
background-color: #${config.colorScheme.palette.base00};
|
2023-11-04 02:28:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#input {
|
|
|
|
all: unset;
|
|
|
|
min-height: 20px;
|
|
|
|
padding: 4px 10px;
|
|
|
|
margin: 4px;
|
|
|
|
border: none;
|
2024-02-06 09:23:37 +01:00
|
|
|
color: #${config.colorScheme.palette.base07};
|
2023-11-04 02:28:27 +01:00
|
|
|
font-weight: bold;
|
2024-02-06 09:23:37 +01:00
|
|
|
background-color: #${config.colorScheme.palette.base01};
|
|
|
|
outline: #${config.colorScheme.palette.base04};
|
2023-11-04 02:28:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#input:selected {
|
2024-02-06 09:23:37 +01:00
|
|
|
color: #${config.colorScheme.palette.base0C};
|
2023-11-04 02:28:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#inner-box {
|
|
|
|
font-weight: bold;
|
|
|
|
border-radius: 0px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#outer-box {
|
|
|
|
margin: 0px;
|
|
|
|
padding: 3px;
|
2024-02-06 09:23:37 +01:00
|
|
|
border-radius: ${config.colorScheme.palette.border-radius}px;
|
|
|
|
border-width: ${config.colorScheme.palette.border-width}px;
|
|
|
|
border-color: #${config.colorScheme.palette.base04};
|
2023-11-21 16:52:35 +01:00
|
|
|
border-style: solid;
|
2023-11-04 02:28:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#text:selected {
|
2024-02-06 09:23:37 +01:00
|
|
|
color: #${config.colorScheme.palette.base00};
|
2023-11-04 02:28:27 +01:00
|
|
|
background-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
#entry:selected {
|
2024-02-06 09:23:37 +01:00
|
|
|
background-color: #${config.colorScheme.palette.base07};
|
2023-11-04 02:28:27 +01:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|