Skip to content

Commit

Permalink
add walker support
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Dec 2, 2024
1 parent 5570c2e commit 02b14b7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/fab/hypr/pyprland.d/shortcuts.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ parameters = "-p 🍰 -dmenu -i -theme ~/.config/rofi/rounded-nord-dark.rasi"

"Color picker" = [
{name="format", options=["hex", "rgb", "hsv", "hsl", "cmyk"]},
"sleep 0.2; hyprpicker --format [format] | wl-copy"
"sleep 0.5; hyprpicker --format [format] | wl-copy"
]

"Copy password" = [
Expand Down
9 changes: 8 additions & 1 deletion pyprland/adapters/menus.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,21 @@ class BemenuMenu(MenuEngine):
proc_extra_parameters = "-c"


class WalkerMenu(MenuEngine):
"""A walker based menu."""

proc_name = "walker"
proc_extra_parameters = "-d -k -p '[prompt]'"


class AnyrunMenu(MenuEngine):
"""A bemenu based menu."""

proc_name = "anyrun"
proc_extra_parameters = "--plugins libstdin.so --show-results-immediately true"


every_menu_engine = [TofiMenu, RofiMenu, WofiMenu, BemenuMenu, DmenuMenu, AnyrunMenu]
every_menu_engine = [WalkerMenu, TofiMenu, RofiMenu, WofiMenu, BemenuMenu, DmenuMenu, AnyrunMenu]


async def init(force_engine: str | None = None, extra_parameters: str = "") -> MenuEngine:
Expand Down
2 changes: 1 addition & 1 deletion pyprland/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Package version."""

VERSION = "2.4.3-6"
VERSION = "2.4.3-7"

0 comments on commit 02b14b7

Please sign in to comment.