onaips / dmenu-mac Goto Github PK
View Code? Open in Web Editor NEWDmenu inspired mac port
License: GNU General Public License v3.0
Dmenu inspired mac port
License: GNU General Public License v3.0
Dmenu seems to quit after fufilling a querying or pressing 't'.
I have to reopen dmenu to perform another query.
I'm on Catalina btw.
Running binary in terminal and pressing 't' outputs this.
tom.lister@MacBook-Air MacOS % ./dmenu-mac Fatal error: Can't form a Character from an empty String zsh: illegal hardware instruction ./dmenu-mac
Hi. Currently the dmenu GUI defaults to showing the bar at the top of the screen. Can this be changed to utilise other positions, e.g. bottom of the screen?
(thanks for the app!)
Please add the ability to open system pref panes, it would give instant access to the pref. panes.
Oh and please make the font larger, or make an option or us to do so. I find it hard to read at 2880x1800 on a 15" MBP.
Really needs to save frequently used apps function, its a giant pain-in-the-ass to have to scroll though the list time after time for a often used app rather then dmenu "completing" in the entry with the most used.
Some more options would be nice ie. transparency, font type and sizes (perhaps even color).
Default shortcut and remaped shortcut doesn't work. Maybe I should make some configuration before?
Can you please add the ability to open system pref panes.
First off, thanks for writing this! So much better than running an XQuartz port of dmenu.
Anyway, I've found that when running dmenu-mac
without any arguments (as an application launcher), the process doesn't exit after launching the selected application. I did some digging after opening my activity monitor showed ~100 dmenu-mac
processes.
(It's a little difficult to see but, if you look at the terminal you can see it blocking after selecting "Activity Monitor" on the second run)
I'm assuming this isn't the intended behavior as when piping options to dmenu, it exits as soon as something is selected.
EDIT: after reading this code in the SearchViewController, I see that hiding the application instead of exiting is intended? You can consider this issue a "feature request" for a flag that closes after a selection is made. I'll put a PR up 😄
Hi,
I've just installed dmenu-mac (v0.7.2) with brew, as suggested, but it does not seem to be working on my box (macOS Big Sur v11.5.2, intel cpu) as it is killed instantly
$ dmenu-mac
[1] 54962 killed dmenu-mac
Is there any flag I could use to get some debug information? Am I missing anything here?
Best, Jose
After updating to the latest macos I started having the following issue: at some point after running dmenu my shortcut for summoning dmenu starts to switch to some specific desktop instead of spawning dmenu. If I hit the shortcut key combination at that desktop it works fine, but on any other desktop it switches to that one specific desktop and doesn't spawn dmenu until I hit it again. It makes it very difficult to use because I want to spawn it on any desktop.
I can only fix it by killing dmenu and starting it up again.
I'm running Ventura 13.3.1.
Is anyone else having this issue? Any tips for debugging it?
How can I configure dmenu-mac to also search for applications in the Applications folder under my user folder?
e.g.,
/Users/username/Applications/Chrome Apps.localized/Outlook.app
Great project! dmenu
is all I've ever really wanted from a fuzzy application finder on macOS.
Would it be possible to produce aarch64/Apple Silicon releases?
Please upgrade to using python3.
It is easily done by changing the following line from "scripts/dmenu-mac":
function realpath() { python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; }
to
function realpath() { python3 -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$0"; }
(Only change: python -> python3)
As far as I can tell it directly works.
I install my applications to a folder named "Applications" in my home directory (i.e. /Users/heywoodlh/Applications
).
Is there a way to configure dmenu-mac to look in that folder for applications? Spotlight indexes that folder automatically.
After install the cmd+space started automaticly to show dmenu-mac, is there a way to disable that? I use this shortcut to chnage input languge.
I'm using yabai and the integrated status bar that comes bundled with it.
I'm trying to add dmenu-mac to my setup but it does not offset with regards to yabai's status bar height, and the dmenu panel is rendered behind the status bar:
Is it possible to configure dmenu-mac and specify an offset or margin/padding, or any other way to force it to render above the status bar?
The menu doesn't open when pressing the global hotkey, nor does it run when using it from the terminal (neither when piping into it)
Would be nice if there was a way to provide custom entries instead of applications so that I can used this for pass as a front-end for auto typing passwords.
Hi,
If I open a picker and select nothing the application will not let the script continue and will hang the all control flow.
A lot of the default apps on Catalina (e.g. System Preferences, Activity Monitor, Music) are unfindable. Other default installed apps (e.g. Garage Band) can be found. It seems all the apps that can be found, are listed in ls /Applications/
, but some of the default applications seem to have some special status and can't even be found with ls /Applications/
.
I've been using dmenu-mac for a few years on Mojave and older without issues, but only just stumbled upon this on my new Macbook with Catalina installed.
This can be worked around by creating an alias in Finder with Cmd + Ctrl + A
, and making sure it ends with .app
. The alias can then be found by dmenu-mac, and you can launch the application that way.
I saw on the readme there was a todo for this, what exactly is needed?
While I was building it for my OS version, I made some changes, it basically wraps around the list wen going to the end
if commandSelector == #selector(moveLeft(_:)) {
if resultsText.selectedAppIndex > 0 {
resultsText.selectedAppIndex -= 1
}
else {
resultsText.selectedAppIndex = resultsText.list.count - 1
}
resultsText.updateWidth()
return true
} else if commandSelector == #selector(moveRight(_:)) {
if resultsText.selectedAppIndex < resultsText.list.count - 1 {
resultsText.selectedAppIndex += 1
}
else {
resultsText.selectedAppIndex = 0
}
resultsText.updateWidth()
return true
I've also changed the tab keypress to mimic the right key, but that's another issue...(I think tab and shift tab should mimic the arrow keys, key up should go to last, key down should go to first, and the "starts with" feature of the tab key should be replaced with the regex text, if the search string starts with ^)
Thanks for this. Any chance you could upload to Homebrew? Would be create to add this to my configuration files.
hello, I would really like to try it, but my mac is managed my the company and it doesn't support 10.5 yet, could you target a build for 10.4, or make a readme file with the build steps?
Hey, I just want to thank you for putting in the effort to make maintain this project, having a dmenu-like interface is the ideal for custom launcher scripts (I'm going to use it for a script to launch projects from my project directory in PyCharm). I'm having a problem running this program though.
Here's all of the relevant info:
❯ dmenu-mac
2021-09-22 11:19:31.451 dmenu-mac[60055:1929984] No Info.plist file in application bundle or no NSPrincipalClass in the Info.plist file, exiting
❯ brew info dmenu-mac
dmenu-mac: 0.7.1
https://github.com/oNaiPs/dmenu-mac
/usr/local/Caskroom/dmenu-mac/0.7.1 (123B)
From: https://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/dmenu-mac.rb
==> Name
dmenu-mac
==> Description
Keyboard-only application launcher
==> Artifacts
dmenu-mac.app (App)
/Applications/dmenu-mac.app/Contents/MacOS/dmenu-mac (Binary)
==> Analytics
install: 54 (30 days), 178 (90 days), 447 (365 days)
❯ sw_vers
ProductName: Mac OS X
ProductVersion: 10.15.7
BuildVersion: 19H1323
When applications are installed through nix, they are unavailable in search with dmenu-mac.
Hello.
Is this project dead?
I noticed the last commit was over a year ago.
And, many issues were not resolved.
Thanks
thank you!
I need it for some script I'm making.
It'd be great if there was a config file to set things like font, font size, and colors in order to be able to configure dmenu-mac a little more so it fits in wherever.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.