rofi: manually configure additional modes

This commit is contained in:
LordMZTE 2024-09-17 00:28:30 +02:00
parent ed2381f2c4
commit 81f6421e4b
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6

View file

@ -4,17 +4,9 @@ local modi = {
"drun",
"combi",
}
-- Only enable nheko mode if rofi-nheko is installed.
if opt.fileExists(
os.getenv "HOME"
.. "/.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")
for _, m in ipairs(opt.extra_rofi_modes or {}) do
table.insert(modi, m)
end
!>
configuration {