dotfiles/.config/rofi/config.rasi.cgt

28 lines
580 B
Text
Raw Normal View History

2023-04-29 00:13:00 +02:00
<!
local modi = {
"window",
"drun",
"combi",
}
2023-04-29 00:13:00 +02:00
-- Only enable nheko mode if rofi-nheko is installed.
if opt.fileExists(
os.getenv "HOME"
2023-04-29 00:13:00 +02:00
.. "/.local/lib/rofi/librofi_nheko.so"
) 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 {
modi: "<% table.concat(modi, ",") %>";
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
}
@theme "catppuccin-sidebar.rasi"