mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-06-01 16:15:25 +02:00
make rofi only enable rofi-emoji if installed
This commit is contained in:
parent
e076be3c78
commit
421736a147
|
@ -1,13 +1,24 @@
|
||||||
<!
|
<!
|
||||||
|
local modi = {
|
||||||
|
"window",
|
||||||
|
"drun",
|
||||||
|
"combi",
|
||||||
|
}
|
||||||
-- Only enable nheko mode if rofi-nheko is installed.
|
-- Only enable nheko mode if rofi-nheko is installed.
|
||||||
local have_rofi_nheko = opt.fileExists(
|
if opt.fileExists(
|
||||||
os.getenv "HOME"
|
os.getenv "HOME"
|
||||||
.. "/.local/lib/rofi/librofi_nheko.so"
|
.. "/.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
|
||||||
!>
|
!>
|
||||||
configuration {
|
configuration {
|
||||||
/* requires rofi-emoji */
|
modi: "<% table.concat(modi, ",") %>";
|
||||||
modi: "window,drun,combi,emoji<! if have_rofi_nheko then !>,nheko<! end !>";
|
|
||||||
font: "<% opt.font %> 12";
|
font: "<% opt.font %> 12";
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
icon-theme: "<% opt.icon_theme %>";
|
icon-theme: "<% opt.icon_theme %>";
|
||||||
|
|
Loading…
Reference in a new issue