Rofi Greenclip + DWM

I’m replacing dmenu with Rofi and I use a clipboard helper called Greenclip which ties in with Rofi.

Problem is I have no ideal of how to add it as a command in dwm. This is how you would call it in say i3:

rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}'

Any ideas how this would translate to dwm?

Solved it with the SHCMD option and a couple of \

{ MODKEY|ShiftMask, XK_c, spawn, SHCMD("rofi -modi \"clipboard:greenclip print\" -show clipboard -run-command '{cmd}'") },

1 Like

It didn t took long before you figure it out @Dobbie03 !

A good thing, might help other people !

1 Like

Yer a brave, brave man to be running DWM, lol. Too much for me.

1 Like

lol, same thing here lol.

I’m thinking the same but I am sticking with it.