onagre-launcher / onagre

A general purpose application launcher for X and wayland inspired by rofi/wofi and alfred
MIT License
514 stars 27 forks source link

Static mode #25

Closed oknozor closed 2 years ago

oknozor commented 2 years ago

Custom menu such as power menu is a common usage for app launcher, for instance rofi-power-menu provides a handy way to manage system power with rofi.

One way to do this would be to open onagre in "static" mode, i.e: loading predefined entries on start and not forwarding search requests to pop-launcher. This could be done mapping pop-launcher script mode to onagre config :

[static.mode.session]
entries = ["Log out", "Restart", "Power off", "Suspend" ] # mapping to pop-launcher script name
theme = "session.toml"

with this defined we should be able to launch onagre like so :

onagre -m session

Search should not filter out results, just change the selected line using some fuzzy matching, (maybe with skim)