2023-04-29 00:13:00 +02:00
|
|
|
<!
|
2023-11-04 12:00:28 +01:00
|
|
|
local modi = {
|
|
|
|
"window",
|
|
|
|
"drun",
|
|
|
|
"combi",
|
|
|
|
}
|
2023-04-29 00:13:00 +02:00
|
|
|
-- Only enable nheko mode if rofi-nheko is installed.
|
2023-11-04 12:00:28 +01:00
|
|
|
if opt.fileExists(
|
2023-06-30 17:33:54 +02:00
|
|
|
os.getenv "HOME"
|
2023-04-29 00:13:00 +02:00
|
|
|
.. "/.local/lib/rofi/librofi_nheko.so"
|
2023-11-04 12:00:28 +01:00
|
|
|
) then
|
|
|
|
table.insert(modi, "nheko")
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Only enable rofi-emoji if installed.
|
|
|
|
if opt.fileExists "/usr/lib/rofi/emoji.so" then
|
|
|
|
table.insert(modi, "emoji")
|
|
|
|
end
|
2023-04-29 00:13:00 +02:00
|
|
|
!>
|
2021-06-01 13:12:00 +02:00
|
|
|
configuration {
|
2023-11-04 12:00:28 +01:00
|
|
|
modi: "<% table.concat(modi, ",") %>";
|
2023-01-20 22:30:45 +01:00
|
|
|
font: "<% opt.font %> 12";
|
2021-06-01 13:12:00 +02:00
|
|
|
show-icons: true;
|
2023-01-26 21:17:16 +01:00
|
|
|
icon-theme: "<% opt.icon_theme %>";
|
2022-07-11 15:56:42 +02:00
|
|
|
combi-modi: "drun,nheko,window,run";
|
2021-06-01 13:12:00 +02:00
|
|
|
}
|
2023-06-08 23:17:19 +02:00
|
|
|
@theme "catppuccin-sidebar.rasi"
|