Skip to content

Instantly share code, notes, and snippets.

@ptomasroos
Created September 11, 2015 13:30
Show Gist options
  • Save ptomasroos/7af3033ed583a784fe34 to your computer and use it in GitHub Desktop.
Save ptomasroos/7af3033ed583a784fe34 to your computer and use it in GitHub Desktop.
Remove program entries in i3 dmenu
To remove a program in the i3 dmenu just pipe the result from dmenu_path in the /usr/bin/dmenu_run
dmenu_path | awk '!/zsh/' | .......
would remove zsh.
@voylin
Copy link

voylin commented Oct 27, 2021

This only works in the standard i3 menu, how about the i3-dmenu?

@ptomasroos
Copy link
Author

Sorry @voylin not sure what you're referring to.
These days I'm no longer running i3 as I'm purely on Mac OS

@paradisedj
Copy link

How can I extend the values?
`dmenu_path | awk '!/zsh/',/base/~~~'
trying to figure are adding more values to your example.

@ptomasroos
Copy link
Author

How can I extend the values?
`dmenu_path | awk '!/zsh/',/base/~~~'
trying to figure are adding more values to your example.

Just keep piping

dmenu_path | awk '!/zsh/' | awk '!/code/' | awk '!/gcloud/'

@paradisedj
Copy link

I got it..
it is done with
awk '!/zsh|code|gloud/'
Thank you for prompt reply...
This was driving me crazy for like a week or so...
Clearly new to the wm world :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment