You are not logged in.

#1 2023-03-19 22:31:33

wavythxmxs
Member
From: Germany
Registered: 2023-02-17
Posts: 5

passmenu script not working invoked from sxhkd

Hello,
I am using "pass" as my password-manager.
When I am executing "passmenu" script from the shell, dmenu spawns and lets me select my password and it gets copied to clipboard, confirmed by text output to the shell.
But when I invoke passmenu from my keyboard shortcut via sxhkd, which has the following config:

mod4 + shift + p
    passmenu

dmenu also spawns but the password does not get copied to clipboard after selecting it.

What could be the reasons for the password getting not getting copied when using passmenu with this shortcut?
I am using Xorg, dwm 6.4, dmenu 5.2 and 0.6.2.

Offline

#2 2023-03-20 09:42:16

seth
Member
Registered: 2012-09-03
Posts: 51,237

Re: passmenu script not working invoked from sxhkd

Likely trigger on release or introduce a brief sleep in your menu to allow yourself to release the key, dmenu wants to grep your keyboard (and this is a common problem)
https://wiki.archlinux.org/title/Sxhkd#Configuration

A different issue could be that "the password does not get copied to clipboard", which is not a thing - xsel or xclip will run and claim the clipboard selection.
They might either fail to run or get killed in this context, so try to log their invocation and see whether the process is around after dmenu exits.

Offline

Board footer

Powered by FluxBB