Code Monkey home page Code Monkey logo

Comments (6)

enkore avatar enkore commented on August 18, 2024

How do you invoke it exactly? By default the select app will be exec'd without creating a new process (the new process replaces the j4dd process).

from j4-dmenu-desktop.

hyiltiz avatar hyiltiz commented on August 18, 2024

I have this single line mentioning it in my i3 config:

# rg j4 ~/.config/i3/config
76:bindsym $mod+d exec --no-startup-id j4-dmenu-desktop

I then press command+d then type leafpad and press Enter. Then press command+d, type kate and press Enter and so forth. This is what I get in htop:
image

from j4-dmenu-desktop.

enkore avatar enkore commented on August 18, 2024

Ah you see, that's not up to j4dd ;)

You're seeing the shell process started by i3, which in turn is ordered to start j4dd, which replaced itself properly with the command you selected.

You could use the daemon mode but there's really not that much point unless you're having a slowness issue due to e.g. spinning hard drive and little RAM.

from j4-dmenu-desktop.

hyiltiz avatar hyiltiz commented on August 18, 2024

Hmm I might want to try out the daemon mode then; it doesn't seem to be documented in its man page, this repo front page, nor the wiki or the issues. How do I enable and use it?

from j4-dmenu-desktop.

enkore avatar enkore commented on August 18, 2024

It's not a real daemon more like something waiting in the dark

--wait-on=<path>
    Must point to a path where a file can be created.
    In this mode no menu will be shown. Instead the program waits for <path>
    to be written to (use echo > path). Every time this happens a menu will be shown.
    Desktop files are parsed ahead of time.
    Perfoming 'echo -n q > path' will exit the program.

from j4-dmenu-desktop.

hyiltiz avatar hyiltiz commented on August 18, 2024

Hmm, so for i3wm, we can use the following config?

# bindsym $mod+d exec --no-startup-id j4-dmenu-desktop
exec --no-startup-id j4-dmenu-desktop --wait-on=/var/$USER/j4dd.socket
bindsym $mod+d exec --no-startup-id echo > /var/$USER/j4dd.socket

--wait-on doesn't seem to bne supported in 2.16-1+b1. From git-blame it seems it was introduced 2 years ago; so sad newer versions never got packaged to Debian (testing).

from j4-dmenu-desktop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.