diff --git a/recipes-support/tofi/files/drun b/recipes-support/tofi/files/drun new file mode 100755 index 0000000..2554145 --- /dev/null +++ b/recipes-support/tofi/files/drun @@ -0,0 +1,9 @@ +#! /bin/sh + +config="/etc/xdg/tofi/config" + +if [ -e "$HOME/.config/tofi/config" ]; then + config="$HOME/.config/tofi/config" +fi + +tofi-drun -c "$config" \ No newline at end of file diff --git a/recipes-support/tofi/tofi_git.bb b/recipes-support/tofi/tofi_git.bb index f257de2..8fe5315 100644 --- a/recipes-support/tofi/tofi_git.bb +++ b/recipes-support/tofi/tofi_git.bb @@ -10,7 +10,7 @@ DEPENDS = "wayland freetype wayland-native wayland-protocols-native wayland-prot SRCREV = "${AUTOREV}" SRC_URI = "git://github.com/philj56/tofi.git;protocol=https;branch=master" -SRC_URI += " file://config " +SRC_URI += " file://config file://drun " S="${WORKDIR}/git" @@ -20,7 +20,8 @@ EXTRA_OEMESON += "--buildtype release" do_install:append () { # replace the default config + install -m 0755 ${WORKDIR}/drun ${D}/usr/bin/ install -m 0755 ${WORKDIR}/config ${D}/${sysconfdir}/xdg/tofi/ } -FILES:${PN} += "/usr/share/*" \ No newline at end of file +FILES:${PN} += "/usr/share/*"