A custom Elephant menu to Walk through and launch your Remmina files.
I wrote this because as a sysadmin of a primarily-Windows shop, I've got a slew of saved RDP connections in Remmina. I'm on Omarchy, so I'm already using Elephant+Walker, so I figured it would be a lot more time efficient to just integrate Remmina in. It has proved to be. This is my first time touching lua.
- Make sure elephant-menu is installed. (If you're also on Omarchy, it already is)
- Place
remmina.luain~/.config/elephant/menus/ - Add a prefix in Walker - I used
\(requires an extra \ since it's an escape.)
# ~./.config/walker/config.toml
[[providers.prefixes]]
prefix = "\\"
provider = "menus:remmina"- Restart Elephant & Walker:
systemctl --user restart elephant.service && systemctl --user restart app-walker@autostart.serviceYour service commands may vary slightly.
I set my Action command to:
-- ~/.config/elephant/menus/remmina.lua
Action = "hyprctl dispatch workspace 7 && remmina -c " .. path_to_remmina .. "%VALUE%"This will always launch my sessions on Workspace 7, which is where I want it. I just wanted to leave this as an example incase you wanted something like this too.
I considered adding a few extra lines that would change the icon based on what type of connection it is. However, I literally only use this for RDP. I'd welcome it if anyone felt up to adding it.
This brilliant article from Hans Schnedlitz got me 90% of the way there. Thanks Hans!